/**
 * KITTBIT Coming Soon - Noah's Yard
 * Brand-specific stylesheet with animations
 * 
 * Brand Colors:
 * Primary (Blue Dianne): #24615a
 * Secondary (Parchment): #eee9cb
 */

/* ================================================
   CSS Custom Properties (Variables)
   ================================================ */
:root {
    --noahsyard-primary: #24615a;
    --noahsyard-secondary: #eee9cb;
    --noahsyard-dark: #1a4841;
    --noahsyard-light: #f5f2e3;
    --noahsyard-accent: #d4a574;
    --font-primary: Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 4px 6px rgba(36, 97, 90, 0.1);
    --shadow-medium: 0 10px 25px rgba(36, 97, 90, 0.15);
    --shadow-large: 0 20px 40px rgba(36, 97, 90, 0.2);
}

/* ================================================
   Base Styles & Reset
   ================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.kittbit-coming-soon {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--noahsyard-secondary) 0%, var(--noahsyard-light) 100%);
    color: var(--noahsyard-dark);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Decorative background pattern */
body.kittbit-coming-soon::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(36, 97, 90, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(36, 97, 90, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ================================================
   Main Container
   ================================================ */
.cs-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ================================================
   Logo Section
   ================================================ */
.cs-logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.cs-logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(var(--shadow-soft));
    transition: var(--transition-smooth);
    cursor: pointer;
}

.cs-logo:hover {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(var(--shadow-medium));
}

.cs-logo:active {
    transform: scale(0.95);
}

/* ================================================
   Content Section
   ================================================ */
.cs-content {
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.cs-heading {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--noahsyard-primary);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(36, 97, 90, 0.1);
    letter-spacing: -0.02em;
}

.cs-subtitle {
    font-size: 1.5rem;
    color: var(--noahsyard-dark);
    margin-bottom: 40px;
    font-weight: 300;
}

/* ================================================
   Countdown Timer
   ================================================ */
.cs-countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.countdown-item {
    background: white;
    padding: 25px 35px;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    min-width: 120px;
    transition: var(--transition-smooth);
    border: 3px solid var(--noahsyard-secondary);
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
    border-color: var(--noahsyard-primary);
}

.countdown-value {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--noahsyard-primary);
    line-height: 1;
    margin-bottom: 10px;
}

.countdown-label {
    display: block;
    font-size: 0.9rem;
    color: var(--noahsyard-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* ================================================
   Info Card
   ================================================ */
.cs-info-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 40px auto;
    box-shadow: var(--shadow-large);
    border: 3px solid var(--noahsyard-secondary);
    transition: var(--transition-smooth);
    max-width: 800px;
}

.cs-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(36, 97, 90, 0.25);
}

.info-card-title {
    font-size: 2rem;
    color: var(--noahsyard-primary);
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.info-card-details {
    display: grid;
    gap: 25px;
    text-align: left;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: var(--noahsyard-light);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.info-item:hover {
    background: var(--noahsyard-secondary);
    transform: translateX(5px);
}

.info-icon {
    flex-shrink: 0;
    color: var(--noahsyard-primary);
    width: 28px;
    height: 28px;
}

.info-text {
    flex: 1;
    color: var(--noahsyard-dark);
    line-height: 1.8;
}

.info-text strong {
    color: var(--noahsyard-primary);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

/* ================================================
   Map Section
   ================================================ */
.cs-map-section {
    margin: 50px auto;
    max-width: 800px;
    width: 100%;
}

.map-title {
    font-size: 2rem;
    color: var(--noahsyard-primary);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-large);
    border: 3px solid var(--noahsyard-secondary);
    background: white;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
}

.map-placeholder {
    padding: 60px 20px;
    text-align: center;
    background: var(--noahsyard-light);
}

.map-placeholder svg {
    color: var(--noahsyard-primary);
    margin-bottom: 15px;
}

.map-placeholder p {
    color: var(--noahsyard-dark);
    font-size: 1.1rem;
    margin: 10px 0;
}

.map-note {
    font-size: 0.9rem !important;
    color: #666 !important;
    font-style: italic;
}

/* ================================================
   Social Media
   ================================================ */
.cs-social {
    margin: 50px 0;
}

.social-title {
    font-size: 1.2rem;
    color: var(--noahsyard-dark);
    margin-bottom: 20px;
    font-weight: 600;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    color: var(--noahsyard-primary);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    border: 2px solid var(--noahsyard-secondary);
}

.social-link:hover {
    background: var(--noahsyard-primary);
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-large);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

/* ================================================
   Footer
   ================================================ */
.cs-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid var(--noahsyard-secondary);
    text-align: center;
    color: var(--noahsyard-dark);
}

.cs-footer p {
    margin: 5px 0;
    font-size: 0.95rem;
}

.footer-tagline {
    font-style: italic;
    color: var(--noahsyard-primary);
    font-weight: 600;
}

/* ================================================
   Easter Egg Container
   ================================================ */
.easter-egg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.floating-item {
    position: absolute;
    pointer-events: none;
    opacity: 0.6;
    font-size: 2rem;
    animation: float-up 8s linear forwards;
}

@keyframes float-up {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ================================================
   Entrance Animations
   ================================================ */
[data-animate] {
    opacity: 0;
}

[data-animate="fade-in"] {
    animation: fadeIn 1s ease-out forwards;
}

[data-animate="slide-up"] {
    animation: slideUp 1s ease-out forwards;
}

[data-animate="scale-in"] {
    animation: scaleIn 1s ease-out forwards;
}

/* Apply animation delays */
[data-delay="200"] { animation-delay: 0.2s; }
[data-delay="400"] { animation-delay: 0.4s; }
[data-delay="600"] { animation-delay: 0.6s; }
[data-delay="800"] { animation-delay: 0.8s; }
[data-delay="1000"] { animation-delay: 1s; }
[data-delay="1200"] { animation-delay: 1.2s; }
[data-delay="1400"] { animation-delay: 1.4s; }

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pulse animation for logo */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.cs-logo.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ================================================
   Responsive Design
   ================================================ */

/* Tablets */
@media (max-width: 768px) {
    .cs-heading {
        font-size: 2.5rem;
    }
    
    .cs-subtitle {
        font-size: 1.2rem;
    }
    
    .cs-logo {
        max-width: 220px;
    }
    
    .countdown-item {
        padding: 20px 25px;
        min-width: 100px;
    }
    
    .countdown-value {
        font-size: 2.5rem;
    }
    
    .cs-info-card {
        padding: 30px 20px;
    }
    
    .info-card-title {
        font-size: 1.5rem;
    }
    
    .cs-countdown {
        gap: 15px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .cs-container {
        padding: 20px 15px;
    }
    
    .cs-heading {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .cs-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .cs-logo {
        max-width: 180px;
    }
    
    .cs-logo-section {
        margin-bottom: 30px;
    }
    
    .cs-countdown {
        gap: 10px;
        margin: 30px 0;
    }
    
    .countdown-item {
        padding: 15px 20px;
        min-width: 80px;
    }
    
    .countdown-value {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
    
    .cs-info-card {
        padding: 25px 15px;
        border-radius: 15px;
    }
    
    .info-card-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .info-item {
        flex-direction: column;
        padding: 15px;
        gap: 10px;
    }
    
    .info-icon {
        width: 24px;
        height: 24px;
    }
    
    .map-title {
        font-size: 1.5rem;
    }
    
    .map-container iframe,
    .map-placeholder {
        height: 300px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }
}

/* ================================================
   Accessibility & Motion Preferences
   ================================================ */

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-item {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cs-info-card,
    .countdown-item {
        border: 3px solid var(--noahsyard-primary);
    }
}

/* Print styles */
@media print {
    body.kittbit-coming-soon::before,
    .cs-social,
    .easter-egg-container {
        display: none;
    }
    
    .cs-container {
        max-width: 100%;
    }
}

/* ================================================
   Loading State
   ================================================ */
.cs-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--noahsyard-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out;
}

.cs-loading.fade-out {
    opacity: 0;
    pointer-events: none;
}

.cs-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--noahsyard-light);
    border-top-color: var(--noahsyard-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
