/* Compact Profile Page Styles */

/* Collapsible Section Styles */
.collapsible-section {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.collapsible-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Default blue gradient */
    color: white;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background 0.2s;
}

.collapsible-header:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%); /* Default hover gradient */
}

.collapsible-header h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

.collapsible-toggle {
    font-size: 1.2em;
    transition: transform 0.3s;
}

.collapsible-toggle.expanded {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
}

.collapsible-content.expanded {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
}

.collapsible-body {
    padding: 20px;
}

/* Two-column statistics layout for wider screens */
.statistics-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (min-width: 1024px) {
    .statistics-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Compact stat cards - reduce padding */
#flight-statistics-section .stat-card,
#cruise-statistics-section .stat-card {
    padding: 12px 8px;
}

/* Clickable stat cards */
.clickable-stat {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.clickable-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

#flight-statistics-section .stat-value,
#cruise-statistics-section .stat-value {
    font-size: 1.4em;
    margin: 4px 0;
}

#flight-statistics-section .stat-label,
#cruise-statistics-section .stat-label {
    font-size: 0.75em;
    margin: 4px 0;
}

/* Compact stats grid - show more cards per row */
#flight-statistics-section .stats-grid,
#cruise-statistics-section .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

/* Profile section spacing */
.profile-section {
    margin-bottom: 20px;
}

/* Compact loyalty tables */
.collapsible-section .data-table {
    font-size: 0.9em;
}

.collapsible-section .data-table th,
.collapsible-section .data-table td {
    padding: 8px 10px;
}

/* Basic info section - keep compact */
/* Removed .profile-section:first-child background rule - was causing unwanted gradient on flight statistics */

.profile-section:first-child p {
    margin: 5px 0;
}

.profile-section:first-child strong {
    color: rgba(255, 255, 255, 0.9);
}

/* Data Import/Export 2-column layout - stack on mobile */
@media (max-width: 768px) {
    .collapsible-body > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}
