/* Base Styles */
:root {
    --primary-color: #e63946;
    --secondary-color: #f1faee;
    --accent-color: #a8dadc;
    --dark-color: #1d3557;
    --light-color: #f1faee;
    --text-color: #333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 7px;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.join-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.join-btn:hover {
    background-color: #c1121f;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* User Menu Styles */
.user-menu {
    position: relative;
}

.user-welcome {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    color: #333;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
}

.user-dropdown a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-dropdown a:hover {
    background: #f8f9fa;
}

.user-dropdown a:last-child {
    border-bottom: none;
    color: #e63946;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.nav-btn {
    background: #a8dadc;
    color: #1d3557;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
}

.admin-btn {
    background: #1d3557;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
}

/* Navigation Styles for New Items */
.nav-link {
    color: #333;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: #f8f9fa;
    color: #e63946;
}

.nav-link.active {
    background: #e63946;
    color: white;
}

.premium-link {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b6914 !important;
    font-weight: 700;
}

.premium-link:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    transform: translateY(-2px);
}

.add-member-link {
    background: linear-gradient(135deg, #2a9d8f 0%, #264653 100%);
    color: white !important;
    font-weight: 600;
}

.add-member-link:hover {
    background: linear-gradient(135deg, #264653 0%, #2a9d8f 100%);
    transform: translateY(-2px);
}

/* Mobile Navigation Styles */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-nav-header {
    background: linear-gradient(135deg, #1d3557 0%, #457b9d 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 5px;
}

.mobile-nav-links {
    padding: 20px 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mobile-nav-link:hover {
    background: #f8f9fa;
    color: #1d3557;
    transform: translateX(5px);
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    color: #666;
}

/* Mobile Navigation Styles for New Items */
.mobile-nav-link.premium {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b6914 !important;
    font-weight: 700;
    margin: 10px 0;
    border-radius: 8px;
}

.mobile-nav-link.join {
    background: #e63946;
    color: white !important;
    font-weight: 700;
    margin: 10px 0;
    border-radius: 8px;
    text-align: center;
}

.mobile-nav-link.admin {
    background: #1d3557;
    color: white !important;
    margin-top: 20px;
    border-radius: 8px;
    text-align: center;
}

.mobile-user-section {
    border-top: 1px solid #e1e5e9;
    margin-top: 10px;
    padding-top: 10px;
}

.mobile-user-info {
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1d3557;
}

.mobile-nav-link.add-member {
    background: linear-gradient(135deg, #2a9d8f 0%, #264653 100%);
    color: white !important;
    font-weight: 600;
    margin: 5px 0;
    border-radius: 8px;
    text-align: center;
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    list-style: none;
    margin-bottom: 20px;
}

.footer-links li {
    margin: 0 15px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: var(--primary-color);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links li {
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .mobile-nav-content {
        width: 85%;
    }
    
    .mobile-nav-header {
        padding: 15px;
    }
    
    .mobile-nav-link {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .navbar {
        padding: 10px 0;
    }
    
    .logo img {
        height: 35px;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
}