/* assets/css/layout.css */

/* ================= HEADER ================= */
.site-header {
    background: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.logo img {
    height: 80px;
    object-fit: contain;
}

/* Desktop Menu */
.desktop-menu {
    display: none;
    align-items: center;
    gap: 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.desktop-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.desktop-menu a:hover {
    color: #14b8a6;
}

/* Right Side */
.nav-right {
    display: none;
}

.user-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #14b8a6;
    font-weight: 700;
    cursor: pointer;
}

.dropdown-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.user-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 12px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    width: 260px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    overflow: hidden;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu a {
    display: block;
    padding: 12px 24px;
    color: #1f2937;
    text-decoration: none;
}

.dropdown-menu hr {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

.logout-link {
    color: #ef4444 !important;
}

/* Login Button */
.btn-login {
    background: #14b8a6;
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-login:hover {
    background: #0f766e;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.icon {
    width: 32px;
    height: 32px;
}

/* Mobile Menu */
.mobile-menu {
    background: #000;
    border-top: 1px solid #374151;
}

.mobile-menu-list {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 1.1rem;
}

.mobile-menu-list a {
    color: white;
    text-decoration: none;
}

.mobile-menu-bottom {
    padding: 1.5rem 2rem;
    border-top: 1px solid #374151;
}

/* ================= FOOTER ================= */
.site-footer {
    background: #1f2937;
    color: white;
    padding: 3rem 1.5rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-col h3 {
    color: #14b8a6;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #67e8f9;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: #d1d5db;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #4b5563;
    text-align: center;
    color: #9ca3af;
    font-size: 0.95rem;
}

/* ================= RESPONSIVE ================= */
@media (min-width: 768px) {
    .desktop-menu,
    .nav-right {
        display: flex;
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .logo img {
        height: 65px;
    }
}