:root {
    --primary-gold: #d4af37;
    --dark-gold: #aa8a2e;
    --deep-red: #800000;
    --mystic-black: #1a1a1a;
    --paper-white: #fdfbf7;
    --border-color: rgba(212, 175, 55, 0.3);
}

body {
    background-color: var(--mystic-black);
    color: var(--paper-white);
    font-family: 'Inter', 'Roboto', sans-serif;
    margin: 0;
    padding: 20px;
}

.iching-container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.header {
    text-align: center;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.header h1 {
    font-family: 'Outfit', serif;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0;
}

.hexagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.hexagram-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--primary-gold);
}

.hexagram-visual {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
}

.line {
    width: 120px;
    height: 12px;
    background: var(--primary-gold);
    position: relative;
}

.line.yin {
    background: transparent;
    border: none;
}

.line.yin::before, .line.yin::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 12px;
    background: var(--primary-gold);
}

.line.yin::before { left: 0; }
.line.yin::after { right: 0; }

.line.moving::before {
    content: '●';
    position: absolute;
    right: -30px;
    color: #ff4d4d;
    font-size: 20px;
    top: -6px;
}

.luc-hao-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.9em;
}

.luc-hao-table th, .luc-hao-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.luc-hao-table th {
    color: var(--primary-gold);
}

.judgment-box {
    margin-top: 40px;
    padding: 20px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px gold dashed;
    border-radius: 8px;
}
/* Report Sections */
.report-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    overflow: hidden;
}

.report-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -20px -20px 20px -20px;
    padding: 12px 20px;
    background: rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.report-header i {
    color: var(--primary-gold);
    font-size: 1.1rem;
}

.report-header h3 {
    margin: 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-gold);
}

/* Scholarly & Strategic Analysis */
.scholarly-container {
    background: rgba(212, 175, 55, 0.05);
    border-left: 4px solid var(--primary-gold);
    padding: 30px;
    border-radius: 0 20px 20px 0;
    margin-top: 15px;
    box-shadow: inset 5px 0 15px rgba(0,0,0,0.2);
}

.scholarly-title {
    color: var(--primary-gold);
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scholarly-box {
    position: relative;
    padding: 20px;
    background: rgba(0,0,0,0.25);
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.scholarly-box strong {
    color: var(--primary-gold);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.scholarly-content {
    color: #eee;
    font-size: 1.05rem;
    line-height: 1.8;
    white-space: pre-wrap;
}

.example-box {
    margin-top: 30px;
    background: rgba(212, 175, 55, 0.03);
    padding: 20px;
    border-radius: 15px;
    border: 1px dashed rgba(212, 175, 55, 0.2);
}

.example-list {
    margin: 15px 0 0 25px;
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.7;
}

.example-list li {
    margin-bottom: 12px;
    position: relative;
}

.example-list li::marker {
    color: var(--primary-gold);
}

.archive-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.archive-tag {
    font-size: 0.65rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.premium-badge {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    color: #000;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

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

.analysis-item {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.analysis-item:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.analysis-item i {
    color: var(--primary-gold);
    font-size: 1.3rem;
    margin-top: 2px;
}

.analysis-content strong {
    display: block;
    color: var(--primary-gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.analysis-content p {
    margin: 0;
    color: #eee;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Print Optimization */
@media print {
    .no-print { display: none !important; }
    body { background: white; color: black; padding: 0; }
    .iching-container { box-shadow: none; border: none; width: 100%; max-width: none; }
    .report-section { border: 1px solid #ddd; break-inside: avoid; }
    .report-header { background: #f0f0f0 !important; color: black !important; }
    .report-header i, .report-header h3 { color: black !important; }
    .scholarly-box { border-left-color: black; background: #fafafa !important; }
}
