/* ================================================
   AI Studylab Landing Page Styles
   ================================================ */

/* Hero Section */
.studylab-hero {
    background: linear-gradient(135deg, #fef3e7 0%, #fce7f3 50%, #fed7aa 100%);
}

/* Hero Video Overlay */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 1;
    pointer-events: none;
}

/* Countdown Banner */
.countdown-banner {
    background: linear-gradient(90deg, #f97316 0%, #ec4899 100%);
    position: sticky;
    top: 64px;
    z-index: 40;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.5s ease-out;
}

/* Flip Clock */
.flip-clock {
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.95) 48%,
        rgba(240, 240, 240, 0.95) 52%,
        rgba(230, 230, 230, 0.98) 100%);
    border-radius: 8px;
    width: 45px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    perspective: 300px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* 중간 분할선 */
.flip-clock::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.15) 20%,
        rgba(0, 0, 0, 0.15) 80%,
        transparent 100%);
    z-index: 10;
    transform: translateY(-1px);
}

/* 상단 절반 그림자 */
.flip-clock::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), transparent);
    pointer-events: none;
    z-index: 5;
}

/* 나사 장식 */
.flip-screw {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #ddd 0%, #bbb 50%, #999 100%);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.5),
        inset 0 -1px 2px rgba(0, 0, 0, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.15);
}

.flip-screw::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 1px;
    background: rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%);
}

.flip-screw-left {
    left: 2px;
}

.flip-screw-right {
    right: 2px;
}

.flip-digit {
    font-size: 2.25rem;
    font-weight: 700;
    color: #374151;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.flip-digit.flip {
    animation: flipAnimation 0.6s ease-in-out;
}

@keyframes flipAnimation {
    0% {
        transform: rotateX(0deg) scale(1);
    }
    50% {
        transform: rotateX(-90deg) scale(0.95);
        opacity: 0.7;
    }
    100% {
        transform: rotateX(0deg) scale(1);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.countdown-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.countdown-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.countdown-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.countdown-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Promotion Cards */
.promotion-card {
    transition: all 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.promotion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.05), rgba(236, 72, 153, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.promotion-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.promotion-card:hover::before {
    opacity: 1;
}

.promotion-card.earlybird {
    border: 3px solid #f97316;
}

.promotion-card.general {
    border: 2px solid #e5e7eb;
}

.earlybird-badge {
    background: linear-gradient(90deg, #f97316 0%, #ec4899 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    display: inline-block;
    box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #f97316;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f97316, #ec4899);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(5deg) scale(1.1);
}

/* Timeline Styles */
.timeline-container {
    position: relative;
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 3rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #f97316 0%, #ec4899 100%);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: -8px;
    top: 0;
    width: 18px;
    height: 18px;
    background: white;
    border: 3px solid #f97316;
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    border-width: 4px;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
}

.timeline-week {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #f3f4f6;
    transition: all 0.3s ease;
}

.timeline-week:hover {
    border-color: #f97316;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Methodology Cards */
.methodology-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.methodology-card:hover {
    border-color: #f97316;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.methodology-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f97316, #ec4899);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Instructor Cards */
.instructor-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #f3f4f6;
}

.instructor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #f97316;
}

.instructor-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.instructor-card:hover .instructor-image {
    transform: scale(1.05);
    border-color: #f97316;
}

/* Form Styles */
.studylab-form {
    background: #f9fafb;
    border-radius: 16px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.form-checkbox:checked {
    background-color: #f97316;
    border-color: #f97316;
}

/* FAQ Accordion */
.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 2px solid #f3f4f6;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: #f97316;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background: #fef3e7;
}

.faq-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    color: #f97316;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

/* Pricing Table */
.pricing-table {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
}

.pricing-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.pricing-row:last-child {
    border-bottom: none;
}

.pricing-row:hover {
    background: #fef3e7;
}

.pricing-cell {
    padding: 1rem 1.5rem;
    border-right: 1px solid #e5e7eb;
}

.pricing-cell:last-child {
    border-right: none;
}

.pricing-header {
    background: linear-gradient(90deg, #f97316 0%, #ec4899 100%);
    color: white;
    font-weight: 700;
}

.pricing-header:hover {
    background: linear-gradient(90deg, #f97316 0%, #ec4899 100%);
}

/* Trust Badges */
.trust-badge {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 2px solid #f3f4f6;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    border-color: #f97316;
    transform: translateY(-2px);
}

/* CTA Button Styles */
/* .btn-primary는 layout.php 네비게이션에서 사용되므로 studylab.css에서는 정의하지 않음 */
/* 스터디랩 페이지의 CTA 버튼은 인라인 스타일 사용 */

.btn-secondary {
    background: white;
    color: #f97316;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    border: 2px solid #f97316;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #fef3e7;
    transform: translateY(-2px);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .countdown-banner {
        top: 56px;
    }

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

    .countdown-label {
        font-size: 0.75rem;
    }

    .flip-clock {
        width: 38px;
        height: 60px;
    }

    .flip-digit {
        font-size: 1.5rem;
    }

    #countdown {
        gap: 0.75rem;
    }

    #countdown > div {
        gap: 0.5rem;
    }

    .promotion-card {
        margin-bottom: 1.5rem;
    }

    .timeline-item {
        padding-left: 2rem;
        padding-bottom: 2rem;
    }

    .pricing-row {
        grid-template-columns: 1fr;
    }

    .pricing-cell {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .pricing-cell:last-child {
        border-bottom: none;
    }

    .instructor-image {
        width: 100px;
        height: 100px;
    }
}

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

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, #f97316 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================================
   New Components for 2nd Batch Landing Page
   ================================================ */

/* Filter Tabs */
.filter-tab {
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    cursor: pointer;
}

.filter-tab.active {
    background: linear-gradient(90deg, #f97316 0%, #ec4899 100%);
    color: white;
    border-color: transparent;
}

.filter-tab:hover:not(.active) {
    border-color: #f97316;
    color: #f97316;
}

/* Project Cards */
.project-card {
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
}

/* Lab Cards */
.lab-card {
    transition: all 0.3s ease;
}

.lab-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Persona Cards */
.persona-card {
    transition: all 0.3s ease;
}

.persona-card:hover {
    transform: translateY(-4px);
}

/* Learning Cards */
.learning-card {
    transition: all 0.3s ease;
}

.learning-card:hover {
    transform: translateY(-4px);
}

/* Benefit Cards */
.benefit-card {
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
}

/* Process Steps Animation */
.process-step {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.2s; }
.process-step:nth-child(3) { animation-delay: 0.3s; }
.process-step:nth-child(4) { animation-delay: 0.4s; }
.process-step:nth-child(5) { animation-delay: 0.5s; }

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Line Clamp Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pricing Card Popular */
@media (min-width: 768px) {
    .pricing-card.popular {
        transform: scale(1.05);
    }
}

/* Testimonial Slider */
.testimonial-slider {
    position: relative;
    overflow: hidden;
}

/* Stats Counter */
[data-count] {
    transition: all 0.3s ease;
}

/* Mobile Adjustments for New Components */
@media (max-width: 768px) {
    .filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .project-card:hover,
    .lab-card:hover,
    .persona-card:hover,
    .learning-card:hover,
    .benefit-card:hover {
        transform: translateY(-2px);
    }

    .process-step {
        opacity: 1;
        transform: none;
        animation: none;
    }
}
