/* =========================================
   COMING SOON PAGE — Full Stylesheet
   Triswar Fashion Theme
   ========================================= */

/* ---- Layout Wrapper ---- */
.coming-soon-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 20% 20%, #1a1200 0%, #0a0a0a 40%, #000000 100%);
    padding: 4rem 1.5rem;
}

/* ---- Particle Canvas ---- */
#particle-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* ---- Animated Threads ---- */
.bg-threads {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.thread {
    position: absolute;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(201, 168, 76, 0.15) 30%,
        rgba(201, 168, 76, 0.25) 60%,
        transparent 100%
    );
    animation: thread-fall linear infinite;
}

.thread-1 { left: 8%;  height: 60%;  animation-duration: 8s;  animation-delay: 0s;   top: -60%; }
.thread-2 { left: 18%; height: 80%;  animation-duration: 12s; animation-delay: 2s;   top: -80%; }
.thread-3 { left: 32%; height: 50%;  animation-duration: 7s;  animation-delay: 1s;   top: -50%; }
.thread-4 { left: 47%; height: 70%;  animation-duration: 10s; animation-delay: 3.5s; top: -70%; }
.thread-5 { left: 61%; height: 55%;  animation-duration: 9s;  animation-delay: 1.5s; top: -55%; }
.thread-6 { left: 73%; height: 90%;  animation-duration: 14s; animation-delay: 0.5s; top: -90%; }
.thread-7 { left: 84%; height: 65%;  animation-duration: 11s; animation-delay: 4s;   top: -65%; }
.thread-8 { left: 93%; height: 45%;  animation-duration: 6s;  animation-delay: 2.5s; top: -45%; }

@keyframes thread-fall {
    0%   { transform: translateY(0);    opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(200vh); opacity: 0; }
}

/* ---- Main Content Container ---- */
.cs-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 800px;
    text-align: center;
    animation: fade-up 1s ease both;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Logo ---- */
.cs-logo {
    margin-bottom: 2rem;
    animation: fade-down 1s ease 0.1s both;
}

@keyframes fade-down {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cs-logo img,
.cs-logo .custom-logo {
    max-width: 380px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.3));
    transition: filter 0.4s ease;
}

.cs-logo img:hover,
.cs-logo .custom-logo:hover {
    filter: drop-shadow(0 0 35px rgba(201, 168, 76, 0.6));
}

/* ---- Divider ---- */
.cs-divider {
    margin: 1.5rem auto;
    animation: fade-in 0.8s ease 0.3s both;
}

@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---- Eyebrow & Headline ---- */
.cs-headline-wrap {
    margin-bottom: 2.5rem;
    animation: fade-up 1s ease 0.2s both;
}

.cs-eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 1rem;
    padding: 0.4rem 1.5rem;
    border: 1px solid var(--border-gold);
    border-radius: 50px;
    background: rgba(201, 168, 76, 0.05);
}

.cs-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--white);
    margin: 1rem 0 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e8d5a3 50%, #c9a84c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cs-subheadline {
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.65);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ---- Countdown Timer ---- */
.cs-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 2.5rem auto;
    flex-wrap: wrap;
    animation: fade-up 1s ease 0.35s both;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    padding: 1.2rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-unit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.08) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.countdown-unit:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(201, 168, 76, 0.2);
}

.countdown-unit:hover::before {
    opacity: 1;
}

.countdown-number {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.countdown-number.flip {
    animation: flip-number 0.4s ease;
}

@keyframes flip-number {
    0%   { transform: rotateX(0deg);   opacity: 1; }
    50%  { transform: rotateX(90deg);  opacity: 0; }
    100% { transform: rotateX(0deg);   opacity: 1; }
}

.countdown-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(201, 168, 76, 0.7);
    margin-top: 0.5rem;
}

.countdown-separator {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--gold-primary);
    opacity: 0.6;
    margin-bottom: 1.2rem;
    animation: pulse-separator 1.5s ease-in-out infinite;
}

@keyframes pulse-separator {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 0.15; }
}

/* ---- Subscription Form ---- */
.cs-subscribe {
    margin: 2rem auto;
    max-width: 560px;
    animation: fade-up 1s ease 0.45s both;
}

.cs-subscribe-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.2rem;
    letter-spacing: 0.05em;
}

.subscribe-form {
    width: 100%;
}

.subscribe-input-wrap {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-gold);
    border-radius: 60px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.subscribe-input-wrap:focus-within {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.subscribe-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    min-width: 0;
}

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

.subscribe-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    background: var(--gradient-gold);
    color: var(--black-deep);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 60px;
    margin: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

.subscribe-btn:hover {
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.5);
    transform: scale(1.03);
}

.subscribe-btn:active {
    transform: scale(0.98);
}

.subscribe-btn.loading .btn-text::after {
    content: '...';
    animation: loading-dots 1s infinite;
}

@keyframes loading-dots {
    0%   { content: '.'; }
    33%  { content: '..'; }
    66%  { content: '...'; }
}

.subscribe-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
    animation: fade-in 0.4s ease;
}

.subscribe-message.success {
    display: block;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: var(--gold-light);
}

.subscribe-message.error {
    display: block;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #f4a3a3;
}

/* ---- Features Grid ---- */
.cs-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem auto;
    animation: fade-up 1s ease 0.55s both;
}

.feature-item {
    padding: 1.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(201, 168, 76, 0.12);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.4s ease;
    cursor: default;
}

.feature-item:hover {
    background: rgba(201, 168, 76, 0.05);
    border-color: rgba(201, 168, 76, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(201, 168, 76, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--gold-primary);
    opacity: 0.85;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.6rem;
}

.feature-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
}

/* ---- Social Links ---- */
.cs-social {
    margin: 2rem auto;
    animation: fade-up 1s ease 0.65s both;
}

.cs-social-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.2rem;
}

.social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-gold);
    border-radius: 50%;
    color: var(--gold-primary);
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.social-icon:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: var(--black-deep);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(201, 168, 76, 0.4);
}

/* ---- Footer ---- */
.cs-footer {
    position: relative;
    z-index: 10;
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(201, 168, 76, 0.1);
    animation: fade-in 1s ease 0.8s both;
}

.cs-copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.05em;
}

.cs-contact {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.cs-contact a {
    color: rgba(201, 168, 76, 0.6);
}

.cs-contact a:hover {
    color: var(--gold-light);
}

/* ---- Shimmer effect on gold text ---- */
@keyframes gold-shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.cs-headline {
    background-size: 200% auto;
    animation: gold-shimmer 6s linear infinite;
}

/* =========================================
   RESPONSIVE STYLES
   ========================================= */

/* Tablet */
@media ( max-width: 768px ) {
    .cs-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .cs-countdown {
        gap: 0.35rem;
    }

    .countdown-unit {
        min-width: 72px;
        padding: 1rem 0.75rem;
    }

    .subscribe-input-wrap {
        flex-direction: column;
        border-radius: 16px;
    }

    .subscribe-btn {
        width: calc(100% - 8px);
        justify-content: center;
        border-radius: 12px;
    }
}

/* Mobile */
@media ( max-width: 480px ) {
    .coming-soon-wrapper {
        padding: 3rem 1rem;
    }

    .cs-features {
        grid-template-columns: 1fr;
    }

    .countdown-unit {
        min-width: 60px;
        padding: 0.75rem 0.5rem;
    }

    .countdown-separator {
        font-size: 1.5rem;
    }

    .cs-logo img {
        max-width: 260px;
    }
}

/* =========================================
   LAUNCHED STATE (when countdown hits zero)
   ========================================= */
.coming-soon-wrapper.launched {
    background: radial-gradient(ellipse at center, #1a1000 0%, #0a0a0a 100%);
}

.coming-soon-wrapper.launched .cs-countdown {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
