/* Import Wildstripe font */
@font-face {
  font-family: 'Wildstripe';
  src: url('Wildstripe.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* Ensure batch background colors are available */
.bg-blue-600 { background-color: #2563eb !important; }
.bg-blue-100 { background-color: #dbeafe !important; }
.bg-purple-600 { background-color: #9333ea !important; }
.bg-purple-100 { background-color: #f3e8ff !important; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8 !important; }
.hover\:bg-blue-200:hover { background-color: #bfdbfe !important; }
.hover\:bg-purple-700:hover { background-color: #7c3aed !important; }
.hover\:bg-purple-200:hover { background-color: #e9d5ff !important; }

/* Premium container width */
.erickson-section {
    max-width: 90%;
    margin: 0 auto;
    padding: 2rem;
}

.erickson-hero-sectionx {
    background: url('ericksonplus.png') no-repeat center top/cover;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 5vw;
}

/* Wildstripe font for month heading */
#current-month {
    font-family: 'Wildstripe', Arial, sans-serif !important;
}

/* Premium enhancements */
.calendar-grid {
    min-height: 450px;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #f1f5f9;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.calendar-header-day {
    background-color: #ffffff;
    padding: 14px 8px;
    text-align: center;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #f1f5f9;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.calendar-day {
    background-color: white;
    min-height: 90px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
}

.calendar-day:hover {
    background-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.calendar-day.other-month {
    background-color: #f8fafc;
    color: #9ca3af;
}

.calendar-day.other-month:hover {
    background-color: #f1f5f9;
}

.day-number {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.calendar-day.other-month .day-number {
    color: #9ca3af;
}

/* Batch styling */
.batch-indicator {
    width: 100%;
    padding: 3px 6px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 2px;
    transition: all 0.2s ease;
}

.batch-basic {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.batch-basic.batch-start {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    font-weight: 600;
}

.batch-basic.batch-end {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
    color: white;
    font-weight: 600;
}

.batch-advanced {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fbbf24;
}

.batch-advanced.batch-start {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-weight: 600;
}

.batch-advanced.batch-end {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: white;
    font-weight: 600;
}

/* Filter buttons */
.batch-filter {
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.batch-filter.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.batch-filter:not(.active):hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Enhanced batch info panel */
#batch-info-panel {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
/* Responsive Design */
@media (max-width: 1024px) {
    .erickson-section {
        max-width: 95%;
        padding: 1.5rem;
    }
    
    .calendar-day {
        min-height: 70px;
        padding: 6px;
    }
    
    .batch-indicator {
        font-size: 0.7rem;
        padding: 1px 4px;
    }
}

@media (max-width: 768px) {
    .erickson-section {
        max-width: 100%;
        padding: 1rem;
    }
    
    /* Fix calendar container layout on mobile */
    .bg-white.rounded-lg.shadow-sm.border .flex {
        flex-direction: column !important;
    }
    
    /* Fix label sections on mobile */
    .w-64.p-8.bg-blue-50,
    .w-64.p-8.bg-yellow-50 {
        width: 100% !important;
        padding: 1rem !important;
        border-right: none !important;
        border-bottom: 1px solid #e5e7eb !important;
    }
    
    /* Make filter buttons wrap properly */
    .flex.items-center.gap-3 {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    
    .flex.items-center.gap-3 span {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .calendar-day {
        min-height: 60px;
        padding: 4px;
    }
    
    .day-number {
        font-size: 0.8rem;
    }
    
    .batch-indicator {
        font-size: 0.65rem;
        padding: 1px 3px;
    }
}

@media (max-width: 640px) {
    .erickson-section {
        padding: 0.5rem;
    }
    
    /* Very compact calendar for phones */
    .calendar-day {
        min-height: 45px;
        padding: 2px;
    }
    
    .day-number {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }
    
    .batch-indicator {
        font-size: 0.6rem;
        padding: 1px 2px;
        margin-bottom: 1px;
    }
    
    .calendar-header-day {
        padding: 8px 4px;
        font-size: 0.75rem;
    }
    
    /* BREAK the horizontal layout on mobile */
    .flex.items-center.justify-between.mb-6 {
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Month navigation row - keep horizontal but compact */
    .flex.items-center.gap-4 {
        justify-content: center !important;
        align-self: center !important;
    }
    
    .flex.items-center.gap-4 button {
        padding: 0.5rem !important;
    }
    
    .flex.items-center.gap-4 h2 {
        font-size: 1.25rem !important;
        min-width: auto !important;
    }
    
    /* Filter row - wrap the buttons */
    .flex.items-center.gap-3 {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 0.375rem !important;
    }
    
    .flex.items-center.gap-3 span {
        font-size: 0.75rem !important;
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 0.25rem !important;
    }
    
    .batch-filter {
        font-size: 0.7rem !important;
        padding: 0.375rem 0.75rem !important;
        white-space: nowrap !important;
    }
    
    /* Make heading containers smaller */
    .w-64.p-8.bg-blue-50,
    .w-64.p-8.bg-yellow-50 {
        width: 100% !important;
        padding: 0.75rem !important;
        border-right: none !important;
        border-bottom: 1px solid #e5e7eb !important;
    }
    
    /* Smaller icons and text in headers */
    .w-64.p-8.bg-blue-50 .w-16.h-16,
    .w-64.p-8.bg-yellow-50 .w-16.h-16 {
        width: 2.5rem !important;
        height: 2.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .w-64.p-8.bg-blue-50 .w-16.h-16 i,
    .w-64.p-8.bg-yellow-50 .w-16.h-16 i {
        font-size: 1rem !important;
    }
    
    .w-64.p-8.bg-blue-50 h3,
    .w-64.p-8.bg-yellow-50 h3 {
        font-size: 1.25rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .w-64.p-8.bg-blue-50 p,
    .w-64.p-8.bg-yellow-50 p {
        font-size: 0.75rem !important;
    }
    
    /* Mobile batch info modal */
    #batch-info-panel {
        margin: 0.5rem;
    }
    
    #batch-info-panel .grid.md\\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    /* Ultra-compact for small phones */
    .calendar-day {
        min-height: 40px;
        padding: 1px;
    }
    
    .day-number {
        font-size: 0.7rem;
    }
    
    .batch-indicator {
        font-size: 0.55rem;
        padding: 0px 2px;
    }
    
    .calendar-header-day {
        padding: 6px 2px;
        font-size: 0.7rem;
    }
    
    /* Even more compact navigation on tiny screens */
    .flex.items-center.gap-4 {
        gap: 0.5rem !important;
    }
    
    .flex.items-center.gap-4 button {
        padding: 0.375rem !important;
    }
    
    .flex.items-center.gap-4 h2 {
        font-size: 1.1rem !important;
    }
    
    /* Filter buttons in 2-3 per row max */
    .batch-filter {
        font-size: 0.65rem !important;
        padding: 0.25rem 0.5rem !important;
        flex: 0 0 auto;
    }
    
    .flex.items-center.gap-3 {
        gap: 0.25rem !important;
    }
}

/* Animation for batch info panel */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#batch-info-panel.show {
    animation: slideDown 0.3s ease forwards;
}

/* Loading state */
.calendar-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: #6b7280;
}

.loading-spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Calendar page specific heading styles */
.calendar-heading {
    font-size: 2.5rem;
    font-weight: 600;
    color: #222b38;
    text-align: left;
    margin-bottom: 32px;
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.2;
}

.calendar-highlight {
    color: #63B7D3;
    font-weight: 600;
    font-family: 'Wildstripe', Arial, sans-serif;
}

/* Mobile responsiveness for calendar heading */
@media (max-width: 768px) {
    .calendar-heading {
        font-size: 2rem;
        margin-bottom: 24px;
    }
}

/* Horizontal scrollable batch container */
.batch-scroll-container {
    position: relative;
    width: 100%;
    max-height: 600px;
    overflow: hidden;
}

.batch-scroll-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: auto;
    padding-right: 0.5rem;
    scroll-behavior: smooth;
    max-height: 600px;
    
    /* Hide scrollbar for all browsers */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}

.batch-scroll-wrapper::-webkit-scrollbar {
    display: none;  /* Safari and Chrome */
}

/* Remove minimum width for vertical layout */
.batch-scroll-wrapper > * {
    width: 100%;
    flex-shrink: 0;
}

/* Add subtle gradient fade effect at top and bottom */
.batch-scroll-container::before,
.batch-scroll-container::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 20px;
    z-index: 2;
    pointer-events: none;
}

.batch-scroll-container::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.batch-scroll-container::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

/* Mobile adjustments */
@media (max-width: 1279px) {
    .batch-scroll-wrapper > * {
        width: 100%;
    }
    
    .batch-scroll-container::before,
    .batch-scroll-container::after {
        height: 15px;
    }
    
    .batch-scroll-container {
        max-height: 400px;
    }
    
    .batch-scroll-wrapper {
        max-height: 400px;
    }
}

/* Erickson-themed calendar styling */
.erickson-calendar-container {
    background: linear-gradient(135deg, var(--primary-color-lighter) 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--box-shadow-medium);
    border: 1px solid var(--primary-color-light);
}

.erickson-month-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--box-shadow-light);
}

.erickson-month-title {
    font-family: var(--font-family);
    font-weight: var(--heading-font-weight);
    color: white !important;
}

.erickson-nav-button {
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
    border-radius: 8px;
    padding: 0.5rem;
    transition: all var(--transition-medium);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.erickson-nav-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: var(--box-shadow-light);
}

.erickson-filters {
    background: var(--background-color);
    border-radius: 12px;
    padding: 0.25rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--primary-color-light);
}

.erickson-filter-btn {
    background: transparent;
    color: var(--text-color);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all var(--transition-medium);
    font-weight: 500;
    border: none;
}

.erickson-filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    color: white;
    box-shadow: var(--box-shadow-light);
    transform: translateY(-1px);
}

.erickson-filter-btn:hover:not(.active) {
    background: var(--primary-color-lighter);
    color: var(--primary-color-dark);
}

.erickson-calendar-grid {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow-light);
    border: 1px solid var(--primary-color-light);
}

.erickson-day-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-color-light) 100%);
    color: white;
    padding: 1rem;
    font-weight: var(--heading-font-weight);
    text-align: center;
    font-size: 0.875rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.erickson-day-header:last-child {
    border-right: none;
}

.erickson-calendar-cell {
    background: white;
    border-right: 1px solid var(--primary-color-light);
    border-bottom: 1px solid var(--primary-color-light);
    min-height: 80px;
    padding: 0.75rem;
    transition: all var(--transition-medium);
    position: relative;
}

.erickson-calendar-cell:hover {
    background: var(--primary-color-lighter);
    transform: translateY(-1px);
    box-shadow: var(--box-shadow-light);
}

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

/* Batch background colors using Erickson palette */
.erickson-batch-start,
.erickson-batch-end {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%) !important;
    color: white !important;
    box-shadow: var(--box-shadow-medium);
}

.erickson-batch-middle {
    background: linear-gradient(135deg, var(--primary-color-lighter) 0%, var(--primary-color-light) 100%) !important;
    color: var(--secondary-color) !important;
}

.erickson-batch-advanced-start,
.erickson-batch-advanced-end {
    background: linear-gradient(135deg, var(--highlight-color) 0%, var(--highlight-color-dark) 100%) !important;
    color: white !important;
    box-shadow: var(--box-shadow-medium);
}

.erickson-batch-advanced-middle {
    background: linear-gradient(135deg, var(--highlight-color-light) 0%, #f9f1c9 100%) !important;
    color: var(--secondary-color) !important;
}

/* Toggle buttons with Erickson styling */
.erickson-toggle-container {
    background: var(--background-color);
    border-radius: 12px;
    padding: 0.25rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--primary-color-light);
}

.erickson-toggle-btn {
    background: transparent;
    color: var(--text-color);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-medium);
    font-weight: 500;
    border: none;
}

.erickson-toggle-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    color: white;
    box-shadow: var(--box-shadow-light);
    transform: translateY(-1px);
}

.erickson-toggle-btn:hover:not(.active) {
    background: var(--primary-color-lighter);
    color: var(--primary-color-dark);
}

/* FAQ Section Styling */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.faq-question {
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.faq-question:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.faq-icon {
    transition: transform 0.3s ease;
    font-size: 1rem;
}

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

.faq-answer {
    transition: all 0.3s ease;
    line-height: 1.6;
    overflow: hidden;
}

.faq-answer.hidden {
    display: none !important;
}

.faq-answer p {
    margin: 0;
}

/* FAQ section responsive design */
@media (max-width: 768px) {
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 1rem;
        padding-top: 0;
    }
}
