/* Videos Page Styles - Using main site variables */

.back-button {
    display: inline-block;
    margin-bottom: 2rem;
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: var(--card-shadow);
}

.back-button:hover {
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.intro-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid rgba(100, 108, 255, 0.1);
    box-shadow: var(--card-shadow);
    text-align: center;
}

.intro-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.intro-section strong {
    color: var(--accent-color);
}

/* Row Titles */
.row-title {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* CCNA Row */
.ccna-row {
    margin-bottom: 3rem;
}

/* Web Technologies Row */
.webtech-row {
    margin-bottom: 3rem;
}

/* Grid Layouts */
.videos-grid {
    display: grid;
    gap: 2rem;
}

/* Desktop Layout: 4 columns for CCNA, centered single for WebTech */
.ccna-grid {
    grid-template-columns: repeat(4, 1fr);
}

.webtech-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Center the Web Technologies card on desktop */
.webtech-grid .video-card {
    grid-column: 2 / 4; /* This centers it in columns 2-3 (spanning 2 columns) */
}

/* Alternatively, if you want WebTech to be single column centered: */
/* .webtech-grid .video-card {
    grid-column: 2 / 3;
    justify-self: center;
    width: 100%;
} */

.video-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(100, 108, 255, 0.1);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.video-icon {
    margin-bottom: 1rem;
    color: var(--accent-color);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-details {
    margin-bottom: 1rem;
    width: 100%;
    flex-grow: 1;
}

.video-card h3 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1.3rem;
}

.course-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    min-height: 60px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(100, 108, 255, 0.1);
    flex-wrap: wrap;
}

.stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    white-space: nowrap;
}

.stats i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.video-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: auto;
}

.video-link:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.video-link i {
    font-size: 1rem;
}

.access-info {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 193, 7, 0.2);
    box-shadow: var(--card-shadow);
    margin-top: 2rem;
}

.info-card h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
}

.info-card p {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.access-tips {
    background: rgba(100, 108, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.access-tips h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.access-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.access-tips li {
    padding: 0.5rem 0;
    color: var(--text-primary);
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
}

.access-tips li:before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.site-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(100, 108, 255, 0.1);
    text-align: center;
    color: var(--text-secondary);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-email {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-email:hover {
    text-decoration: underline;
}

/* Dark theme adjustments */
[data-theme="dark"] .access-info {
    border-color: rgba(255, 193, 7, 0.3);
}

[data-theme="dark"] .access-tips {
    background: rgba(255, 255, 255, 0.05);
}

/* Tablet Layout: 2 columns */
@media (min-width: 769px) and (max-width: 1024px) {
    .ccna-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .webtech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .webtech-grid .video-card {
        grid-column: 1 / 3;
        justify-self: center;
        max-width: 350px;
    }
}

/* Mobile Layout: 1 column (stacked) */
@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ccna-grid,
    .webtech-grid {
        grid-template-columns: 1fr;
    }

    .webtech-grid .video-card {
        grid-column: 1 / 2;
    }

    .video-card {
        padding: 1.25rem;
    }

    .intro-section,
    .access-info {
        padding: 1.5rem;
    }

    .row-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .ccna-row {
        margin-bottom: 2rem;
    }

    .webtech-row {
        margin-bottom: 2rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .video-card {
        padding: 1rem;
    }

    .intro-section,
    .access-info {
        padding: 1rem;
    }

    .video-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .course-description {
        min-height: auto;
        font-size: 0.85rem;
    }

    .video-icon {
        height: 50px;
    }

    .video-icon i {
        font-size: 2.5rem !important;
    }
}

/* Extra small adjustments for very wide screens */
@media (min-width: 1400px) {
    .video-card {
        padding: 2rem;
    }

    .course-description {
        min-height: 70px;
        font-size: 1rem;
    }

    .video-link {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Alternative: Web Tech as single card centered in second row */
.webtech-grid {
    display: flex;
    justify-content: center;
}

.webtech-grid .video-card {
    width: 100%;
    max-width: 350px; /* Same as CCNA cards */
}
