/**
 * AI Project Mastery Workshop - Custom Styles
 */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Typography */
.heading-display {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* Card styles */
.card-elevated {
    background: hsl(0 0% 100%);
    border: 1px solid hsl(35 20% 88%);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.04), 0 1px 2px -1px rgb(0 0 0 / 0.04);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    box-shadow: 0 10px 40px -10px rgb(0 0 0 / 0.08);
    transform: translateY(-2px);
}

/* Day card styles */
.day-card {
    transition: all 0.5s ease-out;
}

.day-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgb(0 0 0 / 0.1);
}

.day-card.open .chevron {
    transform: rotate(180deg);
}

.day-card.open .day-details {
    max-height: 500px;
    opacity: 1;
}

/* Link underline animation */
.link-underline {
    position: relative;
    text-decoration: none;
}

.link-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.link-underline:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Fade up animation */
.fade-up {
    animation: fade-up 0.8s ease forwards;
    opacity: 0;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

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

/* Scroll animation */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Modal animation */
#modal {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#modal:not(.hidden) {
    opacity: 1;
}

#modal > div.relative {
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

#modal:not(.hidden) > div.relative {
    transform: scale(1);
}

/* Toast animation */
#toast {
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

#toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Focus styles */
input:focus {
    outline: none;
    border-color: hsl(222 47% 15%);
    box-shadow: 0 0 0 3px hsl(222 47% 15% / 0.1);
}

/* Button disabled state */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .heading-display {
        letter-spacing: -0.01em;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Print styles */
@media print {
    .fade-up,
    .scroll-animate {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    #modal,
    #toast,
    button {
        display: none !important;
    }
}

