/*!
 * Coming Soon Bilingual - Main Stylesheet
 * Theme URI: https://example.com/coming-soon
 * Version: 1.0.0
 */

/* ===== CSS Variables ===== */
:root {
    --csb-accent: #6366f1;
    --csb-secondary: #8b5cf6;
    --csb-bg-opacity: 0.95;
    --csb-font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --csb-font-ar: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html[lang="ar"] body {
    font-family: var(--csb-font-ar);
}

html[lang="en"] body {
    font-family: var(--csb-font-en);
}

.csb-body {
    min-height: 100vh;
    background: #0f172a;
    overflow-x: hidden;
}

/* ===== Container ===== */
.csb-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #2e1065 100%);
    overflow: hidden;
}

/* ===== Background Ornaments ===== */
.csb-bg-ornaments {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.csb-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.csb-orb--1 {
    left: -8rem;
    top: -8rem;
    width: 24rem;
    height: 24rem;
    background: rgba(99, 102, 241, 0.12);
    animation: csb-float 6s ease-in-out infinite;
}

.csb-orb--2 {
    right: -8rem;
    bottom: -8rem;
    width: 24rem;
    height: 24rem;
    background: rgba(139, 92, 246, 0.12);
    animation: csb-float 6s ease-in-out 2s infinite;
}

.csb-orb--3 {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16rem;
    height: 16rem;
    background: rgba(217, 70, 239, 0.06);
    animation: csb-float 6s ease-in-out 4s infinite;
}

@keyframes csb-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.csb-grid {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image:
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ===== Language Switcher ===== */
.csb-lang-switch {
    position: absolute;
    top: 1.5rem;
    z-index: 20;
    padding: 0.625rem 1.25rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 9999px;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

html[lang="en"] .csb-lang-switch {
    right: 1.5rem;
}

html[lang="ar"] .csb-lang-switch {
    left: 1.5rem;
}

.csb-lang-switch:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

/* ===== Main Content ===== */
.csb-main {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 42rem;
}

/* ===== Logo ===== */
.csb-logo-wrapper {
    margin-bottom: 2rem;
}

.csb-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--csb-accent), var(--csb-secondary));
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.3);
    margin: 0 auto;
}

.csb-logo-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    color: #fff;
}

.csb-logo-img {
    max-width: 150px;
    height: auto;
    border-radius: 0.5rem;
}

/* ===== Title ===== */
.csb-title {
    margin-bottom: 0.75rem;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: linear-gradient(to right, #fff, #c7d2fe, #ddd6fe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .csb-title {
        font-size: 3.5rem;
    }
}

/* Show/hide based on language */
.csb-title__en,
.csb-title__ar {
    display: none;
}

html[lang="en"] .csb-title__en,
html[lang="ar"] .csb-title__ar {
    display: inline;
}

/* ===== Subtitle ===== */
.csb-subtitle {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}

@media (min-width: 640px) {
    .csb-subtitle {
        font-size: 1.5rem;
    }
}

.csb-subtitle__en,
.csb-subtitle__ar {
    display: none;
}

html[lang="en"] .csb-subtitle__en,
html[lang="ar"] .csb-subtitle__ar {
    display: inline;
}

/* ===== Description ===== */
.csb-description {
    margin-bottom: 2.5rem;
    max-width: 28rem;
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
}

@media (min-width: 640px) {
    .csb-description {
        font-size: 1.125rem;
    }
}

.csb-description__en,
.csb-description__ar {
    display: none;
}

html[lang="en"] .csb-description__en,
html[lang="ar"] .csb-description__ar {
    display: inline;
}

/* ===== Countdown ===== */
.csb-countdown-wrapper {
    width: 100%;
    margin-bottom: 3rem;
}

.csb-countdown-label {
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #a5b4fc;
}

.csb-countdown-label__en,
.csb-countdown-label__ar {
    display: none;
}

html[lang="en"] .csb-countdown-label__en,
html[lang="ar"] .csb-countdown-label__ar {
    display: inline;
}

.csb-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .csb-countdown {
        gap: 1rem;
    }
}

.csb-countdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.csb-countdown__box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@media (min-width: 640px) {
    .csb-countdown__box {
        width: 5rem;
        height: 5rem;
    }
}

.csb-countdown__box span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

@media (min-width: 640px) {
    .csb-countdown__box span {
        font-size: 1.875rem;
    }
}

.csb-countdown__unit {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.5);
}

/* Language-based visibility */
.csb-countdown__unit--en,
.csb-countdown__unit--ar {
    display: none;
}

html[lang="en"] .csb-countdown__unit--en,
html[lang="ar"] .csb-countdown__unit--ar {
    display: inline;
}

/* ===== Subscribe Form ===== */
.csb-subscribe-wrapper {
    width: 100%;
    max-width: 28rem;
    margin-bottom: 2.5rem;
}

.csb-subscribe-label {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
}

.csb-subscribe-label__en,
.csb-subscribe-label__ar {
    display: none;
}

html[lang="en"] .csb-subscribe-label__en,
html[lang="ar"] .csb-subscribe-label__ar {
    display: inline;
}

.csb-subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .csb-subscribe-form {
        flex-direction: row;
    }
}

.csb-input-group {
    position: relative;
    flex: 1;
}

.csb-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 0.875rem;
    font-family: inherit;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    outline: none;
}

html[lang="ar"] .csb-input {
    text-align: right;
}

html[lang="en"] .csb-input {
    text-align: left;
}

.csb-input:focus {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.csb-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.csb-input.error {
    border-color: rgba(248, 113, 113, 0.5);
}

.csb-input-placeholder {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.4);
    transition: all 0.3s ease;
}

html[lang="en"] .csb-input-placeholder {
    left: 1rem;
}

html[lang="ar"] .csb-input-placeholder {
    right: 1rem;
}

.csb-input:focus ~ .csb-input-placeholder,
.csb-input:not(:placeholder-shown) ~ .csb-input-placeholder {
    top: -0.5rem;
    font-size: 0.75rem;
    padding: 0 0.25rem;
}

.csb-input-placeholder__en,
.csb-input-placeholder__ar {
    display: none;
}

html[lang="en"] .csb-input-placeholder__en,
html[lang="ar"] .csb-input-placeholder__ar {
    display: inline;
}

.csb-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--csb-accent), var(--csb-secondary));
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.csb-btn:hover {
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.csb-btn:active {
    transform: scale(0.97);
}

.csb-btn__en,
.csb-btn__ar {
    display: none;
}

html[lang="en"] .csb-btn__en,
html[lang="ar"] .csb-btn__ar {
    display: inline;
}

.csb-error-msg {
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: #fca5a5;
}

/* ===== Subscribe Success ===== */
.csb-subscribe-success {
    padding: 1rem 1.5rem;
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 1rem;
}

.csb-subscribe-success__text {
    font-weight: 500;
    color: #6ee7b7;
}

.csb-subscribe-success__sub {
    font-size: 0.875rem;
    color: rgba(110, 231, 183, 0.7);
    margin-top: 0.25rem;
}

.csb-subscribe-success__text--en,
.csb-subscribe-success__text--ar,
.csb-subscribe-success__sub--en,
.csb-subscribe-success__sub--ar {
    display: none;
}

html[lang="en"] .csb-subscribe-success__text--en,
html[lang="en"] .csb-subscribe-success__sub--en,
html[lang="ar"] .csb-subscribe-success__text--ar,
html[lang="ar"] .csb-subscribe-success__sub--ar {
    display: inline;
}

/* ===== Contact Links ===== */
.csb-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.csb-contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.csb-contact-link:hover {
    color: rgba(255,255,255,0.85);
}

.csb-contact-link--social {
    gap: 0;
}

.csb-contact-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.csb-contact-text--en,
.csb-contact-text--ar {
    display: none;
}

html[lang="en"] .csb-contact-text--en,
html[lang="ar"] .csb-contact-text--ar {
    display: inline;
}

/* ===== Footer ===== */
.csb-footer {
    position: absolute;
    bottom: 1.5rem;
    z-index: 10;
    text-align: center;
}

.csb-footer__text {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
}

/* ===== WordPress Required Styles ===== */
.wpcf7-form {
    display: none;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 480px) {
    .csb-container {
        padding: 4rem 1rem 5rem;
    }

    .csb-title {
        font-size: 2rem;
    }

    .csb-subtitle {
        font-size: 1rem;
    }

    .csb-countdown__box {
        width: 3.25rem;
        height: 3.25rem;
    }

    .csb-countdown__box span {
        font-size: 1.25rem;
    }

    .csb-contact {
        gap: 1rem;
    }
}
