/* info.css */
/* Styles specific for newcomer info page */

.calendar-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: auto;
    grid-auto-rows: 1fr;
    gap: 8px;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .calendar-grid {
        gap: 4px;
    }
}

.calendar-header {
    text-align: center;
    font-weight: 700;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .calendar-header {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.calendar-month-label {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    z-index: 10;
}

.calendar-month-label span {
    font-size: 1.2rem;
    opacity: 0.7;
    font-weight: 500;
    letter-spacing: 1px;
}

.calendar-day {
    aspect-ratio: 1 / 1.1;
    border-radius: 12px;
    padding: 0.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    transition: transform 0.2s, box-shadow 0.2s;
}

[data-theme="light"] .calendar-day {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.calendar-day.empty {
    visibility: hidden;
}

.date-number {
    font-weight: 700;
    font-size: 1.2rem;
    font-family: 'Inter', sans-serif;
    margin-bottom: 0.25rem;
}

.calendar-day.sunday .date-number {
    color: #ef4444; /* red */
}

.calendar-day.saturday .date-number {
    color: #3b82f6; /* blue */
}

.time-slot {
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.3;
    opacity: 0.9;
    font-family: 'Inter', sans-serif;
    margin-top: auto;
    margin-bottom: auto;
}

@media (max-width: 768px) {
    .calendar-header {
        font-size: 0.75rem;
        padding: 0.4rem 0.1rem;
    }
    .date-number {
        font-size: 0.9rem;
        margin-bottom: 0.1rem;
    }
    .time-slot {
        font-size: 0.55rem;
        letter-spacing: -0.05em;
    }
    .calendar-day {
        padding: 0.2rem;
        border-radius: 8px;
    }
    .calendar-month-label {
        font-size: 1.25rem;
    }
    .calendar-month-label span {
        font-size: 0.7rem;
    }
    .join-day-badge {
        font-size: 0.55rem;
        font-weight: 800;
        letter-spacing: -0.05em;
        line-height: 1.2;
        color: var(--primary-color);
        background: transparent !important;
        border: none;
        padding: 0;
        margin-top: auto;
        margin-bottom: auto;
        box-shadow: none !important;
        text-align: center;
        backdrop-filter: none;
        display: block;
        white-space: nowrap;
    }
}

/* Color Categories for Events - matching modern glass theme */

/* 1. 新歓 (Cyan/Blue tint) */
.event-type-1 {
    background: rgba(14, 165, 233, 0.2) !important;
    border: 1px solid rgba(14, 165, 233, 0.5) !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
}

/* 2. 履修相談会 (Yellow/Gold tint) */
.event-type-2 {
    background: rgba(234, 179, 8, 0.2) !important;
    border: 1px solid rgba(234, 179, 8, 0.5) !important;
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.1);
}

/* 3. 技術系新歓 (Teal/Green tint) */
.event-type-3 {
    background: rgba(16, 185, 129, 0.2) !important;
    border: 1px solid rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

/* 4. 技術系＆部署新歓 (Pink/Purple tint) */
.event-type-4 {
    background: rgba(236, 72, 153, 0.2) !important;
    border: 1px solid rgba(236, 72, 153, 0.5) !important;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.1);
}

/* Mark as Join Day (入局日) - Highlight cell instead of badge */
.calendar-day.day-join {
    background: rgba(14, 165, 233, 0.12) !important;
    border: 2px solid var(--primary-color) !important;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.15);
    justify-content: flex-start !important; /* Keep numbers at top */
}

.join-day-badge {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 800;
    margin-top: auto;
    margin-bottom: auto;
    text-align: center;
    white-space: nowrap;
    display: block;
    background: transparent !important;
    box-shadow: none !important;
}

/* Generic class for centering text-only events in the cell */
.center-event {
    margin-top: auto !important;
    margin-bottom: auto !important;
    display: block;
}

[data-theme="light"] .join-day-badge {
    color: var(--primary-color);
    background: transparent !important;
    box-shadow: none !important;
}

/* Specific adjustment to hide modern-title separators in this page only */
.modern-title::before,
.modern-title::after {
    display: none !important;
}

.modern-title {
    padding-top: 0 !important;
    margin-top: 3rem !important;
}



/* Legend */
.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    font-weight: 600;
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Schedule Note */
.schedule-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
    text-align: center;
}

/* Info Cards Section */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    padding: 2rem 2rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 20px;
}

.info-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.info-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.info-card-text {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.deadline-text {
    color: #ef4444;
    font-weight: 800;
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

[data-theme="light"] .deadline-text {
    color: #e30000;
}

/* Button & Badge Styles */
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.button-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    font-weight: 500;
}

.info-card-button {
    margin-top: 1.5rem;
    width: 100%;
    max-width: 240px;
}

.youtube-icon {
    margin-right: 8px;
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .info-card-button {
        max-width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}
