/* OrhOn 01 - FINAL PRODUCTION CSS (Fixed Layout) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark: #0a0e27;
    --mid: #1a1f3a;
    --light: #2a2f4a;
    --accent: #00d4ff;
    --glass-bg: rgba(42, 47, 74, 0.4);
    --glass-border: rgba(0, 212, 255, 0.2);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--dark) 0%, #0f1535 50%, #1a1440 100%);
    color: #ffffff;
    min-height: 100vh;
    /* DİKKAT: Body padding'i kaldırıldı, footer tam genişlik olsun diye */
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent);
    background-size: 200% 200%;
    animation: stars 120s linear infinite;
    opacity: 0.3;
    z-index: 0;
}

@keyframes stars {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -200% -200%;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    /* İçerik kenara yapışmasın diye padding buraya alındı */
    padding: 20px;
    flex: 1;
    /* Footer'ı aşağı itmek için */
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

h1 {
    font-size: 2.2em;
    font-weight: 600;
    color: var(--accent);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    padding: 25px;
    margin-bottom: 25px;
    transition: border-color 0.3s;
}

.glass-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
}

.card-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent);
}

.cockpit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.cockpit-section h3 {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: var(--accent);
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

input,
select {
    padding: 10px 12px;
    background: rgba(26, 31, 58, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95em;
    transition: all 0.3s;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

button {
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.8), rgba(0, 170, 255, 0.8));
    border: 1px solid var(--accent);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

button.secondary {
    background: rgba(42, 47, 74, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.button-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.primary-action {
    width: 100%;
    padding: 14px;
    font-size: 1.1em;
}

.chart-container {
    position: relative;
    height: 350px;
    margin-top: 15px;
    background: rgba(10, 14, 39, 0.3);
    border-radius: 10px;
    padding: 15px;
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading.active {
    display: block;
}

.spinner {
    border: 3px solid rgba(0, 212, 255, 0.2);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.accordion {
    margin-bottom: 25px;
}

.accordion-header {
    background: var(--glass-bg);
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    border: 1px solid var(--glass-border);
    transition: border-color 0.3s;
}

.accordion-header:hover {
    border-color: rgba(0, 212, 255, 0.4);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 2000px;
    margin-top: 10px;
}

.accordion-icon {
    transition: transform 0.3s;
}

.accordion-icon.active {
    transform: rotate(180deg);
}

.formula-box {
    background: rgba(0, 212, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    line-height: 2;
    font-family: 'Courier New', monospace;
}

.export-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, rgba(81, 207, 102, 0.8), rgba(64, 192, 87, 0.8));
    border-color: #51cf66;
}

#location_list {
    max-height: 300px;
    overflow-y: auto;
}

#location_list::-webkit-scrollbar {
    width: 6px;
}

#location_list::-webkit-scrollbar-track {
    background: rgba(0, 212, 255, 0.1);
    border-radius: 10px;
}

#location_list::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.4);
    border-radius: 10px;
}

#location_list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.6);
}

@media (max-width: 768px) {
    .cockpit-grid {
        grid-template-columns: 1fr;
    }

    .input-grid {
        grid-template-columns: 1fr;
    }

    .chart-container {
        height: 300px;
    }
}

/* ==================== INTRO MODAL ==================== */
.intro-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Kararma miktarını biraz azalttım, daha şık dursun diye */
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.intro-modal.show {
    display: flex;
    opacity: 1;
}

.intro-modal.fade-out {
    opacity: 0;
}

.intro-modal-content {
    max-width: 800px;
    max-height: 85vh;
    background: rgba(20, 25, 45, 0.95);
    border: 1px solid var(--accent);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.2);
    overflow-y: auto;
}

.manifesto-text {
    color: #e0e0e0;
    line-height: 1.8;
    text-align: justify;
    font-size: 1.1em;
    font-family: 'Times New Roman', serif;
}

.manifesto-text p {
    margin-bottom: 20px;
}

.separator-dots {
    text-align: left;
    font-size: 2em;
    color: var(--accent);
    margin: 40px 0;
    letter-spacing: 20px;
    font-family: 'Times New Roman', serif;
    opacity: 0.7;
}

.signature-block {
    text-align: right;
    margin-top: 40px;
    font-style: italic;
    opacity: 1;
    font-family: 'Times New Roman', serif;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: inline-block;
    float: right;
    clear: both;
}

.signature-block .author {
    font-size: 1.2em;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
}

.signature-block .title {
    font-size: 1em;
    display: block;
    color: rgba(255, 255, 255, 0.7);
}

.intro-enter-btn {
    width: 100%;
    padding: 16px;
    margin-top: 30px;
    font-size: 1.2em;
    background: linear-gradient(135deg, var(--accent), #00aaff);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
    clear: both;
}

/* ==================== FOOTER ==================== */
footer {
    width: 100%;
    margin-top: 50px;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    z-index: 10;

    /* YENİ EKLENEN SATIR: Footer'ın asla büzüşmemesini sağlar */
    flex-shrink: 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888;
    font-size: 0.9em;
}

.footer-content a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-content a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}