/*
Plugin Name: Simple Coming Soon
Version: 1.4.5
*/

/* --- 1. RESET & BASE --- */
/* FIX: Apply border-box globally to plugin elements to prevent width overflow */
.scs-wrapper, .scs-wrapper * {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
}

/* --- 2. LAYOUT WRAPPER --- */
.scs-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    
    /* FIX 1: Use Dynamic Height & Allow Scroll */
    height: 100%; /* Fallback */
    height: 100dvh; /* Modern Mobile Height */
    overflow-y: auto; /* ALLOW SCROLLING */
    -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
    
    /* FIX 2: Layout Setup */
    display: flex;
    flex-direction: column;
    
    z-index: 9999;
    text-align: center;
    padding: 20px;
    /* box-sizing is now handled by the global reset above */
}

/* --- 3. GLASS CARD CONTAINER --- */
.scs-content {
    background: #ffffff;
    padding: 50px 40px; 
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
    max-width: 600px;
    width: 100%;
    
    /* FIX 3: The Safe Center Trick */
    margin: auto; 
    
    animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* --- 4. TYPOGRAPHY & BRANDING --- */
.scs-logo {
    height: auto;
    margin-bottom: 25px;
    display: inline-block;
}

.scs-content h1 {
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.scs-content p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

/* --- 5. COUNTDOWN TIMER --- */
#scs-countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 35px 0;
    flex-wrap: wrap;
}

.scs-time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.scs-time-box span {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    color: inherit;
    font-variant-numeric: tabular-nums; 
}

.scs-time-box small {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.7;
    margin-top: 8px;
    letter-spacing: 1px;
    font-weight: 500;
}

.scs-expired {
    font-size: 1.5rem;
    font-weight: bold;
    color: #27ae60;
}

/* Screen Reader Only Class */
.scs-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- 6. ACTION BUTTON --- */
.scs-btn {
    display: inline-block;
    margin-top: 25px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
    padding: 12px 30px;
    border-radius: 50px;
    background-color: #0073aa; 
    color: #fff;
    border: 0 solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ACCESSIBILITY FOCUS STATES */
.scs-btn:focus, .scs-icon:focus {
    outline: 3px solid #2271b1;
    outline-offset: 2px;
}

/* --- 7. SOCIAL ICONS --- */
.scs-social-icons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap; 
}

.scs-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #f5f7fa;
    color: #5d6778; 
    text-decoration: none;
    transition: all 0.2s ease;
}

.scs-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor; 
}

.scs-icon:hover { 
    transform: translateY(-3px); 
    color: #fff; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); 
}

/* BRAND COLORS */
.scs-icon.facebook:hover { background-color: #1877F2; }
.scs-icon.twitter:hover { background-color: #000000; }
.scs-icon.instagram:hover { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.scs-icon.tiktok:hover { background-color: #000000; }
.scs-icon.youtube:hover { background-color: #FF0000; }
.scs-icon.linkedin:hover { background-color: #0077b5; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 8. RESPONSIVE / MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    /* Tighten spacing on mobile to fit more content */
    .scs-content { 
        padding: 30px 20px; 
    }
    .scs-content h1 { font-size: 2rem; }
    
    #scs-countdown { gap: 10px; }
    .scs-time-box { min-width: 55px; }
    .scs-time-box span { font-size: 1.5rem; }
    
    .scs-btn { 
        width: 100%; 
        box-sizing: border-box; 
        padding-top: 15px; 
        padding-bottom: 15px; 
    }
}

/* 3-COLUMN GRID FOR SOCIAL ICONS ON MOBILE */
@media (max-width: 480px) {
    .scs-social-icons {
        display: grid;
        grid-template-columns: repeat(3, auto);
        justify-content: center;
        gap: 15px;
        margin-top: 25px;
    }
    
    .scs-icon {
        width: 44px;
        height: 44px;
        margin: auto;
    }
}

/* SHORT SCREENS (Landscape Mode Fix) */
@media (max-height: 600px) {
    .scs-wrapper {
        align-items: flex-start;
        padding-top: 20px;
        padding-bottom: 20px;
    }
}