/* Xilonen Components CSS - Reusable Styles */

/* ========================================
   1. MATERIALS TABLE COMPONENT
   ======================================== */
.materials-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.materials-section h3 {
    color: #2c5e1a;
    font-size: 1.5em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.materials-table-container {
    overflow-x: auto;
    margin: 20px 0;
}

.materials-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.materials-table thead {
    background: linear-gradient(135deg, #2c5e1a 0%, #3d7a24 100%);
    color: white;
}

.materials-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
}

.materials-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9em;
}

.materials-table tr:hover {
    background: #f8f9fa;
}

.materials-table tr:last-child td {
    border-bottom: none;
}

.material-icon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 4px;
}

/* ========================================
   2. SKILL CARD COMPONENT
   ======================================== */
.skill-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin: 24px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.skill-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    object-fit: cover;
}

.skill-info h3 {
    font-size: 1.6em;
    color: #2c5e1a;
    margin: 0 0 8px 0;
}

.skill-type {
    display: inline-block;
    background: #e8f5e9;
    color: #2c5e1a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.skill-description {
    font-size: 1.05em;
    line-height: 1.8;
    color: #444;
    margin-bottom: 24px;
}

.skill-stats {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.skill-stats h4 {
    color: #2c5e1a;
    margin: 0 0 16px 0;
    font-size: 1.2em;
}

.skill-stats ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-stats li {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-stats li:last-child {
    border-bottom: none;
}

.stat-label {
    color: #666;
    font-weight: 500;
}

.stat-value {
    color: #2c5e1a;
    font-weight: 700;
    font-size: 1.1em;
}

/* ========================================
   3. BUILD CARD COMPONENT
   ======================================== */
.build-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.build-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 3px solid #e8f5e9;
}

.build-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
}

.build-badge.best {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b6914;
}

.build-badge.f2p {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
}

.build-badge.alternative {
    background: linear-gradient(135deg, #2196f3 0%, #42a5f5 100%);
    color: white;
}

.build-header h2 {
    margin: 0;
    color: #2c5e1a;
    font-size: 1.8em;
}

.build-subsection {
    margin: 24px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #2c5e1a;
}

.build-subsection h4 {
    color: #2c5e1a;
    margin: 0 0 16px 0;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Weapon & Artifact Cards */
.equipment-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.equipment-card:hover {
    border-color: #2c5e1a;
    box-shadow: 0 4px 8px rgba(44, 94, 26, 0.1);
}

.equipment-card.best {
    border-color: #ffd700;
    background: linear-gradient(135deg, #fffef0 0%, #fff9e6 100%);
}

.equipment-icon {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
}

.equipment-info {
    flex: 1;
}

.equipment-info h5 {
    margin: 0 0 6px 0;
    color: #2c5e1a;
    font-size: 1.1em;
}

.equipment-info p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

.equipment-rank {
    background: #2c5e1a;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

/* ========================================
   4. STATS PRIORITY COMPONENT
   ======================================== */
.stats-priority {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
}

.stats-priority h3 {
    color: #2c5e1a;
    margin: 0 0 20px 0;
    font-size: 1.4em;
}

.priority-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.priority-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    background: white;
    transition: transform 0.2s ease;
}

.priority-item:hover {
    transform: translateX(8px);
}

.priority-rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    flex-shrink: 0;
}

.priority-item.s-tier .priority-rank {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b6914;
}

.priority-item.a-tier .priority-rank {
    background: linear-gradient(135deg, #c0c0c0 0%, #e0e0e0 100%);
    color: #555;
}

.priority-item.b-tier .priority-rank {
    background: linear-gradient(135deg, #cd7f32 0%, #daa520 100%);
    color: white;
}

.priority-stat {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

/* ========================================
   5. QUICK STATS GRID
   ======================================== */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.quick-stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-top: 4px solid #2c5e1a;
}

.quick-stat-icon {
    font-size: 2.5em;
    margin-bottom: 12px;
}

.quick-stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #2c5e1a;
    margin: 8px 0;
}

.quick-stat-label {
    color: #666;
    font-size: 0.95em;
}

/* ========================================
   6. NAVIGATION SUBMENU
   ======================================== */
.sub-nav {
    background: #2c5e1a;
    padding: 15px 0;
    margin-top: -1px;
}

.sub-nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.sub-nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.sub-nav a:hover,
.sub-nav a.active {
    background: rgba(255,255,255,0.2);
}

/* ========================================
   7. BREADCRUMB
   ======================================== */
.breadcrumb {
    background: #f8f9fa;
    padding: 16px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb a {
    color: #2c5e1a;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb li:last-child {
    color: #666;
}

/* ========================================
   8. RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
    .skill-header {
        flex-direction: column;
        text-align: center;
    }
    
    .materials-table {
        font-size: 0.85em;
    }
    
    .materials-table th,
    .materials-table td {
        padding: 10px 8px;
    }
    
    .equipment-card {
        flex-direction: column;
        text-align: center;
    }
    
    .sub-nav ul {
        gap: 10px;
    }
    
    .sub-nav a {
        padding: 6px 12px;
        font-size: 0.85em;
    }
}

/* ========================================
   9. PRINT STYLES
   ======================================== */
@media print {
    .sub-nav,
    .burger,
    .cta-button {
        display: none;
    }
    
    .skill-card,
    .build-section,
    .materials-section {
        break-inside: avoid;
    }
}
