/* ============================================================================
   LEVELING SPOTS PAGE - COMPLETE MODERN STYLES
   ============================================================================ */

/* Intro Features Grid */
.intro-content h3 {
    margin: 0 0 25px 0;
    font-size: 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.feature-item i {
    font-size: 36px;
    margin-bottom: 15px;
    display: block;
}

.feature-item h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.feature-item p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Filters Section */
.leveling-spots-filters {
    background: white;
    border: 2px solid #e9ecef;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.leveling-spots-filters h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.leveling-spots-filters h3 i {
    color: #667eea;
}

.help-text {
    font-size: 14px;
    font-weight: normal;
    color: #6c757d;
    margin-left: 10px;
}

.filter-form .filter-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label i {
    color: #667eea;
}

.required {
    color: #e74c3c;
    font-size: 18px;
}

.optional {
    font-size: 12px;
    font-weight: normal;
    color: #6c757d;
}

.input-level {
    font-size: 20px;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.input-level:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.select-class {
    font-size: 16px;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

.select-class:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-hint {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.filter-group-primary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    padding: 15px;
    border-radius: 12px;
}

.filter-group-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Buttons */
.btn-search, .btn-reset, .btn-guide, .btn-action, .btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-search {
    background: #2c3e50;
    color: white;
}

.btn-search:hover {
    background: #34495e;
    transform: translateY(-1px);
}

.btn-reset {
    background: #95a5a6;
    color: white;
}

.btn-reset:hover {
    background: #7f8c8d;
}

.btn-guide {
    background: #16a085;
    color: white;
}

.btn-guide:hover {
    background: #138d75;
}

.btn-action {
    background: white;
    color: #2c3e50;
    border: 2px solid #bdc3c7;
    padding: 8px 16px;
    font-size: 14px;
}

.btn-action:hover {
    background: #ecf0f1;
    border-color: #95a5a6;
}

.btn-primary {
    background: #2c3e50;
    color: white;
}

.btn-primary:hover {
    background: #34495e;
}

.btn-secondary {
    background: white;
    color: #2c3e50;
    border: 2px solid #95a5a6;
}

.btn-secondary:hover {
    background: #ecf0f1;
    border-color: #7f8c8d;
}

/* Filter Tips */
.filter-tips {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
}

.tip-item {
    display: flex;
    align-items: start;
    gap: 10px;
    color: #856404;
}

.tip-item i {
    color: #ffc107;
    font-size: 20px;
    margin-top: 2px;
}

/* Results Header */
.results-header {
    margin-bottom: 30px;
    text-align: center;
}

.results-header h3 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.results-header h3 i {
    color: #ffc107;
}

.level-badge, .class-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
}

.level-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.class-badge {
    background: #28a745;
    color: white;
}

.results-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* Spot Cards - Accordion Style */
.spot-card {
    background: white;
    border: 3px solid #e9ecef;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.spot-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Accordion Header - Always visible, clickable */
.spot-card-header {
    cursor: pointer;
    padding: 20px;
    background: linear-gradient(to right, rgba(102, 126, 234, 0.05) 0%, white 100%);
    border-bottom: 2px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.spot-card-header:hover {
    background: linear-gradient(to right, rgba(102, 126, 234, 0.1) 0%, white 100%);
}

.spot-card.collapsed .spot-card-header {
    border-bottom: none;
}

/* Accordion Toggle Icon */
.accordion-toggle {
    font-size: 20px;
    color: #667eea;
    transition: transform 0.3s ease;
    min-width: 24px;
    text-align: center;
}

.spot-card.collapsed .accordion-toggle {
    transform: rotate(-90deg);
}

/* Accordion Content - Collapsible */
.spot-card-content {
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 1;
    padding: 0;
}

.spot-card.collapsed .spot-card-content {
    max-height: 0;
    opacity: 0;
    padding: 0;
}

/* Header Compact Info */
.spot-header-compact {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.spot-header-compact .spot-rank {
    min-width: 50px;
    height: 50px;
    font-size: 20px;
}

.spot-header-compact .spot-title h4 {
    margin: 0 0 5px 0;
    font-size: 20px;
}

.spot-header-compact .spot-meta {
    font-size: 13px;
}

.spot-header-compact .spot-score {
    margin-left: auto;
}

.spot-header-compact .score-circle {
    width: 60px;
    height: 60px;
}

.spot-header-compact .score-number {
    font-size: 20px;
}

.spot-header-compact .score-label {
    font-size: 10px;
}

.spot-card.excellent {
    border-color: #28a745;
    background: linear-gradient(to right, rgba(40, 167, 69, 0.02) 0%, white 100%);
}

.spot-card.good {
    border-color: #17a2b8;
    background: linear-gradient(to right, rgba(23, 162, 184, 0.02) 0%, white 100%);
}

.spot-card.decent {
    border-color: #ffc107;
}

.spot-card.top-rank {
    position: relative;
}

.spot-card.top-rank::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
}

/* Spot Header */
.spot-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #e9ecef;
    gap: 20px;
}

.spot-map-thumbnail {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    flex-shrink: 0;
    margin-right: 16px;
}

.spot-map-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spot-rank {
    min-width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.spot-rank.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #2c3e50;
}

.spot-rank.rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #2c3e50;
}

.spot-rank.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #e8a87c 100%);
    color: white;
}

.spot-rank i {
    font-size: 16px;
    margin-bottom: 2px;
}

.spot-title {
    flex: 1;
}

.spot-title h4 {
    margin: 0 0 8px 0;
    font-size: 22px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.spot-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #6c757d;
}

.spot-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.spot-meta i {
    color: #667eea;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-mvp {
    background: #ffd700;
    color: #2c3e50;
}

.badge-party {
    background: #17a2b8;
    color: white;
}

/* Score Circle */
.spot-score {
    text-align: center;
}

.score-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 4px solid;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.score-circle.excellent {
    border-color: #28a745;
}

.score-circle.good {
    border-color: #17a2b8;
}

.score-circle.decent {
    border-color: #ffc107;
}

.score-circle .score-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.score-circle.excellent .score-value {
    color: #28a745;
}

.score-circle.good .score-value {
    color: #17a2b8;
}

.score-circle.decent .score-value {
    color: #ffc107;
}

.score-circle .score-max {
    font-size: 12px;
    color: #6c757d;
}

.score-label {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Spot Info */
.spot-info {
    padding: 25px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.info-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: #667eea;
    background: white;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 4px;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.info-value .optimal {
    font-size: 13px;
    color: #667eea;
    font-weight: normal;
}

.access-easy {
    color: #28a745;
}

.access-hard {
    color: #e74c3c;
}

/* Spot Scores */
.spot-scores {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.spot-scores h5 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scores-grid {
    display: grid;
    gap: 12px;
}

.scores-grid-2col {
    grid-template-columns: repeat(2, 1fr);
}

.score-bar {
    background: white;
    padding: 12px;
    border-radius: 8px;
}

.score-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.score-bar-label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 6px;
}

.score-bar-label i {
    color: #667eea;
}

.score-bar-value {
    font-size: 14px;
    font-weight: 700;
    color: #667eea;
}

.score-bar-bg {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.score-bar-fill.xp {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.score-bar-fill.safety {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.score-bar-fill.accessibility {
    background: linear-gradient(90deg, #17a2b8, #138496);
}

.score-bar-fill.exp {
    background: linear-gradient(90deg, #ffc107, #ff9800);
}

.score-bar-fill.zeny {
    background: linear-gradient(90deg, #ffd700, #ffed4e);
}

.score-bar-fill.cards {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

/* Spot Reason */
.spot-reason {
    background: #e7f3ff;
    border-left: 4px solid #667eea;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.reason-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.reason-header i {
    color: #667eea;
}

.spot-reason p {
    margin: 0;
    color: #2c3e50;
    line-height: 1.6;
}

