/**
 * TT Splash Screen - Display Styles
 * Version: 1.3.0
 */

/* CSS Variables */
:root {
    --ttss-bg: #111111;
    --ttss-footer: #673ab7;
    --ttss-cta: #673ab7;
}

/* Reset */
.ttss-container {
    all: initial;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ================================
   POPUP MODE
   ================================ */
.ttss-popup {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.ttss-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: -1;
}

.ttss-popup .ttss-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    background: var(--ttss-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: ttss-fadeIn 0.3s ease-out;
    margin: 0 auto;
}

/* ================================
   SPLASH MODE
   ================================ */
.ttss-splash {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: var(--ttss-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 10px;
    padding-top: 2px;
    box-sizing: border-box;
}

.ttss-splash .ttss-content {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* ================================
   DISMISS BAR
   ================================ */
.ttss-dismiss-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: var(--ttss-bg);
}

.ttss-timer {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
}

.ttss-dismiss {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ttss-dismiss:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ================================
   LOGO (Top-Left)
   ================================ */
.ttss-logo {
    position: absolute;
    top: 8px;
    left: 12px;
    z-index: 10;
    max-width: 150px;
}

.ttss-logo-img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 48px;
}

/* Make dismiss bar accommodate logo */
.ttss-dismiss-bar {
    padding-left: 170px;
}

/* ================================
   CTA BAR
   ================================ */
.ttss-cta-bar {
    background: var(--ttss-cta);
    text-align: center;
    padding: 0;
}

.ttss-cta-link,
.ttss-cta-text {
    display: block;
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: background 0.2s ease;
}

.ttss-cta-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ttss-cta-text {
    cursor: default;
}

/* ================================
   MAIN IMAGE AREA
   ================================ */
.ttss-main {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ttss-image-link {
    display: block;
    line-height: 0;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

a.ttss-image-link {
    cursor: pointer;
}

div.ttss-image-link {
    cursor: default;
}

.ttss-image {
    max-width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

/* ================================
   FOOTER
   ================================ */
.ttss-footer {
    background: var(--ttss-footer);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 8px 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ttss-footer a {
    color: #fff !important;
    text-decoration: underline !important;
}

.ttss-footer a:hover {
    text-decoration: none !important;
}

/* ================================
   RESPONSIVE
   ================================ */
.ttss-mobile-only {
    display: none;
}

.ttss-desktop-only {
    display: block;
}

@media (max-width: 767px) {
    .ttss-desktop-only {
        display: none;
    }
    
    .ttss-mobile-only {
        display: block;
    }
    
    .ttss-popup {
        align-items: flex-start !important;
        padding-top: 10px !important;
    }
    
    .ttss-popup .ttss-content {
        max-width: 95vw;
        max-height: 92vh;
        border-radius: 8px;
        overflow-y: auto;
    }
    
    .ttss-splash {
        min-height: auto;
        padding: 10px;
        padding-top: 2px;
    }
    
    .ttss-dismiss {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .ttss-logo {
        top: 6px;
        left: 8px;
        max-width: 100px;
    }
    
    .ttss-logo-img {
        max-height: 36px;
    }
    
    .ttss-dismiss-bar {
        padding-left: 110px;
    }
    
    .ttss-footer {
        font-size: 10px;
        padding: 6px 15px;
    }
}

/* ================================
   ANIMATIONS
   ================================ */
@keyframes ttss-fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ttss-hidden {
    display: none !important;
}

/* ================================
   ACCESSIBILITY
   ================================ */
@media (prefers-reduced-motion: reduce) {
    .ttss-popup,
    .ttss-splash {
        animation: none;
        transition: none;
    }
}
