/* Improved Responsive Design */

/* Base responsive improvements */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

/* Hero Section Improvements */
.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

/* Video Container Responsive */
.hero-video-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-video {
    width: 100%;
    height: auto;
    display: block;
}

/* Edition Cards Improvements */
.edition-card {
    background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.edition-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 123, 255, 0.3);
    border-color: rgba(0, 123, 255, 0.5);
}

.edition-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.edition-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.edition-card:hover .edition-image img {
    transform: scale(1.1);
}

.edition-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 123, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.edition-card:hover .edition-overlay {
    opacity: 1;
}

.edition-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.edition-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.edition-description {
    color: #b3b3b3;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.edition-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.edition-actions .btn {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.edition-actions .btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    color: white;
}

.edition-actions .btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.edition-actions .btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.edition-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* Admin Button Improvements */
.admin-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    color: white;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.admin-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

.admin-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Navigation Improvements */
.modern-navbar {
    backdrop-filter: blur(10px);
    background: rgba(26, 26, 26, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Footer Improvements */
footer {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon {
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #b3b3b3;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.2);
    color: #007bff;
}

/* Loading Screen Improvements */
.loading-screen {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d, #007bff);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite, pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Mobile Specific Improvements */
@media (max-width: 768px) {
    .admin-btn {
        top: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .hero-section {
        padding-top: 80px;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-video-container {
        max-width: 350px;
    }
    
    .edition-actions {
        flex-direction: column;
    }
    
    .edition-actions .btn {
        min-width: auto;
    }
    
    .navbar-collapse {
        background: rgba(26, 26, 26, 0.98);
        border-radius: 10px;
        margin-top: 10px;
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .edition-card {
        margin-bottom: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus,
.admin-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .edition-card {
        border: 2px solid #ffffff;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

