/**
 * TVM Personal Program – frontend styles for member content
 * Designed to look great on dark themes (matches The Viking Method).
 */

/* === Container === */
.tvm-program {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

/* === Welcome block === */
.tvm-welcome {
    text-align: center;
    margin-bottom: 32px;
}

.tvm-welcome-heading {
    font-size: 2.2em;
    margin: 0 0 12px;
    line-height: 1.2;
    color: #d4a24a; /* viking gold */
    font-weight: 700;
}

.tvm-welcome-message {
    font-size: 1.05em;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 720px;
    color: inherit;
    opacity: 0.95;
}

/* === Program title === */
.tvm-program-title {
    font-size: 1.6em;
    margin: 30px 0 20px;
    text-align: center;
    color: #d4a24a;
    font-weight: 600;
}

/* === Videos list === */
.tvm-videos-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 30px 0;
}

.tvm-video-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 162, 74, 0.25);
    border-radius: 10px;
    padding: 24px;
    transition: border-color 0.2s, transform 0.2s;
}

.tvm-video-card:hover {
    border-color: rgba(212, 162, 74, 0.5);
}

.tvm-video-title {
    font-size: 1.35em;
    margin: 0 0 16px;
    color: #d4a24a;
    font-weight: 600;
    line-height: 1.3;
}

/* Responsive 16:9 video wrapper */
.tvm-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.tvm-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

/* Side-by-side row: video left, description right */
.tvm-video-row {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

/* Video column — takes up 60% when description present, full width otherwise */
.tvm-video-col {
    flex: 1 1 60%;
    min-width: 0;
}

/* Description column */
.tvm-video-desc-col {
    flex: 1 1 38%;
    min-width: 0;
    display: flex;
    align-items: center;
}

.tvm-video-description {
    margin: 0;
    font-size: 0.98em;
    line-height: 1.7;
    color: inherit;
    opacity: 0.9;
}

/* Stack on mobile */
@media (max-width: 700px) {
    .tvm-video-row {
        flex-direction: column;
    }
    .tvm-video-col,
    .tvm-video-desc-col {
        flex: 1 1 100%;
    }
    .tvm-video-description {
        margin-top: 14px;
    }
}

/* Empty state */
.tvm-video-empty {
    padding: 50px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(212, 162, 74, 0.4);
    text-align: center;
    border-radius: 10px;
    margin: 30px 0;
}

.tvm-video-empty p {
    margin: 0;
    color: inherit;
    opacity: 0.8;
}

/* === PDF button === */
.tvm-pdf {
    margin: 32px 0;
    text-align: center;
}

.tvm-pdf-btn {
    display: inline-block;
    background: #d4a24a;
    color: #000 !important;
    padding: 14px 32px;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1em;
    letter-spacing: 0.3px;
    transition: background 0.2s, transform 0.15s;
    border: 2px solid #d4a24a;
}

.tvm-pdf-btn:hover {
    background: transparent;
    color: #d4a24a !important;
    transform: translateY(-1px);
}

/* === Notes === */
.tvm-notes {
    margin: 32px 0;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid #d4a24a;
    border-radius: 4px;
    line-height: 1.7;
}

.tvm-notes p:last-child { margin-bottom: 0; }
.tvm-notes a { color: #d4a24a; }
.tvm-notes h1, .tvm-notes h2, .tvm-notes h3, .tvm-notes h4 { color: #d4a24a; }

/* === Locked state === */
.tvm-locked {
    padding: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}
.tvm-locked a { color: #d4a24a; font-weight: 600; }

/* === Mobile === */
@media (max-width: 600px) {
    .tvm-welcome-heading { font-size: 1.7em; }
    .tvm-program-title { font-size: 1.3em; }
    .tvm-video-card { padding: 16px; }
    .tvm-video-title { font-size: 1.15em; }
    .tvm-videos-list { gap: 28px; }
}
