/* ==========================================
   NETWORK PAGE - THEME SOCIALFARM DARK
   Cores e animações do site principal
   ========================================== */

:root {
    --accent: #667eea;
    --accent-2: #764ba2;
    --accent-3: #f093fb;
    --accent-sun: #fbbf24;
    --card: #2d3748;
    --text: #e2e8f0;
    --text-light: #cbd5e0;
    --muted: #a0aec0;
    --border: #4a5568;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.25);
    --radius: 8px;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scalePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 10px rgba(102, 126, 234, 0.3); }
    50% { box-shadow: 0 0 25px rgba(102, 126, 234, 0.6); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

/* CONTAINER PRINCIPAL */
#network {
    overflow: visible;
    background: transparent;
    padding: 0;
}

/* BLOCOS */
.nbox {
    margin: 0 0 20px;
    position: relative;
    width: 100% !important;
    overflow: hidden !important;
    background: var(--card) !important;
    border: 1px solid var(--border);
    display: flex;
    gap: 0;
    animation: slideUp 0.5s ease-out;
    border-radius: 12px;
    min-height: auto;
}

#guestbar {
    min-height: 320px !important;
}

.nbox_c {
    float: none !important;
    margin: 0 !important;
    padding: 20px !important;
    width: 70% !important;
    background: var(--card) !important;
    border: none !important;
    overflow: visible !important;
    box-sizing: border-box;
    flex: 1;
}

.nbox_s {
    float: none !important;
    width: 30% !important;
    flex: 0 0 30%;
}

.nbox:not(#guestbar) {
    display: block !important;
    gap: 0 !important;
}

.nbox:not(#guestbar) .nbox_c {
    width: 100% !important;
    flex: none !important;
}

.nbox:not(#guestbar) .nbox_s {
    width: 100% !important;
    flex: none !important;
    margin-top: 10px;
}

#guestbar .nbox_c {
    flex: 0 0 75% !important;
}

#guestbar .nbox_s {
    flex: 0 0 25% !important;
}

#guestbar {
    min-height: 350px !important;
}

/* GUESTBAR */
#guestbar {
    background: var(--card);
    margin: 0 0 20px 0 !important;
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    min-height: 350px !important;
}
    border-radius: 12px;
    overflow: hidden;
}

#guestbar .nbox_c {
    height: 100% !important;
    min-height: 350px !important;
    padding: 0 !important;
    width: 75% !important;
    background: transparent;
    border: none !important;
    color: var(--text);
    position: relative;
    overflow: hidden !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
}

#guestbar .nbox_c .banner-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(45, 55, 72, 0.7) 0%, rgba(45, 55, 72, 0.3) 50%, transparent 100%);
    z-index: 2;
}

#guestbar .nbox_c .banner-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    min-height: 350px;
    overflow: hidden;
    background: transparent;
    z-index: 1;
}

#guestbar .nbox_c .banner-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

#guestbar .nbox_c .login-content {
    position: relative;
    z-index: 3;
    width: 50%;
    padding: 35px 25px;
    padding-right: 15px;
    height: 100%;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#guestbar .nbox_s {
    width: 25% !important;
    height: 100% !important;
    min-height: 350px !important;
    border-left: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgb(45, 55, 72) 0%, rgb(30, 40, 56) 100%);
    z-index: 10;
    position: relative;
}

/* BANNER */
.nbox_c img[src*="colheita_feliz_banner"] {
    width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 12px;
    padding: 12px !important;
    box-sizing: border-box;
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: float 3s ease-in-out infinite;
    max-height: none !important;
    overflow: visible !important;
}

.nbox_c img[src*="colheita_feliz_banner"]:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 18px 45px rgba(102, 126, 234, 0.5), 0 0 30px rgba(240, 147, 251, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* GUEST INTRO */
#guest_intro {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    background: none !important;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
    color: var(--text);
    text-shadow: none;
    animation: fadeIn 0.6s ease-out;
}

/* REGISTER BUTTON */
#regbutton {
    position: static !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%) !important;
    padding: 12px 30px !important;
    text-indent: 0 !important;
    overflow: visible !important;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3), 0 0 20px rgba(102, 126, 234, 0.2);
    animation: glow 2s ease-in-out infinite;
}

#regbutton:hover {
    background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent-3) 100%) !important;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5), 0 0 30px rgba(240, 147, 251, 0.3);
}

/* GUEST APP BUTTONS */
#guest_app {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

#guest_app a {
    position: static !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    text-indent: 0 !important;
    overflow: visible !important;
    padding: 8px 14px;
    background: rgba(102, 126, 234, 0.15) !important;
    color: var(--accent) !important;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 600;
    border: 1px solid var(--accent);
    font-size: 12px;
}

#guest_app a:hover {
    background: var(--accent) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* LOGIN BOX */
#nlogin_box {
    float: none !important;
    width: 100% !important;
    margin-top: 0;
    background: linear-gradient(135deg, rgb(45, 55, 72) 0%, rgb(30, 40, 56) 100%);
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.5s ease-out 0.1s both;
    justify-content: space-between;
    height: 100%;
    min-height: 350px !important;
}

#nlogin_box form {
    padding: 18px 12px !important;
    height: auto !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#nlogin_box form p {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

#nlogin_box form label {
    color: var(--text) !important;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#nlogin_box .checkrow {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

#nlogin_box .checkrow label {
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: normal;
    font-weight: normal;
    font-size: 13px;
    color: var(--text) !important;
}

#nlogin_box .t_input {
    border: 1px solid var(--border) !important;
    border-radius: 6px;
    padding: 10px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: var(--text) !important;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-size: 13px;
}

#nlogin_box .t_input::placeholder {
    color: rgba(202, 213, 224, 0.6);
    opacity: 1;
}

#nlogin_box .t_input:focus {
    border-color: var(--accent) !important;
    background: rgba(102, 126, 234, 0.1) !important;
    outline: none;
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.3);
}

/* TÍTULOS */
.ntitle {
    padding: 10px 15px !important;
    height: auto !important;
    line-height: normal !important;
    color: white !important;
    font-size: 13px !important;
    font-weight: bold;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%) !important;
    margin: 0 !important;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#nlogin_box .ntitle {
    flex-shrink: 0;
}

/* BANNER CONTAINER - para imagens em containers flex */
.banner-container {
    position: relative;
    width: auto;
    flex: 1;
    overflow: hidden;
}

.banner-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.banner-container img:hover {
    transform: scale(1.02);
}

/* SIDE BOX CONTENT */
.side_rbox_c {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

#nlogin_box .side_rbox_c {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* BLOG LIST */
.bloglist {
    padding: 0 !important;
    height: auto !important;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.bloglist li {
    float: none !important;
    margin: 0 !important;
    width: 100% !important;
    background: rgba(45, 55, 72, 0.7);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: slideUp 0.5s ease-out;
}

.bloglist li:hover {
    background: rgba(45, 55, 72, 0.9);
    transform: translateY(-4px);
    border-left-color: var(--accent-3);
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.25);
}

.bloglist h3 {
    color: var(--text) !important;
    font-size: 14px !important;
    margin-bottom: 8px;
}

.bloglist a {
    color: var(--accent);
    transition: color 0.3s ease;
}

.bloglist a:hover {
    color: var(--accent-3);
}

/* DOING LIST */
.doinglist {
    margin-top: 0 !important;
    height: auto !important;
    display: block;
    padding: 0 !important;
}

.doinglist li {
    padding: 12px !important;
    width: 100% !important;
    border-top: 1px solid var(--border) !important;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    transition: all 0.3s ease;
    background: transparent;
}

.doinglist li:hover {
    background: rgba(102, 126, 234, 0.05);
}

.doinglist p.message {
    margin-top: 8px !important;
    width: 100% !important;
    height: auto !important;
    white-space: normal !important;
    overflow: visible !important;
    color: var(--text-light);
    font-size: 12px;
}

.doinglist a {
    color: var(--accent);
    transition: color 0.3s ease;
}

.doinglist a:hover {
    color: var(--accent-3);
}

/* PHOTO LIST */
#photolist {
    padding: 20px !important;
    border: 1px solid var(--border) !important;
    width: 100% !important;
    background: var(--card) !important;
    margin-bottom: 20px;
    animation: slideUp 0.5s ease-out;
    border-radius: 12px;
}

#photolist .ntitle {
    margin: 0 0 15px 0 !important;
}

#spics_wrap {
    margin: 15px 0 !important;
    width: 100% !important;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
}

#spics {
    width: auto !important;
    display: flex !important;
    gap: 12px;
    padding: 5px 0;
}

#spics li {
    float: none !important;
    width: 105px !important;
    height: auto !important;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#spics li:hover {
    border-color: var(--accent);
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

#spics .spic_img img {
    width: 100% !important;
    height: 80px !important;
    object-fit: cover;
    display: block;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 6px;
}

#spics li:hover .spic_img img {
    filter: brightness(1.15);
}

#spics p {
    padding: 6px;
    font-size: 11px;
    color: var(--text-light);
    margin: 0;
}

/* SEARCH BAR */
#searchbar {
    display: flex !important;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px !important;
    background: var(--card);
    border: 1px solid var(--border);
    margin-bottom: 20px;
    animation: slideUp 0.5s ease-out;
    border-radius: 12px;
}

#searchbar .floatleft,
#searchbar .floatright {
    float: none !important;
    flex: 1;
    min-width: 280px;
}

#searchbar form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    width: 100%;
}

#searchbar input,
#searchbar select {
    padding: 8px !important;
    border: 1px solid var(--border) !important;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3) !important;
    color: var(--text) !important;
    font-size: 12px;
    transition: all 0.3s ease;
}

#searchbar input::placeholder {
    color: var(--muted);
}

#searchbar input:focus,
#searchbar select:focus {
    border-color: var(--accent) !important;
    background: rgba(102, 126, 234, 0.1) !important;
    outline: none;
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.3);
}

#searchbar input[type="submit"] {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%) !important;
    color: white;
    border: none;
    padding: 8px 20px !important;
    cursor: pointer;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#searchbar input[type="submit"]:hover {
    background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent-3) 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* SIDE RBOX */
.side_rbox {
    background: transparent !important;
    border-radius: 0;
    overflow: hidden;
}

.side_rbox .ntitle {
    height: auto !important;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%) !important;
    color: white;
    padding: 10px 15px !important;
    line-height: normal !important;
    border-radius: 0;
}

.side_rbox_c {
    background: rgba(45, 55, 72, 0.7) !important;
    padding: 15px !important;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0;
    color: var(--text);
}

.side_rbox_w {
    background: transparent !important;
}

.side_rbox_w .side_rbox_c {
    background: rgba(45, 55, 72, 0.7) !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    align-items: center !important;
}

/* AVATARS */
.d_avatar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
}

.d_avatar img {
    width: 35px !important;
    height: 35px !important;
    border-radius: 50%;
    border: 2px solid var(--accent);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.d_avatar img:hover {
    border-color: var(--accent-3);
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

/* CHECKBOX STYLING */
#nlogin_box input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent);
}

.s_avatar img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px;
    object-fit: cover;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.s_avatar:hover img {
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.4);
}

/* EVENT LIST */
.elist {
    padding: 0 !important;
    height: auto !important;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.elist li {
    float: none !important;
    margin: 0 !important;
    width: 100% !important;
    background: rgba(45, 55, 72, 0.7);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-sun);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: slideUp 0.5s ease-out;
}

.elist li:hover {
    background: rgba(45, 55, 72, 0.9);
    transform: translateY(-4px);
    border-left-color: var(--accent-3);
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.25);
}

.elist h3 {
    color: var(--text) !important;
    margin-bottom: 10px !important;
}

.eimage {
    float: none !important;
    margin: 0 0 12px 0 !important;
    padding: 6px !important;
    width: 100% !important;
    height: auto !important;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.eimage a {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

.eimage img {
    width: 100% !important;
    height: auto !important;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.eimage a:hover img {
    transform: scale(1.05);
}

.egz {
    color: var(--accent-sun) !important;
    font-weight: bold;
}

/* FOOTER */
.footerbar {
    margin: 30px 0 20px 0 !important;
    width: 100% !important;
    background: var(--card);
    border: 1px solid var(--border);
    padding: 0 !important;
    overflow: hidden;
    border-radius: 12px;
}

.footerbar .nbox_c {
    border: none !important;
    padding: 20px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--text);
}

.footerbar a {
    color: var(--accent) !important;
    transition: color 0.3s ease;
}

.footerbar a:hover {
    color: var(--accent-3) !important;
}

.fbtop,
.fbbottom {
    display: none !important;
}

/* UTIL */
.message {
    color: var(--text-light) !important;
    line-height: 1.5;
}

/* LOGIN SUBMIT BUTTON */
.submitrow {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 15px !important;
}

.submitrow input[type="submit"],
#loginsubmit,
.submit {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%) !important;
    color: white !important;
    border: none !important;
    padding: 18px 50px !important;
    border-radius: 25px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3), 0 0 20px rgba(102, 126, 234, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: glow 2s ease-in-out infinite;
    width: 90%;
    max-width: 240px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
    line-height: 1.4;
}

.submitrow input[type="submit"]:hover,
#loginsubmit:hover,
.submit:hover {
    background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent-3) 100%) !important;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6), 0 0 30px rgba(240, 147, 251, 0.4);
}

.submitrow input[type="submit"]:active,
#loginsubmit:active,
.submit:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.submitrow a {
    color: var(--accent) !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.3s ease;
    order: 1;
    width: 100%;
    text-align: center;
}

.submitrow a:hover {
    color: var(--accent-3) !important;
    text-decoration: underline;
}

.nhot {
    float: right;
    color: var(--accent-sun) !important;
    font-weight: bold;
}

.nhot a {
    color: var(--accent-sun) !important;
    text-decoration: none;
}

.nhot a:hover {
    text-decoration: underline;
}

.gray {
    color: var(--muted) !important;
    font-size: 12px;
}

.gray a {
    color: var(--muted) !important;
    text-decoration: none;
}

.gray a:hover {
    color: var(--accent) !important;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .nbox {
        flex-direction: column;
    }
    
    .nbox_c,
    .nbox_s {
        width: 100% !important;
        flex: none !important;
    }
    
    .nbox_s {
        border-left: none;
        border-top: 1px solid var(--border);
        margin-top: 10px;
    }
    
    .bloglist,
    .elist {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .nbox {
        margin: 0 0 15px;
    }
    
    .nbox_c {
        padding: 15px !important;
    }
    
    #searchbar {
        flex-direction: column !important;
    }
    
    #searchbar .floatleft,
    #searchbar .floatright {
        min-width: 100% !important;
    }
    
    .bloglist,
    .elist {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    #spics li {
        width: 90px !important;
    }
    
    #spics .spic_img img {
        height: 70px !important;
    }
}

@media (max-width: 480px) {
    #regbutton {
        width: 100% !important;
        padding: 10px 15px !important;
        font-size: 13px;
    }
    
    #guest_app {
        flex-direction: column;
    }
    
    #guest_app a {
        width: 100%;
        text-align: center;
    }
}
