/* Container adjustments */
.preview-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 1; 
    width: 100%;
    min-height: 100%;
    background-color: #23272e;
    padding: 0 20px 20px 20px;
    box-sizing: border-box;
}

/* --- Dedicated Sub-Header Bar --- */
.preview-sub-header {
    width: calc(100% + 40px); /* Extends edge-to-edge inside container */
    margin: 0 -20px 25px -20px;
    background-color: #191c22;
    border-bottom: 1px solid #2d333b;
    padding: 12px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sub-header-nav {
    display: flex;
    gap: 35px;
}

.tab-btn {
    background: none;
    border: none;
    color: #8892b0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease, border-bottom 0.2s ease;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: #ffffff;
}

.tab-btn.active {
    color: #ffffff;
    border-bottom: 2px solid #9146FF; /* Twitch purple active indicator */
}

/* --- Content Wrapper --- */
.countdown-wrapper {
    text-align: center;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
}

/* --- Tab Content Visibility --- */
.tab-content {
    display: none;
}

.active-content {
    display: block;
}

.troll-title {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 20px; 
    font-weight: bold;
}

.timer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px; 
    flex-wrap: wrap; 
}

/* Individual dark background boxes for the numbers */
.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #111418;
    padding: 15px; 
    border-radius: 8px;
    min-width: 120px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* REVERSED BACK TO PURPLE */
.time-val {
    font-size: 4.5rem;
    font-weight: bold;
    color: #b388ff; 
    line-height: 1;
    font-family: 'Courier New', Courier, monospace;
}

.time-label {
    font-size: 0.9rem;
    color: #ffffff;
    margin-top: 10px;
    letter-spacing: 1px;
    font-family: system-ui, -apple-system, sans-serif;
    text-transform: uppercase;
}

/* --- Goals Section --- */
.goals-heading {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.goals-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 1.2rem;
    color: #ff3333;
}

.fail-cross {
    margin-left: 5px;
    font-size: 1rem;
}

/* Text sections styling */
.text-sections {
    display: flex;
    flex-direction: column;
    gap: 15px; 
    color: #d1d5db;
    line-height: 1.5;
    font-size: 1.1rem;
    padding: 0 20px;
}

.description {
    color: #ffffff;
}

.subtitle {
    color: #d1d5db;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.subtitle strong {
    color: #ffffff;
}

/* --- Minimal Audio Player (PURPLE) --- */
.audio-evidence {
    display: flex;
    justify-content: center;
    margin: 0;
}

.minimal-play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #9146FF; 
    color: white;
    border: none;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, background-color 0.2s ease;
    padding-left: 4px;
}

.minimal-play-btn:hover {
    transform: scale(1.1);
    background-color: #a970ff;
}

.minimal-play-btn.playing {
    padding-left: 0; 
}

/* --- Who is dav1n section --- */
.who-is-section {
    margin-top: 20px; 
    color: #d1d5db;
    line-height: 1.5;
    font-size: 1.1rem;
}

.who-is-section h2 {
    color: #ffffff;
    font-size: 1.6rem; 
    margin-bottom: 10px; 
}

.who-is-section p {
    margin-bottom: 8px; 
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timer-container { gap: 10px; }
    .time-val { font-size: 3rem; }
    .troll-title { font-size: 2rem; }
    .time-box { 
        min-width: 90px;
        padding: 15px;
    }
    .text-sections, .who-is-section, .goals-list { font-size: 1rem; }
    .sub-header-nav { gap: 20px; }
}

/* --- Top Right Popup --- */
.prp-popup {
    position: fixed;
    top: 90px; /* Sits just below the header */
    right: 20px;
    width: 320px;
    background-color: #1a1d24;
    border: 1px solid #9146FF;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateX(150%); /* Starts off-screen to the right */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy slide-in */
}

.prp-popup.show {
    transform: translateX(0); /* Slides into view */
}

.close-popup-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    color: #8892b0;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-popup-btn:hover {
    color: #ffffff;
}

.popup-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 35px 15px 15px; /* Extra right padding to avoid the X */
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 8px;
}

.popup-content:hover {
    background-color: #232730;
}

.popup-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #2a2f3a;
}

.popup-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.popup-text strong {
    color: #9146FF;
    font-size: 1.05rem;
}

.popup-text p {
    color: #d1d5db;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .prp-popup {
        width: calc(100% - 40px);
        top: 75px;
    }
}