/* OJT Digest Styles */
:root {
    --digest-primary: #0d9488;
    --digest-secondary: #6366f1;
    --digest-accent: linear-gradient(135deg, #0d9488, #6366f1);
    --digest-bg-dark: #0f172a;
    --digest-bg-card: #1e293b;
}

/* Hero */
.digest-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
    background: var(--digest-bg-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.digest-hero::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13,148,136,0.3), transparent 70%);
    filter: blur(60px);
}

.digest-hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -50px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99,102,241,0.2), transparent 70%);
    filter: blur(60px);
}

.digest-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(13,148,136,0.2);
    border: 1px solid rgba(13,148,136,0.4);
    border-radius: 100px;
    color: #5eead4;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}

.digest-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
}

.digest-gradient-text {
    background: var(--digest-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.digest-hero-sub {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.8;
}

/* Digest Section */
.digest-section {
    padding: 60px 0 100px;
    background: #f8fafc;
}

/* Digest Grid */
.digest-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Digest Card */
.digest-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.digest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    border-color: rgba(13,148,136,0.3);
}

.digest-card-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.digest-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.digest-card:hover .digest-card-thumbnail img {
    transform: scale(1.03);
}

.digest-card-body {
    padding: 16px 18px 14px;
}

.digest-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.digest-vol-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--digest-accent);
    color: white;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.digest-date-label {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
}

.digest-card-body h3 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.45;
}

.digest-card-desc {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.digest-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.digest-topic {
    display: inline-block;
    padding: 2px 8px;
    background: #f0fdfa;
    color: #0d9488;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 600;
}

.digest-meta {
    display: flex;
    gap: 12px;
    font-size: 0.7rem;
    color: #94a3b8;
}

.digest-card-arrow {
    font-size: 1.5rem;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.digest-card:hover .digest-card-arrow {
    color: var(--digest-primary);
    transform: translateX(4px);
}

/* Video Detail Page */
.digest-detail-hero {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 40px;
    background: var(--digest-bg-dark);
    color: white;
}

.digest-detail-hero .digest-badge {
    margin-bottom: 12px;
}

.digest-detail-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.digest-detail-hero .digest-date-label {
    font-size: 1rem;
    color: #94a3b8;
}

/* Video Player */
.digest-player-section {
    padding: 40px 0 60px;
    background: #f8fafc;
}

.digest-video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.digest-video-wrapper .vimeo-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.digest-video-wrapper .vimeo-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Topics List */
.digest-topics-section {
    padding: 40px 0 80px;
    background: white;
}

.digest-topics-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.digest-topic-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid;
}

.digest-topic-item:nth-child(1) { border-left-color: #22d3ee; }
.digest-topic-item:nth-child(2) { border-left-color: #a855f7; }
.digest-topic-item:nth-child(3) { border-left-color: #4ade80; }
.digest-topic-item:nth-child(4) { border-left-color: #facc15; }
.digest-topic-item:nth-child(5) { border-left-color: #f87171; }

.digest-topic-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: #cbd5e1;
    min-width: 32px;
}

.digest-topic-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.digest-topic-content p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
}

.digest-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--digest-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    transition: gap 0.2s ease;
}

.digest-back-link:hover {
    gap: 12px;
}

/* Password Screen */
.password-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-box {
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.password-box .pw-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.password-box h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #1e293b;
}

.password-box p {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.6;
}

.password-box input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    text-align: center;
    letter-spacing: 0.15em;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.password-box input:focus {
    border-color: var(--digest-primary);
}

.password-box button {
    width: 100%;
    padding: 14px;
    margin-top: 12px;
    background: var(--digest-accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.password-box button:hover {
    opacity: 0.9;
}

.password-error {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 10px;
    display: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .digest-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .digest-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .digest-hero h1 { font-size: 2.2rem; }
    .digest-grid { grid-template-columns: 1fr; }
    .digest-detail-hero h1 { font-size: 1.5rem; }
}
