/* ===========================
   VARIÁVEIS DE TEMA
   =========================== */
:root {
    --playfibra-orange: #FF8C00;
    --playfibra-orange-hover: #e67e00;
    --playfibra-beige: #F5F5DC;
    --fb-bg: #f0f2f5;
    --fb-white: #ffffff;
    --fb-blue: #1877f2;
    --fb-gray-text: #65676b;
    --fb-gray-light: #e4e6eb;
    --fb-gray-hover: #f2f2f2;
    --color-success: #28a745;
    --color-danger: #dc3545;
    --color-warning: #ffc107;
    --box-shadow-sm: 0 1px 2px rgba(0,0,0,0.1);
    --box-shadow-md: 0 2px 4px rgba(0,0,0,0.1);
    --border-radius: 8px;
}

/* ===========================
   BASE / BODY
   =========================== */
body {
    background-color: var(--fb-bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--fb-gray-text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}


/* ===========================
   NAVBAR / HEADER
   =========================== */
.navbar-playfibra {
    background-color: var(--fb-white);
    box-shadow: var(--box-shadow-md);
    padding: 10px 0;
}

.navbar-brand {
    color: var(--playfibra-orange) !important;
    font-weight: bold;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 0;
    margin: 0;
}

.navbar-brand:hover {
    color: var(--playfibra-orange-hover) !important;
}

.brand-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
    display: block;
}

.brand-text {
    color: var(--playfibra-orange);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.navbar-toggler {
    border: none;
    box-shadow: none;
    padding: 0.25rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 140, 0, 0.25);
}

.navbar-collapse {
    transition: all 0.3s ease;
}

.navbar-nav {
    gap: 12px;
}

.nav-link {
    color: var(--fb-gray-text) !important;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 12px !important;
    border-radius: 6px;
}

.nav-link:hover {
    color: var(--playfibra-orange) !important;
    background-color: rgba(255, 140, 0, 0.05);
}

.nav-link i {
    margin-right: 6px;
}

.dropdown-toggle::after {
    border: none;
    content: '';
}

.dropdown-menu {
    border: 1px solid var(--fb-gray-light);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    margin-top: 12px;
}

.dropdown-item {
    color: var(--fb-gray-text);
    padding: 10px 16px;
    transition: all 0.2s ease;
    border-radius: 0;
}

.dropdown-item:hover {
    background-color: rgba(255, 140, 0, 0.05);
    color: var(--playfibra-orange);
}

.dropdown-item i {
    margin-right: 8px;
    width: 16px;
}

/* ===========================
   NAVBAR INTERAÇÕES
   =========================== */
.navbar-brand:active {
    transform: scale(0.98);
}

.nav-link:active {
    background-color: rgba(255, 140, 0, 0.1);
}

.nav-link.active {
    color: var(--playfibra-orange) !important;
    font-weight: 600;
}

/* Fixar o dropdown no topo da página */
.sticky-top {
    z-index: 1020;
}

/* Estilo para links de logout */
.nav-link.text-danger,
.dropdown-item.text-danger {
    color: var(--color-danger) !important;
}

.dropdown-item.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.05) !important;
}


/* ===========================
   BOTÕES
   =========================== */
.btn-playfibra {
    background-color: var(--playfibra-orange);
    color: var(--fb-white);
    border: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-playfibra:hover {
    background-color: var(--playfibra-orange-hover);
    color: var(--fb-white);
}


/* ===========================
   CARDS / POSTS
   =========================== */
.card-post {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow-sm);
    margin-bottom: 20px;
    background-color: var(--fb-white);
    transition: box-shadow 0.3s ease;
}

.card-post:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}


/* ===========================
   IMAGENS DE PERFIL
   =========================== */
.profile-pic-nav {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--fb-white);
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-pic-nav:hover {
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--playfibra-orange);
}

.profile-pic-post {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--fb-gray-light);
}


/* ===========================
   POST HEADER
   =========================== */
.post-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--fb-gray-light);
    gap: 12px;
}

.post-author {
    flex: 1;
    margin-left: 0;
}

.post-author h6 {
    margin: 0;
    font-weight: 600;
    color: var(--playfibra-orange-hover);
    font-size: 0.95rem;
}

.post-author span {
    font-size: 0.85rem;
    color: var(--fb-gray-text);
    display: inline;
}


/* ===========================
   POST CONTENT
   =========================== */
.post-content {
    padding: 4px 16px 16px 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.post-content p {
    margin: 0 0 12px 0;
    line-height: 1.5;
    color: var(--fb-white);
}

.post-content video {
    max-width: 100%;
    border-radius: 8px;
}


/* ===========================
   POST ACTIONS / REACTIONS
   =========================== */
.post-actions {
    border-top: 1px solid var(--fb-gray-light);
    padding: 8px;
    display: flex;
    justify-content: space-around;
    gap: 4px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--fb-gray-text);
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    flex: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.action-btn:hover {
    background-color: var(--fb-gray-hover);
    color: var(--playfibra-orange);
}

.action-btn i {
    margin-right: 6px;
}

.action-btn.active-pos {
    color: var(--playfibra-orange);
    background-color: rgba(255, 140, 0, 0.1);
}

.action-btn.active-neg {
    color: var(--color-danger);
    background-color: rgba(220, 53, 69, 0.1);
}


/* ===========================
   LOGIN PAGE
   =========================== */
.login-container {
    max-width: 500px;
    margin: 100px auto;
    background: var(--fb-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.login-container .text-center {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--fb-gray-text);
    margin-bottom: 30px;
}

#teste {
    text-align: center;
    margin-bottom: 20px;
    animation: slideInDown 0.8s ease-out;
}

.login-logo {
    width: 180px;
    height: auto;
    border-radius: 20px;
    animation: glow 3s ease-in-out infinite, bounce 3s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(255, 140, 0, 0.15));
}

.login-logo:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 15px 40px rgba(255, 140, 0, 0.4);
    filter: drop-shadow(0 6px 12px rgba(255, 140, 0, 0.3)) brightness(1.1);
}

/* ===========================
   SECURITY PAGE
   =========================== */
.security-container {
    display: flex;
    min-height: 100vh;
}

.security-menu {
    width: 250px;
    background: var(--fb-white);
    border-right: 1px solid var(--fb-gray-light);
    padding: 20px;
}

.security-menu h2 {
    color: var(--playfibra-orange);
    font-weight: 600;
    margin-bottom: 20px;
}

.security-menu ul {
    list-style: none;
    padding: 0;
}

.security-menu li {
    list-style: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    color: var(--fb-gray-text);
}

.security-menu li:hover {
    background: var(--fb-gray-hover);
    color: var(--playfibra-orange);
}

.security-content {
    flex: 1;
    padding: 30px;
    background: var(--fb-bg);
}

.sec {
    display: none;
}

.sec.active {
    display: block;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 140, 0, 0.6);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ===========================
   MODALS
   =========================== */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
}

.modal-header {
    background-color: var(--fb-white);
    border-bottom: 1px solid var(--fb-gray-light);
}

.modal-title {
    font-weight: 600;
    color: var(--fb-gray-text);
}

.modal-body {
    background-color: var(--fb-white);
    padding: 20px;
}

.modal-footer {
    background-color: var(--fb-white);
    border-top: 1px solid var(--fb-gray-light);
}

/* ===========================
   FORM ELEMENTS
   =========================== */
.form-control {
    border: 1px solid var(--fb-gray-light);
    border-radius: 6px;
    padding: 10px 12px;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: var(--playfibra-orange);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.form-select {
    border: 1px solid var(--fb-gray-light);
    border-radius: 6px;
    padding: 10px 12px;
}

.form-select:focus {
    border-color: var(--playfibra-orange);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

/* ===========================
   SIDEBAR
   =========================== */
.card-body {
    padding: 16px;
}

.card-body h6 {
    color: var(--fb-gray-text);
    margin-bottom: 12px;
}

.list-unstyled li {
    margin-bottom: 8px;
}

.list-unstyled a {
    color: var(--playfibra-orange);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.list-unstyled a:hover {
    color: var(--playfibra-orange-hover);
    text-decoration: underline;
}

/* ===========================
   VIDEO UPLOAD
   =========================== */
#videoUploadArea {
    border: 2px dashed var(--fb-gray-light) !important;
    transition: all 0.3s ease;
}

#videoUploadArea:hover {
    border-color: var(--playfibra-orange) !important;
    background-color: rgba(255, 140, 0, 0.05) !important;
}

/* ===========================
   COMMENTS CONTAINER
   =========================== */
#commentsContainer {
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 12px;
}

.comment {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--fb-gray-light);
}

.comment:last-child {
    border-bottom: none;
}

.comment-text {
    background-color: var(--fb-gray-hover);
    padding: 8px 12px;
    border-radius: 12px;
    line-height: 1.5;
}

/* ===========================
   BADGES / COUNTERS
   =========================== */
.reaction-count {
    font-size: 0.9rem;
    color: var(--fb-gray-text);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.text-warning {
    color: var(--playfibra-orange) !important;
}

.text-success {
    color: var(--color-success) !important;
}

.text-danger {
    color: var(--color-danger) !important;
}

.text-primary {
    color: var(--fb-blue) !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* ===========================
   RESPONSIVIDADE
   =========================== */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: var(--fb-white);
        border-top: 1px solid var(--fb-gray-light);
        margin-top: 10px;
        padding: 15px 0;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-link {
        padding: 12px 16px !important;
        border-radius: 0;
    }
    
    .nav-link:hover {
        background-color: rgba(255, 140, 0, 0.08);
    }
    
    .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 0 !important;
        box-shadow: none;
        border: none;
        background-color: #fafafa;
    }
    
    .dropdown-item {
        padding-left: 32px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 0.95rem;
    }
    
    .brand-text {
        font-size: 0.85rem;
        letter-spacing: 0;
    }
    
    .brand-logo {
        width: 28px;
        height: 28px;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .profile-pic-nav {
        width: 32px;
        height: 32px;
    }
}

