:root {
    --bg-color: #0d0d12;
    --card-bg: rgba(255, 255, 255, 0.05);
    --accent-color: #7c4dff;
    --text-color: #ffffff;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --success: #10b981;
}

#intro-screen {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    padding: 20px;
    text-align: center;
}

.landing-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    max-width: 400px;
    backdrop-filter: blur(10px);
}

.landing-card .logo {
    font-size: 64px;
    margin-bottom: 20px;
}

.landing-card h1 {
    margin-bottom: 12px;
    font-weight: 700;
}

.landing-card p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--tg-theme-bg-color, var(--bg-color));
    color: var(--tg-theme-text-color, var(--text-color));
    overflow-x: hidden;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    padding: 20px;
    background: linear-gradient(180deg, rgba(0, 210, 255, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    text-align: center;
}

.header-content h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

main {
    flex: 1;
    padding: 10px 16px 120px 16px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.card.highlight {
    border: 1px solid rgba(0, 210, 255, 0.3);
    background: linear-gradient(145deg, rgba(0, 210, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 100%);
}

h2 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: -8px;
    margin-bottom: 16px;
}

.setting-item {
    margin-bottom: 20px;
}

.setting-item:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.badge {
    background: var(--accent-color);
    color: #000;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

/* Range Input Styling */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    margin-top: -7px;
    box-shadow: 0 0 10px var(--accent-glow);
    cursor: pointer;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Switch Styling */
.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-col span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--accent-color);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Tag Container & Search */
.search-container {
    position: relative;
}

input[type=text] {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    color: white;
    font-size: 14px;
}

input[type=text]:focus {
    outline: none;
    border-color: var(--accent-color);
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.chip.active {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
}

.tag {
    background: rgba(0, 210, 255, 0.15);
    color: var(--accent-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(0, 210, 255, 0.2);
}

.tag .close {
    cursor: pointer;
    font-weight: bold;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1c1c1d;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.dropdown-item {
    padding: 12px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:active {
    background: rgba(255, 255, 255, 0.1);
}

.custom-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    color: white;
    font-size: 14px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* Footer & Button */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(0deg, var(--tg-theme-bg-color, var(--bg-color)) 70%, rgba(0, 0, 0, 0) 100%);
    z-index: 10;
}

.main-button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);
    color: white;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
    cursor: pointer;
    transition: transform 0.2s;
}

.main-button:active {
    transform: scale(0.98);
}

/* Menu Screen Styles */
.menu-main {
    padding: 20px 16px;
}

.menu-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.menu-card:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.08);
}

.menu-icon {
    font-size: 32px;
}

.menu-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.menu-text p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.arrow {
    margin-left: auto;
    font-size: 24px;
    color: var(--text-muted);
}

/* Back Button */
.back-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    margin-right: 12px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Profile Screen Styles */
.profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.profile-item:last-child {
    border-bottom: none;
}

.profile-item span:first-child {
    color: var(--text-muted);
}

.profile-item span:last-child {
    font-weight: 600;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}
/* About Screen Styles */
.about-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.about-logo {
    font-size: 48px;
}

.about-header h2 {
    margin: 0;
    font-size: 24px;
    color: var(--text-color);
    text-transform: none;
}

.about-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
}

.about-text strong {
    color: var(--text-color);
}

.card.warning {
    border-color: rgba(255, 180, 50, 0.3);
    background: rgba(255, 180, 50, 0.08);
}

.copyright {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin: 20px 0;
    padding-bottom: 80px;
}

.about-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 30px;
}

.main-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.main-button.secondary:active {
    background: rgba(255, 255, 255, 0.15);
}

a.main-button {
    text-decoration: none;
    text-align: center;
    display: block;
}

/* Test Button */
.test-button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 180, 50, 0.15);
    color: #ffb432;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(255, 180, 50, 0.3);
}

.test-button:active {
    transform: scale(0.98);
    background: rgba(255, 180, 50, 0.25);
}

.test-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Son 24 Saat Ekran Stilleri */
.stats-bar {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-bar span {
    font-size: 14px;
    font-weight: 600;
}

.quakes-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 20px;
}

.quake-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.quake-mag {
    min-width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.quake-mag.green { background: linear-gradient(135deg, #10b981, #059669); }
.quake-mag.orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.quake-mag.red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.quake-mag.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.quake-info {
    flex: 1;
    overflow: hidden;
}

.quake-loc {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quake-meta {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.quake-source {
    font-style: italic;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* Map View Styles */
.view-toggle {
    display: flex;
    gap: 4px;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.quakes-map {
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
}

.quakes-map .leaflet-container {
    height: 100%;
    width: 100%;
    background: #1a1a2e;
}

.quake-popup {
    text-align: center;
}

.quake-popup h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.quake-popup p {
    margin: 2px 0;
    font-size: 13px;
    color: #666;
}
