/* ============================================================
   event.css - イベント詳細ページ固有スタイル
   本番サイト(drone-event.info)に合わせた落ち着いたデザイン
   ============================================================ */

/* --- Detail Layout --- */
.detail-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 3rem;
}

/* --- Detail Header Card --- */
.detail-header {
    background: white;
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
}
.detail-cat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 3px;
    color: white;
    background: var(--cat-color);
    margin-bottom: 0.6rem;
}
.detail-cat.light-bg { color: #333; }
.detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.6rem;
    color: var(--text);
}

/* --- Date Banner --- */
.detail-date-banner {
    background: var(--primary-light);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border: 1px solid var(--primary-pale);
}
.date-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}
.date-icon-month { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; }
.date-icon-day { font-size: 1.25rem; font-weight: 700; line-height: 1; }
.date-text { font-size: 0.92rem; font-weight: 500; color: var(--text); }
.days-badge {
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 3px;
    background: var(--primary);
    color: white;
    white-space: nowrap;
}

/* --- Action Bar --- */
.action-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
}
.action-bar-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 1;
    flex-wrap: wrap;
}
.action-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}
.action-price-note {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-left: -0.4rem;
}
.action-deadline {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    font-size: 0.78rem;
    font-weight: 500;
}
.action-deadline.soon { background: #fff3e0; color: #cc6600; }
.action-deadline.ok { background: var(--primary-light); color: var(--primary); }
.action-deadline.closed { background: #f5f5f5; color: var(--text-muted); }
.action-capacity {
    font-size: 0.82rem;
    color: var(--text-light);
}

/* --- Detail Content Sections --- */
.detail-section {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
}
.detail-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text);
}
.detail-section h3 svg {
    width: 18px;
    height: 18px;
    opacity: 0.4;
}

/* --- Info Table --- */
.info-table {
    width: 100%;
    border-collapse: collapse;
}
.info-table tr { border-bottom: 1px solid var(--border-light); }
.info-table tr:last-child { border-bottom: none; }
.info-table th {
    padding: 0.55rem 0.85rem 0.55rem 0;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
    width: 110px;
    vertical-align: top;
}
.info-table td {
    padding: 0.55rem 0;
    font-size: 0.9rem;
}

/* --- Promo / Description Text --- */
.promo-text {
    font-size: 0.9rem;
    line-height: 1.9;
}
.promo-text p { margin-bottom: 0.6rem; }
.promo-text p:last-child { margin-bottom: 0; }
.schedule-text {
    font-size: 0.9rem;
    line-height: 1.9;
}
.schedule-text p { margin-bottom: 0.4rem; }

/* --- Venue Map --- */
#venue-map {
    height: 280px;
    border-radius: var(--radius);
    margin-top: 0.85rem;
    border: 1px solid var(--border);
    z-index: 1;
}
.map-loading-msg {
    text-align: center;
    padding: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* --- Animation --- */
.detail-main {
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .detail-wrap { padding: 1rem 1rem 2.5rem; }
    .detail-header { padding: 1.25rem; }
    .detail-title { font-size: 1.25rem; }
    .detail-section { padding: 1.1rem; }
    .info-table th { width: 90px; }
    .action-bar { flex-direction: column; align-items: stretch; }
    .apply-btn { width: 100%; justify-content: center; }
}
