/* ====================================
   GLOBAL STYLES
   ==================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background: #fff;
}

/* ====================================
   HEADER
   ==================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
}

.logo {
    font-size: 28px;
    font-weight: 300;
    color: #000;
    text-decoration: none;
}

nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

nav a {
    color: #000;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    padding-bottom: 5px;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #000;
}

nav a:hover {
    opacity: 0.7;
}

/* ====================================
   SOCIAL ICONS
   ==================================== */

.social-icons {
    display: flex;
    gap: 20px;
    margin-left: 40px;
}

.social-icons a {
    color: #000;
    font-size: 20px;
    text-decoration: none;
    transition: opacity 0.3s;
    padding-bottom: 0;
}

.social-icons a::after {
    display: none;
}

.social-icons a:hover {
    opacity: 0.6;
}

/* ====================================
   FOOTER
   ==================================== */

footer {
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 998;
}

footer a {
    color: #999;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
}

footer a:hover {
    color: #666;
}

/* ====================================
   MAIN CONTENT
   ==================================== */

main {
    margin-top: 80px;
}

/* ====================================
   LIGHTBOX
   ==================================== */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    line-height: 1;
    transition: opacity 0.3s;
}

.lightbox-close:hover {
    opacity: 0.7;
}

/* ====================================
   LOGIN OVERLAY
   ==================================== */

.login-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.login-overlay.active {
    display: flex;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
}

.login-box h2 {
    margin-bottom: 30px;
    font-weight: 400;
    text-align: center;
}

.login-box input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.login-box button {
    width: 100%;
    background: #000;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 10px;
}

.login-box button:hover {
    background: #333;
}

.login-box button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.login-box .cancel-btn {
    background: #666;
}

.login-box .cancel-btn:hover {
    background: #888;
}

.login-error {
    color: #dc3545;
    font-size: 14px;
    text-align: center;
    margin-bottom: 15px;
    display: none;
}

.login-error.active {
    display: block;
}

/* ====================================
   STATUS MESSAGE
   ==================================== */

.status-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 4000;
    display: none;
}

.status-message.success {
    background: #28a745;
    color: white;
    display: block;
}

.status-message.error {
    background: #dc3545;
    color: white;
    display: block;
}

/* ====================================
   UTILITY CLASSES
   ==================================== */

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* ====================================
   MORE DROPDOWN (Mobile)
   ==================================== */

.more-dropdown {
    display: none;
    position: relative;
}

.more-btn {
    background: none;
    border: none;
    color: #000;
    font-size: 16px;
    cursor: pointer;
    padding-bottom: 5px;
    font-family: inherit;
}

.more-btn:hover {
    opacity: 0.7;
}

.more-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    z-index: 1001;
    padding: 8px 0;
}

.more-menu.active {
    display: block;
}

.more-menu a {
    display: block;
    padding: 10px 16px;
    color: #000;
    text-decoration: none;
    font-size: 14px;
}

.more-menu a:hover {
    background: #f5f5f5;
}

.more-menu a.active {
    font-weight: 500;
}

.more-menu a.active::after {
    display: none;
}

/* ====================================
   RESPONSIVE
   ==================================== */

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    .logo {
        font-size: 22px;
    }

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 14px;
    }

    nav > a.nav-desktop-only {
        display: none;
    }

    .more-dropdown {
        display: block;
    }

    .more-btn {
        font-size: 14px;
    }

    .social-icons {
        gap: 15px;
        margin-left: 15px;
    }
}

@media (min-width: 769px) {
    .more-dropdown {
        display: none;
    }
}
