/* Schedule Category Page - Modern Redesign */

/* Hero Section */
.schedule-category-hero {
    background: linear-gradient(135deg, #ff6600 0%, #ff8c00 100%);
    color: white;
    padding: 100px 20px 40px;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.schedule-category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.schedule-category-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 8px 0;
    letter-spacing: 2px;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.3);
    font-family: 'Poppins', sans-serif;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 400;
    margin: 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.title-divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
    margin: 12px auto;
    border-radius: 2px;
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.title-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Content Section */
.category-selection {
    padding: 20px 20px 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 0 10px;
}

/* Category Card - Modern Design */
.category-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    opacity: 0;
    animation: cardFadeIn 0.6s ease-out forwards;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }
.category-card:nth-child(7) { animation-delay: 0.7s; }
.category-card:nth-child(8) { animation-delay: 0.8s; }
.category-card:nth-child(9) { animation-delay: 0.9s; }
.category-card:nth-child(10) { animation-delay: 1s; }

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6600, #ff8c00, #ff6600);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.category-card:hover,
.category-card:focus {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 102, 0, 0.25);
    border-color: #ff6600;
    outline: none;
}

.category-card:focus-visible {
    outline: 3px solid #ff6600;
    outline-offset: 3px;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover::after {
    opacity: 1;
}

.category-card:hover .category-icon,
.category-card:focus .category-icon {
    transform: scale(1.15) rotate(5deg);
    color: #ff6600;
}

.category-card:hover .category-btn,
.category-card:focus .category-btn,
.category-card:active .category-btn {
    background: linear-gradient(135deg, #ff6600, #ff8c00);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(255, 102, 0, 0.4);
}

.category-card:hover .category-name,
.category-card:focus .category-name {
    color: #ff6600;
}

.category-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.category-icon {
    font-size: 4rem;
    color: #ff6600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    filter: drop-shadow(0 4px 8px rgba(255, 102, 0, 0.2));
}

.category-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    transition: color 0.3s ease;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.category-btn {
    background: linear-gradient(135deg, #ff6600, #ff8c00);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.category-btn::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.category-card:hover .category-btn::after {
    transform: translateX(5px);
}

.category-btn:active {
    transform: scale(0.95);
}

/* Back Link */
.back-link {
    text-align: center;
    margin-top: 60px;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.back-link a {
    color: #ff6600;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
}

.back-link a:hover {
    background: rgba(255, 102, 0, 0.1);
    transform: translateX(-5px);
}

.back-link a::before {
    content: '←';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-link a:hover::before {
    transform: translateX(-5px);
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
    .schedule-category-hero {
        padding: 120px 20px 60px;
        min-height: 350px;
    }

    .hero-title {
        font-size: 3rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .category-card {
        padding: 30px 20px;
    }

    .category-icon {
        font-size: 3.5rem;
    }

    .category-name {
        font-size: 1.4rem;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .schedule-category-hero {
        padding: 100px 20px 50px;
        min-height: 300px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 16px;
        margin-bottom: 15px;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .title-divider {
        width: 100px;
        margin: 20px auto;
    }

    .category-selection {
        padding: 50px 15px;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }

    .category-card {
        padding: 30px 20px;
        border-radius: 15px;
    }

    .category-icon {
        font-size: 3rem;
    }

    .category-name {
        font-size: 1.3rem;
    }

    .category-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .back-link {
        margin-top: 40px;
    }
}

/* Responsive Design - Small Mobile */
@media (max-width: 480px) {
    .schedule-category-hero {
        padding: 90px 15px 40px;
        min-height: 280px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .category-selection {
        padding: 40px 10px;
    }

    .category-card {
        padding: 25px 15px;
    }

    .category-icon {
        font-size: 2.5rem;
    }

    .category-name {
        font-size: 1.1rem;
    }

    .category-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}

/* Animation for page load */
@keyframes pageLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body {
    animation: pageLoad 0.5s ease-out;
}

/* Ensure cards are clickable */
.category-card * {
    pointer-events: none;
}

.category-card {
    pointer-events: auto;
}

/* Touch device feedback */
.category-card.touched {
    transform: scale(0.98);
    opacity: 0.9;
}

/* Loading state */
.category-card.loading {
    pointer-events: none;
    opacity: 0.7;
}

.category-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 102, 0, 0.3);
    border-top-color: #ff6600;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 10;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

