/* Index Page Styles */

/* Auth Section */
.auth-section {
    display: flex;
    align-items: center;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-links a {
    color: #333;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 3px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s;
}

.auth-links .login-link {
    background: transparent;
}

.auth-links .login-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.auth-links .separator {
    color: #ccc;
    font-size: 14px;
}

.auth-links .register-link {
    background: #667eea;
    color: white;
}

.auth-links .register-link:hover {
    background: #5568d3;
    color: white;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.user-details {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-info .username {
    color: #667eea;
    font-weight: 600;
}

.user-info .logout-link {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.3s;
    margin-left: 8px;
}

.user-info .logout-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.hidden {
    display: none !important;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 30%;
    overflow: hidden;
    margin-top: 70px;
    background: #000;
}

.carousel-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #000 !important;
    opacity: 0;
    transition: opacity 1.5s ease-in-out !important;
    display: block !important;
}

.carousel-img.active {
    opacity: 1;
    z-index: 1;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.8);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-carousel {
        margin-top: 60px;
        height: 50vh;
    }
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #333;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-item h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #5568d3;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact {
        padding: 60px 0;
    }

    .contact h2 {
        font-size: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
    color: #667eea;
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding-left: 20px;
    }

    .dropdown-menu a {
        color: #666;
        padding: 8px 15px;
    }
}
