/* Archive Page Styles */

.archive-main {
    min-height: 100vh;
    background: linear-gradient(135deg, #6EC1E4 0%, #2B4080 100%);
    position: relative;
    overflow-x: hidden;
}

/* Hero Section */
.archive-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 40px 80px 40px;
}

.hero-content {
    text-align: center;
    max-width: 1200px;
    width: 100%;
}

.archive-title {
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 900;
    color: #f2f2f2;
    margin: 0 0 2rem 0;
    line-height: 0.8;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.title-part {
    display: inline-block;
    transform: rotate(-3deg);
    margin: 0 1rem;
}

.title-part:first-child {
    color: #2B4080; /* dark blue */
}

.title-part:last-child {
    color: #FFD700; /* yellow */
}

.archive-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #f2f2f2;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-weight: 300;
    font-style: italic;
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    color: #f2f2f2;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.search-input::placeholder {
    color: rgba(242, 242, 242, 0.6);
}

.search-input:focus {
    border-color: #2B4080;
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

/* Videos Section */
.archive-videos {
    padding: 0 40px 80px 40px;
    width: 100%;
    margin: 0 auto;
}

.videos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.video-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: inherit;
    display: block;
}

.video-item:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: #2B4080;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Video Placeholder and Lazy Loading */
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2B4080;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    transform: scale(1.02);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: #f2f2f2;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.video-placeholder:hover .play-button {
    background: rgba(43, 64, 128, 0.9);
    border-color: #2B4080;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-placeholder:hover .video-thumbnail {
    filter: brightness(0.8);
}

.video-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.video-title-link:hover .video-title {
    color: #FFD700;
    transform: translateX(5px);
}

.video-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f2f2f2;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-date {
    font-size: 0.85rem;
    color: rgba(242, 242, 242, 0.7);
    font-weight: 400;
    font-style: italic;
}

.loading-message {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.2rem;
    color: #f2f2f2;
    padding: 4rem 0;
    font-style: italic;
}

.error-message {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.1rem;
    color: #FF6B6B;
    padding: 2rem;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #f2f2f2;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: #2B4080;
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 1rem;
    color: #f2f2f2;
    font-weight: 500;
    min-width: 120px;
    text-align: center;
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.floating-shape.circle {
    width: 100px;
    height: 100px;
    background: #FFD700;
    border-radius: 50%;
    top: 20%;
    left: 10%;
    animation-delay: -2s;
}

.floating-shape.triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 87px solid #FF6B6B;
    top: 60%;
    right: 15%;
    animation-delay: -4s;
}

.floating-shape.square {
    width: 80px;
    height: 80px;
    background: #2B4080;
    top: 40%;
    right: 5%;
    transform: rotate(45deg);
    animation-delay: -1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Responsive Design */
@media (max-width: 968px) {
    .archive-hero {
        padding: 100px 20px 60px 20px;
    }
    
    .archive-videos {
        padding: 0 20px 60px 20px;
    }
    
    .videos-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .video-item {
        padding: 1rem;
    }
    
    .archive-title {
        margin-bottom: 1.5rem;
    }
    
    .title-part {
        margin: 0 0.5rem;
    }
    
    .archive-hero {
        min-height: 50vh;
        padding: 80px 20px 40px 20px;
    }
    
    .videos-grid {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .archive-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}