/* 
   Orkutr - Design System Stable & Faithful
   Restaurado com base na imagem do usuário "Como Era"
*/

:root {
    --orkut-purple: #6f42c1;
    --orkut-purple-light: #9f7aea;
    --orkut-bg-auth: #f0f2f5;
    /* Light grey from original image */
    --orkut-white: #ffffff;
    --orkut-text: #333333;
    --orkut-link: #6f42c1;
    --orkut-pink: #ed2590;
    --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Reset Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #81e4c3;
    /* Default teal for profile, overridden in auth by layout */
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--orkut-text);
    font-size: 13px;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
}

/* No underlines for links */
a {
    color: var(--orkut-link);
    text-decoration: none !important;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--orkut-purple-light);
}

/* --- HEADER --- */
.orkut-header {
    background: var(--orkut-purple);
    color: white;
    padding: 10px 0;
    margin-bottom: 20px;
}

.orkut-header a {
    color: white !important;
    font-weight: 600;
}

.orkut-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* --- CARDS --- */
.orkut-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
    border: none;
}

.orkut-card-header {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 10px 10px 0 0;
    font-weight: 700;
    color: var(--orkut-purple);
    margin: -20px -20px 15px -20px;
    border-bottom: 1px solid #eee;
}

/* --- PROFILE SIDEBAR --- */
.menu-list ul {
    list-style: none !important;
    padding: 0 !important;
}

.menu-list li a,
.menu-list>a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    color: var(--orkut-purple) !important;
    font-size: 0.95rem;
}

/* Specific for 'Editar Perfil' under photo */
.orkut-card .menu-list>a {
    padding: 5px 10px;
    font-size: 0.85rem;
    color: var(--orkut-purple-light) !important;
}

.menu-list li a:hover {
    background: #f0ecf9;
}

/* --- PREMIUM IMAGES --- */
.profile-pic {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 12px;
}

.social-avatar,
.friend-photo,
.visitor-photo {
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 10px;
}

.album-cover img,
.community-photo {
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 10px;
    width: 100%;
}

/* --- ADMIN PANEL FIXES --- */
.admin-user-thumb {
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 1px solid #ddd;
}

.table.table-sm td {
    vertical-align: middle;
}

/* --- AUTH PAGES (LOGIN / REGISTER) - MATCHING "COMO ERA" --- */
.auth-classic-layout {
    min-height: 100vh;
    background-color: var(--orkut-bg-auth) !important;
    display: flex;
    flex-direction: column;
}

.auth-notice-bar {
    background: #fff8e1;
    padding: 8px;
    text-align: center;
    font-size: 0.8rem;
    color: #856404;
}

.auth-main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-columns {
    display: flex;
    gap: 30px;
    max-width: 1000px;
    width: 100%;
    align-items: flex-start;
}

.auth-left-brand {
    flex: 1.2;
    background: white;
    padding: 40px;
    /* Reduced from 60px to help alignment */
    border-radius: 20px;
    text-align: left;
    box-shadow: var(--card-shadow);
}

.auth-logo-large {
    font-size: 3.8rem;
    /* Reduced to balance height */
    font-weight: 800;
    color: var(--orkut-pink);
    letter-spacing: -3px;
    margin-bottom: 20px;
    display: block;
    line-height: 1;
}

.auth-logo-large span {
    color: var(--orkut-purple-light);
}

.auth-description {
    color: #666;
    line-height: 1.5;
    font-size: 0.92rem;
    /* Reduced to balance height */
}

.auth-right-box {
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.btn-orkut {
    background-color: var(--orkut-purple);
    color: white !important;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    width: 100%;
    margin-top: 10px;
    transition: background-color 0.2s;
    display: inline-block;
    text-align: center;
}

.btn-orkut:hover {
    background-color: var(--orkut-purple-light);
    color: white !important;
}

.btn-outline-primary {
    border: 2px solid var(--orkut-link);
    color: var(--orkut-link) !important;
    background: transparent;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-outline-primary:hover {
    background-color: var(--orkut-link);
    color: white !important;
}

/* Global button hover fix to prevent "disappearing" */
.btn:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-success:hover,
.btn-danger:hover,
.btn-info:hover {
    color: white !important;
}

/* --- SEARCH MOBILE --- */
.mobile-search-bar {
    display: none;
    background: white;
    padding: 15px;
    border-bottom: 2px solid var(--orkut-purple);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
}

.mobile-search-bar.active {
    display: block;
}

/* --- MOBILE BOTTOM NAV --- */
.orkut-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    height: 70px;
    display: none;
    z-index: 2000;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #eee;
}

/* --- RESPONSIVITY (MOBILE ONLY) --- */
@media (max-width: 991px) {
    .orkut-mobile-nav {
        display: flex;
    }

    .auth-columns {
        flex-direction: column !important;
        align-items: center;
    }

    .auth-right-box {
        width: 100% !important;
    }

    .auth-left-brand {
        padding: 40px 20px !important;
        text-align: center;
        width: 100%;
    }

    .auth-logo-large {
        font-size: 3.5rem !important;
    }

    .row.g-1 img,
    .row.g-2 img,
    .col-4 img {
        aspect-ratio: 1/1 !important;
    }
}

.text-pink {
    color: var(--orkut-pink);
}

/* Premium UI Helpers */
.rounded-3 {
    border-radius: 12px !important;
}

.album-cover,
.social-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.album-cover:hover,
.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

.hover-opacity:hover {
    opacity: 0.7;
}

.border-pink {
    border-color: #ffc1d6 !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

/* --- RETRO TV STYLES (PAYMENT PAGE) --- */
.retro-tv-container {
    background: #332d29;
    padding: 15px;
    padding-right: 65px;
    /* Space for side controls */
    border-radius: 30px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 8px solid #221d1b;
    max-width: 320px;
    margin: 0 auto;
}

.tv-screen-wrapper {
    background: #000;
    padding: 10px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.tv-screen-content {
    background: white;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.tv-screen-content img {
    max-width: 90%;
    filter: contrast(1.1);
}

.tv-side-controls {
    position: absolute;
    right: 25px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.tv-knob {
    width: 25px;
    height: 25px;
    background: radial-gradient(#666, #333);
    border-radius: 50%;
    border: 2px solid #222;
}

.tv-speaker {
    width: 30px;
    height: 4px;
    background: #222;
    border-radius: 2px;
}

.animate-pulse {
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.btn-outline-pink {
    border: 2px solid var(--orkut-pink);
    color: var(--orkut-pink) !important;
    background: transparent;
    border-radius: 8px;
    padding: 5px 15px;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-outline-pink:hover {
    background: var(--orkut-pink);
    color: white !important;
}