/* Oblivion World Damage Calculator Styles */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Raleway:wght@300;400;600&display=swap');

:root {
    --primary: #af8e4d;
    --primary-dark: #8c7039;
    --primary-light: #d4b06b;
    --secondary: #3b2c1a;
    --tertiary: #595246;
    --background: #0f0c08;
    --card-bg: #1a1610;
    --text: #e6d9c0;
    --text-muted: #a99d86;
    --border: #6c5c3f;
    --header-bg: rgba(15, 12, 8, 0.8);
    --slider-track: #2a2318;
    --slider-thumb: #d4b06b;
    --tooltip-bg: rgba(10, 8, 6, 0.9);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    --tooltip-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    --modal-overlay: rgba(0, 0, 0, 0.8);
    --chart-grid: rgba(105, 94, 70, 0.2);
    --input-bg: rgba(34, 27, 18, 0.6);
    --tab-active: #2a2318;
    --tab-hover: #443a27;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

/* Page Container */
.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Title Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Link Styles */
a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Header Styles */
.header {
    background-color: var(--header-bg);
    padding: 3rem 1rem;
    position: relative;
    text-align: center;
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid var(--primary-dark);
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 8, 6, 0.7);
}

.header-content {
    position: relative;
    z-index: 2;
}

.header h1 {
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 0.5rem;
}

.header h1 span {
    color: var(--primary);
}

.header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

.header-subtitle {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--primary-light);
    font-style: italic;
}

/* About Section */
.about-section {
    background-color: var(--card-bg);
    padding: 3rem 1rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.about-content p {
    margin-bottom: 1.2rem;
    color: var(--text-muted);
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Calculator Navigation */
.calculator-nav {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.tab-btn {
    background: none;
    color: var(--text-muted);
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Cinzel', serif;
    transition: all 0.3s;
    position: relative;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text);
    background-color: var(--tab-hover);
}

.tab-btn.active {
    color: var(--primary);
    background-color: var(--tab-active);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 3px;
    background-color: var(--primary);
}

/* Calculator Panel */
.calculator-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.calculator-panel.active {
    display: block;
}

.calculator-header {
    margin-bottom: 2rem;
    text-align: center;
}

.calculator-header h2 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.calculator-header p {
    color: var(--text-muted);
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .calculator-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Input Area */
.input-section {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-light);
    position: relative;
}

.info-tooltip {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--secondary);
    font-size: 12px;
    cursor: help;
    position: relative;
}

.info-tooltip:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem;
    background-color: var(--tooltip-bg);
    color: var(--text);
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 10;
    box-shadow: var(--tooltip-shadow);
    width: max-content;
    max-width: 200px;
}

select, input[type="number"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background-color: var(--input-bg);
    color: var(--text);
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

select:focus, input[type="number"]:focus {
    border-color: var(--primary);
    outline: none;
}

/* Range Slider */
.range-slider {
    display: flex;
    align-items: center;
    gap: 1rem;
}

input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background-color: var(--slider-track);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--slider-thumb);
    cursor: pointer;
    transition: all 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.range-value {
    min-width: 40px;
    text-align: right;
    font-weight: 600;
    color: var(--primary);
}

/* Checkboxes */
.checks {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background-color: var(--input-bg);
    position: relative;
    cursor: pointer;
}

input[type="checkbox"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--secondary);
    font-size: 12px;
    font-weight: bold;
}

/* Result Area */
.result-section {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.result-header {
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.result-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-item {
    background-color: var(--secondary);
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
}

.result-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.result-value.primary {
    color: var(--primary);
    font-size: 1.8rem;
}

/* Damage Breakdown */
.damage-breakdown {
    margin-bottom: 2rem;
    background-color: rgba(59, 44, 26, 0.3);
    padding: 1.5rem;
    border-radius: 6px;
}

.damage-breakdown h4 {
    color: var(--primary-light);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.damage-breakdown ul {
    list-style: none;
}

.damage-breakdown li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(105, 94, 70, 0.3);
}

.damage-breakdown li:last-child {
    border-bottom: none;
}

/* Formula Display */
.formula {
    background-color: rgba(15, 12, 8, 0.5);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Chart Area */
.damage-chart {
    margin-bottom: 2rem;
    background-color: rgba(34, 27, 18, 0.4);
    padding: 1rem;
    border-radius: 6px;
    height: 200px;
}

/* Optimization Tips */
.optimization-tips {
    padding: 1rem;
    border-radius: 6px;
    background-color: rgba(175, 142, 77, 0.1);
    border-left: 3px solid var(--primary);
}

.optimization-tips h4 {
    color: var(--primary-light);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.optimization-tips p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* FAQ Section */
.faq-section {
    background-color: var(--secondary);
    padding: 4rem 1rem;
    border-top: 1px solid var(--border);
}

.section-container {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.faq-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: rgba(175, 142, 77, 0.1);
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
}

.faq-toggle {
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: rgba(34, 27, 18, 0.4);
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 1000px;
}

.faq-answer p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul, .faq-answer ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--secondary);
    padding: 3rem 1rem;
    text-align: center;
    border-top: none;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-section h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.copyright {
    border-top: 1px solid rgba(105, 94, 70, 0.3);
    padding-top: 1.5rem;
}

.copyright p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.legal {
    font-size: 0.8rem;
    opacity: 0.7;
    max-width: 800px;
    margin: 1rem auto 0;
}

/* Formula Detail Popup */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-overlay);
    z-index: 1000;
    overflow: auto;
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-width: 800px;
    width: 90%;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--primary);
}

.modal-body {
    margin-top: 1.5rem;
}

.formula-container {
    background-color: rgba(15, 12, 8, 0.5);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    overflow-x: auto;
}

.formula-text {
    font-family: monospace;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

/* Helper Classes */
.hide {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .result-details {
        grid-template-columns: 1fr;
    }
    
    .input-section, .result-section {
        padding: 1.5rem;
    }
    
    .tab-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .calculator-header h2 {
        font-size: 1.5rem;
    }
    
    .input-section, .result-section {
        padding: 1rem;
    }
} 