/* YeboFans - Professional Social Network Styling */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e91e63;
    --primary-dark: #c2185b;
    --primary-light: #f8bbd0;
    --secondary-color: #9c27b0;
    --background: #fafafa;
    --surface: #ffffff;
    --text-primary: #212121;
    --text-secondary: #757575;
    --border: #e0e0e0;
    --error: #f44336;
    --success: #4caf50;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: var(--surface);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.nav-link:hover {
    background: var(--background);
    color: var(--primary-color);
}

.btn-link {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.main-content {
    min-height: calc(100vh - 140px);
    padding: 24px 0;
}

.card {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}

.card-header {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid var(--success);
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid var(--error);
}

.profile-header {
    position: relative;
    margin: -24px -24px 24px -24px;
}

.profile-cover {
    height: 300px;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-light);
    border-radius: 12px 12px 0 0;
}

.profile-info {
    display: flex;
    align-items: flex-end;
    padding: 0 24px;
    margin-top: -80px;
    position: relative;
}

.profile-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 6px solid var(--surface);
    background-color: var(--border);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.profile-details {
    flex: 1;
    padding: 0 24px;
    padding-bottom: 16px;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
}

.tab {
    padding: 16px 24px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-secondary);
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.media-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.media-item:hover {
    transform: scale(1.05);
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.menu-card {
    background: var(--surface);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--text-primary);
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.menu-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.auth-container {
    max-width: 450px;
    margin: 60px auto;
}

.auth-card {
    background: var(--surface);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
}

footer {
    background: var(--surface);
    padding: 40px 0 24px;
    color: var(--text-secondary);
    margin-top: 40px;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.footer-column h4 {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.4rem;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a2e;
    color: #fff;
    z-index: 9999;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-banner-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-banner-content p i {
    margin-right: 0.5rem;
    color: var(--primary-light);
}

.cookie-banner-content a {
    color: var(--primary-light);
    text-decoration: underline;
}

.cookie-banner-content a:hover {
    color: #fff;
}

/* Legal Pages */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.legal-page h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.legal-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-page section {
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.legal-page h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 1rem 0 0.5rem;
}

.legal-page p {
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.legal-page ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-page ul li {
    line-height: 1.7;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.legal-page a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

/* Cookie Policy Table */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.cookie-table th,
.cookie-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.cookie-table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.contact-card h3 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.5rem;
}

.contact-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

/* About Features Grid */
.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.about-feature {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.about-feature i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.about-feature h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: none;
    padding-bottom: 0;
}

.about-feature p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .legal-page {
        padding: 1.5rem 0.5rem;
    }

    .legal-page h1 {
        font-size: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .navbar {
        padding: 8px 0;
    }

    .navbar-brand {
        font-size: 20px;
    }

    .navbar-menu {
        gap: 4px;
    }

    .navbar-menu .nav-link {
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 6px 8px;
        font-size: 10px;
        border-radius: 8px;
    }

    .navbar-menu .nav-link i {
        font-size: 18px;
    }

    .navbar-menu .nav-icon-link {
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 6px 8px !important;
        font-size: 10px;
    }

    .navbar-menu .nav-icon-link i {
        font-size: 18px;
    }

    .navbar-menu .nav-icon-link .nav-badge {
        top: -2px;
        right: -2px;
    }

    .navbar-menu .nav-label {
        display: block;
        font-size: 10px;
        line-height: 1;
    }

    .navbar-menu .nav-text {
        font-size: 10px;
    }
}

/* Nav icon links with badges */
.nav-icon-link {
    position: relative;
    padding: 8px 12px !important;
    font-size: 18px;
}

.nav-label {
    display: none;
}

.nav-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #f44336;
    color: white;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    padding: 0 4px;
    border: 2px solid var(--surface);
}

/* Online status indicator */
.online-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4caf50;
    display: inline-block;
    margin-right: 4px;
    flex-shrink: 0;
}

.online-status {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.online-status.is-online {
    color: #4caf50;
}

/* Secondary button style */
.btn-secondary {
    background: var(--background);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

/* Logout menu card */
.menu-card-logout {
    border: 2px solid var(--border);
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.menu-card-logout:hover {
    border-color: var(--error);
}

.menu-card-logout .menu-icon {
    color: var(--error);
}

.text-center { text-align: center; }
.d-inline { display: inline; }
