/* THE 3D SCENE WRAPPER */
.csat-watch-scene {
    position: relative;
    width: 240px;
    height: 294px;
    margin: 0 auto;
    perspective: 1200px;
    transform: scale(0.75);
    transform-origin: center center;
}

/* INDIVIDUAL WRAPPERS */
.csat-wrapper {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: stackWatch 21s infinite cubic-bezier(0.32, 0.72, 0, 1);
    animation-delay: var(--delay, 0s);
    will-change: transform, opacity, filter;
    z-index: 1;
}

.csat-w1 { --delay: 0s; }
.csat-w2 { --delay: -7s; }
.csat-w3 { --delay: -14s; }

/* 
 * 🎨 APPLE WATCH REAL COLORS PALETTE
 * To change a watch's color, apply these variables 
 * to its class (e.g., .csat-w1).
 */

/* 🌌 Midnight (Default - Dark Blue/Black) */
.csat-w-color-midnight {
    /* Using defaults already set in .container */
}

/* ✨ Starlight (Warm Silver/Champagne) */
.csat-w-color-starlight {
    --chassis-border: #d4d0ca;
    --chassis-outline: #e5e3dc;
    --crown-top: #dfdbd6;
    --crown-mid: #bdb9b4;
}

/* 🔴 PRODUCT(RED) (Vibrant Metallic Red) */
.csat-w-color-red {
    --chassis-border: #8c1020;
    --chassis-outline: #d92437;
    --crown-top: #b51829;
    --crown-mid: #780e1b;
}

/* 🤍 Silver (Classic Aluminum) */
.csat-w-color-silver {
    --chassis-border: #e3e4e6;
    --chassis-outline: #f5f6f8;
    --crown-top: #eff0f2;
    --crown-mid: #d1d2d5;
}

/* 🖤 Graphite (Stainless Steel) */
.csat-w-color-graphite {
    --chassis-border: #3b3b3c;
    --chassis-outline: #5c5d60;
    --crown-top: #4a4a4d;
    --crown-mid: #252526;
}

/* 🥇 Gold (Stainless Steel) */
.csat-w-color-gold {
    --chassis-border: #d4af37;
    --chassis-outline: #ebd37d;
    --crown-top: #e6c55b;
    --crown-mid: #b08d2b;
}

/* 🌸 Pink (Series 9 Aluminum) */
.csat-w-color-pink {
    --chassis-border: #fadadd;
    --chassis-outline: #ffeaec;
    --crown-top: #ffebed;
    --crown-mid: #e3c4c7;
}

/* 🌲 Green (Series 7 Aluminum) */
.csat-w-color-green {
    --chassis-border: #2e4034;
    --chassis-outline: #415748;
    --crown-top: #3d5244;
    --crown-mid: #1d2a23;
}

/* 🌊 Blue (Series 7 Aluminum) */
.csat-w-color-blue {
    --chassis-border: #1f3442;
    --chassis-outline: #2a475a;
    --crown-top: #243e4f;
    --crown-mid: #11202b;
}

/* Applying defaults to our 3 watches for demonstration */
.csat-w1 { } /* Midnight */
.csat-w2 { 
    /* Starlight */
    --chassis-border: #d4d0ca;
    --chassis-outline: #e5e3dc;
    --crown-top: #dfdbd6;
    --crown-mid: #bdb9b4;
}
.csat-w3 { 
    /* Pink */
    --chassis-border: #fadadd;
    --chassis-outline: #ffeaec;
    --crown-top: #ffebed;
    --crown-mid: #e3c4c7;
}


/* The container itself */
.csat-animation-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 46px; 
    background: #000;
    border: 6px solid var(--chassis-border, #1a1a1c); 
    box-shadow: 
        0 0 0 1.5px var(--chassis-outline, #444), 
        0 15px 30px rgba(0,0,0,0.2),
        inset 0 0 4px rgba(255,255,255,0.15);
}

.csat-animation-container::before {
    content: '';
    position: absolute;
    right: -12px;
    top: 45px;
    width: 6px;
    height: 35px;
    background: linear-gradient(to bottom, var(--crown-top, #4a4a4c) 0%, var(--crown-mid, #2a2a2c) 20%, var(--crown-top, #4a4a4c) 50%, var(--crown-mid, #2a2a2c) 80%, var(--crown-top, #4a4a4c) 100%);
    border-radius: 2px 6px 6px 2px;
    box-shadow: -1px 0 2px rgba(0,0,0,0.5) inset;
}

.csat-animation-container::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 105px;
    width: 2px;
    height: 48px;
    background: var(--chassis-border, #1a1a1c);
    border-radius: 1px 2px 2px 1px;
}

.csat-watch-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 40px;
    background-color: #0a0a0c;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 30px 20px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "SF Compact Display", "SF Pro Display", Helvetica, sans-serif;
    color: #fff;
    z-index: 1; 
    overflow: hidden;
    transform-origin: center;
    animation: watchFacePush 21s infinite cubic-bezier(0.32, 0.72, 0, 1);
    animation-delay: var(--delay, 0s);
}

@keyframes auroraBg {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

@keyframes csatDateBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.csat-watch-clock {
    position: relative;
    z-index: 1;
    font-size: 54px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.csat-watch-date {
    position: relative;
    z-index: 1;
    font-size: 14px;
    font-weight: 600;
    color: #ff2d55;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    margin-right: 4px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    animation: csatDateBlink 1.2s ease-in-out infinite;
}



.csat-notification {
    width: 100%;
    height: 100%;
    border-radius: 40px; 
    background: rgba(40, 40, 40, 0.45);
    backdrop-filter: blur(35px) saturate(180%);
    -webkit-backdrop-filter: blur(35px) saturate(180%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    position: absolute;
    top: 0; left: 0;
    padding: 16px 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateY(-110%);
    opacity: 0;
    animation: watchEnterLeave 21s infinite cubic-bezier(0.32, 0.72, 0, 1);
    animation-delay: var(--delay, 0s);
    font-family: -apple-system, BlinkMacSystemFont, "SF Compact", "San Francisco", Helvetica, sans-serif;
    color: #fff;
    z-index: 2;
}

.csat-notif-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
    margin-bottom: 8px;
}

.csat-notif-app-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.csat-notif-icon {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #0984e3 0%, #536dfe 100%);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.csat-notif-app {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.csat-notif-time {
    display: none;
}

.csat-notif-body {
    padding: 0 4px;
    margin-bottom: 10px;
    text-align: center;
}

.csat-notif-body p {
    font-size: 15px;
    line-height: 1.25;
    margin: 0;
    font-weight: 500;
    color: #fff;
}

.csat-notif-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.csat-action {
    width: 100%;
    padding: 12px 0;
    text-align: center;
    border: none;
    border-radius: 24px; 
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s, background 0.2s;
}

.csat-action:active {
    transform: scale(0.95);
}

.csat-action-ignore {
    background: rgba(255, 59, 48, 0.85); /* Apple Red */
    animation: watchButtonTap 21s infinite cubic-bezier(0.32, 0.72, 0, 1);
    animation-delay: var(--delay, 0s);
}

.csat-action-answer {
    background: rgba(255, 255, 255, 0.15);
}

.csat-tap-cursor {


    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transform: scale(0);
    opacity: 0;
    z-index: 10;
    pointer-events: none;
    top: 145px; 
    left: 45%;
    animation: tapAnimation 7s infinite cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes stackWatch {
    0%, 18.33% { 
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 1;
        filter: blur(0);
        z-index: 3; 
    }
    21% { 
        transform: translate3d(0, 40px, -100px) scale(0.8) rotateX(-15deg);
        opacity: 0;
        filter: blur(10px);
        z-index: 3; 
    }
    22% { 
        transform: translate3d(0, 0, -200px) scale(0.6);
        opacity: 0;
        filter: blur(10px);
        z-index: 1; 
    }
    33.33% { 
        transform: translate3d(0, -90px, -150px) scale(0.7);
        opacity: 0.4;
        filter: blur(6px);
        z-index: 1; 
    }
    51.66% { 
        transform: translate3d(0, -90px, -150px) scale(0.7);
        opacity: 0.4;
        filter: blur(6px);
        z-index: 1; 
    }
    66.66% { 
        transform: translate3d(0, -45px, -75px) scale(0.85);
        opacity: 0.7;
        filter: blur(3px);
        z-index: 2; 
    }
    85% { 
        transform: translate3d(0, -45px, -75px) scale(0.85);
        opacity: 0.7;
        filter: blur(3px);
        z-index: 2; 
    }
    100% { 
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 1;
        filter: blur(0);
        z-index: 3; 
    }
}

@keyframes watchFacePush {
    0%, 1.33% { transform: scale(1); filter: blur(0); }
    4%, 17.33% { transform: scale(0.88); filter: blur(2px); }
    18.33%, 100% { transform: scale(1); filter: blur(0); }
}

@keyframes watchEnterLeave {
    0%, 1.66% { transform: translateY(-20px) scale(0.9); opacity: 0; }
    4% { transform: translateY(2px) scale(1.01); opacity: 1; }
    5%, 16.66% { transform: translateY(0) scale(1); opacity: 1; }
    17.66% { transform: scale(0.95); opacity: 0; } 
    18.33%, 100% { transform: scale(0.9); opacity: 0; }
}

@keyframes watchButtonTap {
    0%, 16% { transform: scale(1); filter: brightness(1); }
    16.66% { transform: scale(0.92); filter: brightness(0.7); } 
    17.33%, 100% { transform: scale(1); filter: brightness(1); }
}

@keyframes tapAnimation {
    0%, 45% { transform: scale(0) translateY(20px); opacity: 0; }
    48% { transform: scale(1) translateY(0); opacity: 0.8; }
    50% { transform: scale(0.8); opacity: 0.4; } 
    52%, 100% { transform: scale(0); opacity: 0; }
}

/* Custom backgrounds for each watch */
.csat-w1 .csat-watch-face {
    background-image: url('../assets/images/watch/some-wallpapers-which-will-look-amazing-on-your-apple-watch-v0-6lljnnp65mz61.webp');
}
.csat-w2 .csat-watch-face {
    background-image: url('../assets/images/watch/some-wallpapers-which-will-look-amazing-on-your-apple-watch-v0-c8e80wp65mz61.webp');
}
.csat-w3 .csat-watch-face {
    background-image: url('../assets/images/watch/some-wallpapers-which-will-look-amazing-on-your-apple-watch-v0-itrb8qp65mz61.webp');
}
