/* ============================================
   ENHANCED FULLPAGE (HELSIDOR) LAYOUT
   Additive CSS for rich, dynamic fullpage rendering
   Namespaced classes: .fullpage-sheet, .fp-banner, .fp-card, .fp-table, .fp-stats, .fp-abilities
   Two-column layout: .fp-two-column-wrapper, .fp-left-column, .fp-right-column
   ============================================ */

/* Base Container - Namespaced */
.fullpage-sheet,
.fullpage-enhanced {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ============ TWO-COLUMN LAYOUT ============ */
.fp-two-column-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 2rem;
}

.fp-left-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.fp-right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ============ HEADER BANDEROLL ============ */
.fullpage-header-banderoll,
.fp-banner {
    /*background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);*/
    /*border: 2px solid rgba(212, 175, 55, 0.4);*/
    border-radius: 8px;
    padding: 0rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.fullpage-header-banderoll::before,
.fp-banner.fullpage-header-banderoll::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(212, 175, 55, 0.6) 20%, 
        rgba(212, 175, 55, 0.8) 50%, 
        rgba(212, 175, 55, 0.6) 80%, 
        transparent 100%);
}

.fullpage-title {
    font-family: 'Colus', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #d4af37;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ============ QUOTE BANDEROLL ============ */
.fullpage-quote-banderoll {
    background: rgba(35, 30, 25, 0.4);
    border-left: 4px solid #d4af37;
    border-radius: 4px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    font-style: italic;
    color: #aaaaaa;
}

.fullpage-quote-text {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.6;
}

.fullpage-quote-text::before {
    content: '"';
    font-size: 2rem;
    color: #d4af37;
    margin-right: 0.5rem;
    vertical-align: sub;
}

.fullpage-quote-text::after {
    content: '"';
    font-size: 2rem;
    color: #d4af37;
    margin-left: 0.5rem;
    vertical-align: sub;
}

/* ============ HERO IMAGE SECTION ============ */
.fullpage-hero-section {
    margin: 2rem 0;
    text-align: center;
}

.fullpage-hero-image-container {
    display: inline-block;
    position: relative;
    max-width: 100%;
    /*border: 3px solid rgba(212, 175, 55, 0.3);*/
    border-radius: 8px;
    padding: 0.5rem;
    background: rgba(35, 30, 25, 0);
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);*/
}

.fullpage-hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* ============ SECTION BANDEROLL / CARD ============ */
.fullpage-section-banderoll,
.fp-card {
    /*background: rgba(45, 38, 32, 0.6);*/
    /*border: 1px solid rgba(212, 175, 55, 0.25);*/
    border-radius: 6px;
    /*padding: 1.5rem;*/
    margin: 0;
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);*/
}

/* Sections outside of columns (top-level) still get vertical margin */
.fullpage-enhanced > .fullpage-section-banderoll,
.fullpage-enhanced > .fp-card {
    margin: 2rem 0;
}

.fullpage-section-title {
    font-family: 'Colus', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #d4af37;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============ STATS GRID ============ */
.fullpage-stats-grid,
.fp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.fullpage-stat-card {
    /*background: linear-gradient(135deg, rgba(35, 30, 25, 0.8) 0%, rgba(25, 20, 15, 0.9) 100%);*/
    /*border: 2px solid rgba(212, 175, 55, 0.4);*/
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.fullpage-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.6);
}

.stat-card-label {
    font-family: 'Colus', Georgia, serif;
    font-size: 0.85rem;
    color: #aaaaaa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-card-value {
    font-family: 'Colus', Georgia, serif;
    font-size: 2rem;
    font-weight: bold;
    color: #d4af37;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.stat-card-value-text {
    font-size: 1.5rem;
}

/* ============ INTRO SECTION ============ */
.fullpage-intro-section {
    margin: 2rem 0;
}

.fullpage-intro-content {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #e0e0e0;
}

.fullpage-intro-content p {
    margin-bottom: 1em;
}

.fullpage-intro-content strong {
    color: #d4af37;
    font-weight: 600;
}

/* ============ DATA TABLES ============ */
.fullpage-data-table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

.fullpage-data-table,
.fp-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(25, 20, 15, 0.5);
    border-radius: 4px;
    overflow: hidden;
}

/* Table header - semibold Colus font */
.fullpage-data-table thead th,
.fp-table thead th {
    font-family: 'Colus', Georgia, serif !important;
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 2px solid rgba(212, 175, 55, 0.4);
}

.fullpage-data-table tbody tr,
.fp-table tbody tr {
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    transition: background-color 0.2s ease;
}

.fullpage-data-table tbody tr:hover,
.fp-table tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.05);
}

.fullpage-data-table tbody tr:last-child,
.fp-table tbody tr:last-child {
    border-bottom: none;
}

/* Table body - Crimson Pro normal weight, NO first-row heading effect */
.fullpage-data-table tbody td,
.fp-table tbody td {
    padding: 0.75rem 1rem;
    font-family: 'Crimson Pro', Georgia, serif !important;
    font-size: 1rem !important;
    font-weight: normal !important;
    color: #e0e0e0 !important;
}

/* Remove any special styling for first cell - all cells are equal */
.fullpage-data-table tbody td:first-child,
.fp-table tbody td:first-child {
    font-weight: normal !important;
}

/* If text contains <strong>, it can be styled, but default is normal */
.fullpage-data-table tbody td strong,
.fp-table tbody td strong {
    color: #d4af37;
    font-weight: 600;
}

/* Attack table specific styling */
.fullpage-attack-table tbody td:first-child {
    width: 80px;
    font-weight: 600 !important;
    color: #d4af37 !important;
}

.fullpage-attack-table tbody td:nth-child(3) {
    width: 100px;
    font-weight: 600 !important;
}

/* ============ LIST CONTENT ============ */
.fullpage-list-content {
    margin-top: 1rem;
}

.fullpage-list-content ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.fullpage-list-content li {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1rem;
    color: #e0e0e0;
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    line-height: 0;
}

.fullpage-list-content li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: #d4af37;
    font-size: 0.8rem;
}

/* Dialogues specific styling */
.fullpage-dialogues li {
    font-style: italic;
    color: #aaaaaa;
}

.fullpage-dialogues li::before {
    content: '❝';
    font-size: 1.2rem;
}

/* ============ ABILITIES SECTION ============ */
.fp-abilities .fullpage-list-content li {
    background: rgba(35, 30, 25, 0.4);
    border-left: 3px solid rgba(212, 175, 55, 0.5);
    padding: 0.75rem 1rem 0.75rem 2rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

/* ============ TEXT CONTENT ============ */
.fullpage-text-content {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #e0e0e0;
    margin-top: 1rem;
}

.fullpage-text-content p {
    margin-bottom: 1em;
}

/* ============ RESPONSIVE DESIGN ============ */
@media screen and (max-width: 968px) {
    /* Stack columns on tablets and below */
    .fp-two-column-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .fullpage-sheet,
    .fullpage-enhanced {
        padding: 1.5rem 1rem;
    }
    
    .fullpage-title {
        font-size: 2rem;
    }
    
    .fullpage-header-banderoll,
    .fp-banner {
        padding: 1.5rem;
    }
    
    .fullpage-stats-grid,
    .fp-stats {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .fullpage-section-banderoll,
    .fp-card {
        padding: 1rem;
    }
    
    .fullpage-section-title {
        font-size: 1.25rem;
    }
    
    .stat-card-value {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .fullpage-title {
        font-size: 1.5rem;
        letter-spacing: 0.05em;
    }
    
    .fullpage-stats-grid,
    .fp-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .fullpage-quote-text {
        font-size: 1rem;
    }
    
    .fullpage-data-table,
    .fp-table {
        font-size: 0.9rem;
    }
    
    .fullpage-data-table tbody td,
    .fullpage-data-table thead th,
    .fp-table tbody td,
    .fp-table thead th {
        padding: 0.5rem;
    }
}

/* ============ PRINT STYLES ============ */
@media print {
    .fullpage-sheet,
    .fullpage-enhanced {
        page-break-inside: avoid;
    }
    
    .fullpage-section-banderoll,
    .fp-card {
        page-break-inside: avoid;
    }
    
    .fullpage-stat-card {
        break-inside: avoid;
    }
}
