* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(26, 26, 26, 0.8);
    margin: 1rem;
    padding: 1rem 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1010;
}

.navbar-brand {
    color: var(--text-color);
    font-family: 'Red Hat Display', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: none;
    letter-spacing: -0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    white-space: nowrap;
}

.navbar-brand span {
    display: inline-block;
    vertical-align: baseline;
    margin-right: -1px;
}

.navbar-brand .domain {
    color: #BA181B;
    font-weight: 900;
    margin-left: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 0;
    font-weight: 500;
}

.container {
    display: flex;
    padding: 1.5rem;
    gap: 2rem;
    min-height: calc(100vh - 160px);
}

.news-section {
    z-index: 1002;
    flex: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-height: calc(100vh - 100px);
    padding: 1.5rem;
    position: relative;
}

.news-item {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.news-item iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.earthquake-section {
    position: relative;
    flex: 1;
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 1rem;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.earthquake-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 10px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-radius: 5px;
    font-size: 0.9rem;
    position: relative;
    transition: all 0.3s ease;
    border: none;
    align-items: center;
}

.earthquake-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.earthquake-details {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    background: #fff;
    color: #333;
    padding: 1rem;
    border-radius: 5px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.earthquake-item:hover .earthquake-details {
    opacity: 1;
    visibility: visible;
    transform: translateY(-5px);
}

.earthquake-details p {
    margin: 5px 0;
    color: #333;
}

.earthquake-details strong {
    color: #333;
    opacity: 0.9;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.earthquake-item.new-earthquake {
    animation: fadeIn 0.5s ease forwards;
}

.magnitude {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.magnitude .depth-value {
    font-size: 1.1rem;
    font-weight: normal;
    opacity: 0.9;
    margin-top: 2px;
}

.magnitude i {
    font-size: 1.2rem;
}

.info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.location {
    font-weight: 500;
    font-size: 1.1rem;
}

.time {
    font-size: 0.8rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.depth i, .time i {
    font-size: 1rem;
}

.magnitude-high {
    background-color: #660708 !important;
    color: #fff !important;
}

.magnitude-medium {
    background-color: #BA181B !important;
    color: #fff !important;
}

.magnitude-low {
    background-color: #E5383B !important;
    color: #fff !important;
}

/* Scrollbar stilini gÃ¼ncelle */
.earthquake-section::-webkit-scrollbar {
    width: 8px;
}

.earthquake-section::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 4px;
}

.earthquake-section::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.earthquake-section::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Footer iÃ§in stiller */
.footer {
    background-color: var(--navbar-bg);
    margin: 1rem;
    padding: 1.5rem 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-brand {
    color: var(--text-color);
    font-family: 'Red Hat Display', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    text-decoration: none;
}

.footer-links {
    list-style: none;
    padding: 0;
    text-align: center;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-contact {
    text-align: right;
}

.footer-contact p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.footer-contact p:first-child {
    font-weight: 600;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .footer {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.2rem;
        margin: 0.5rem;
        text-align: center;
    }

    .footer-section {
        align-items: center;
    }

    .footer-contact {
        text-align: center;
    }

    .footer-links {
        margin: 1rem 0;
    }

    .footer-contact p {
        font-size: 1rem;
    }

    .footer-contact p:first-child {
        font-size: 1.1rem;
    }
}

/* Sayfa yapÄ±sÄ±nÄ± dÃ¼zenlemek iÃ§in wrapper */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Mevcut container'Ä± flex-grow ile ortala */
.container {
    flex-grow: 1;
}

/* Responsive tasarÄ±m iÃ§in medya sorgularÄ± */
@media (max-width: 1200px) {
    .container {
        padding: 1rem;
    }

    .news-section {
        padding: 1rem;
        gap: 1rem;
    }
}

@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }

    .news-section {
        max-height: none;
    }

    .earthquake-section {
        max-height: 400px;
    }

    .news-settings-btn {
        top: 1rem;
    }

    .news-section {
        padding-top: 4rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        margin: 0.5rem;
        padding: 0.8rem 1rem;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

    .navbar-brand i {
        font-size: 1.2rem;
    }

    .news-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer {
        margin: 0.5rem;
        padding: 0.8rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .footer-credit{
        justify-content: center;
        align-items: center;
        font-size: 1px;
    }

    .footer-made-by{
        display: none;
    }

    .earthquake-section {
        max-height: 300px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* iOS iÃ§in smooth scroll */
        margin-bottom: 1rem;
        padding-right: 0.5rem;
    }

    /* Scrollbar stilini gÃ¼ncelle */
    .earthquake-section::-webkit-scrollbar {
        width: 6px;
    }

    .earthquake-section::-webkit-scrollbar-track {
        background: var(--bg-color);
        border-radius: 3px;
    }

    .earthquake-section::-webkit-scrollbar-thumb {
        background: #444;
        border-radius: 3px;
    }

    .earthquake-section::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

    .news-settings-btn {
        top: 0.5rem;
        right: 1rem;
    }

    .hamburger {
        display: block;
        z-index: 1011;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100%;
        background: var(--navbar-bg);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: 0.3s ease;
        transform: translateX(100%);
        visibility: hidden;
        z-index: 1009;
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -5px);
    }

    .container {
        flex-direction: column;
        padding: 0.5rem;
    }

    .news-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .earthquake-section {
        max-height: 300px;
    }

    .footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        justify-content: center;
        margin: 0.5rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }

    .earthquake-item {
        font-size: 0.8rem;
        padding: 0.6rem;
    }

    .news-settings-btn {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.6rem;
    }

    .news-settings-btn i {
        font-size: 1rem;
    }
}

/* Tema deÄŸiÅŸtirici switch stil */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 0.5rem;
    padding-left: 1rem;
}

.theme-text {
    font-size: 1rem;
    color: var(--text-color);
    user-select: none;
    font-weight: 500;
}

.theme-switch {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 48px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #161A1D;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 16px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 16px;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #BA181B;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Light mode ve Dark mode deÄŸiÅŸkenlerini gÃ¼ncelle */
:root {
    --bg-color: #0B090A;
    --text-color: #fff;
    --card-bg: #161A1D;
    --navbar-bg: rgba(22, 26, 29, 0.8);
    --footer-bg: rgba(22, 26, 29, 0.8);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --theme-switch-wrapper: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="light"] {
    --bg-color: #F5F3F4;          /* YumuÅŸak beyaz arkaplan */
    --text-color: #161A1D;        /* Koyu metin rengi */
    --card-bg: #D3D3D3;          /* Kart arkaplanÄ± iÃ§in aÃ§Ä±k gri */
    --navbar-bg: rgba(255, 255, 255, 0.8);  /* YarÄ± saydam beyaz navbar */
    --footer-bg: rgba(255, 255, 255, 0.8);  /* YarÄ± saydam beyaz footer */
    --shadow-color: rgba(0, 0, 0, 0.1);    /* Daha yumuÅŸak gÃ¶lgeler */
    --footer-made-by: #161A1D;    /* Footer metni iÃ§in koyu renk */
    --theme-switch-wrapper: 1px solid rgba(0, 0, 0, 0.1);  /* Ä°nce kenarlÄ±k */
}

/* Mevcut stilleri deÄŸiÅŸkenlere gÃ¶re gÃ¼ncelle */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.theme-switch-wrapper{
    border-left: var(--theme-switch-wrapper);
        }

.navbar, .footer {
    background-color: var(--navbar-bg);
}

.navbar-brand, .nav-links a, .footer-brand{
    color: var(--text-color);
}

.footer-made-by{
    color: var(--footer-made-by);
}

.news-item {
    background: var(--card-bg);
    box-shadow: 0 4px 6px var(--shadow-color);
}

.earthquake-section {
    background: var(--card-bg);
    box-shadow: 0 4px 6px var(--shadow-color);
}

.earthquake-item {
    background: var(--card-bg);
}

/* Hamburger menÃ¼ ve mobil responsive stiller */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1011;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100%;
        background: var(--navbar-bg);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: 0.3s ease;
        transform: translateX(100%);
        visibility: hidden;
        z-index: 1009;
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -5px);
    }

    .container {
        flex-direction: column;
        padding: 0.5rem;
    }

    .news-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .earthquake-section {
        max-height: 300px;
    }

    .footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        justify-content: center;
        margin: 0.5rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1.6rem;
    }

    .theme-switch-wrapper {
        border: none;
        margin: 0;
        padding: 1rem 0;
    }
}

/* Body ve HTML iÃ§in overflow kontrolÃ¼ */
html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

.news-settings-btn {
    position: absolute;
    top: -2rem;
    right: 1rem;
    background: var(--navbar-bg);
    border: none;
    color: var(--text-color);
    padding: 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(10px);
    z-index: 1005;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.news-settings-btn:hover {
    transform: rotate(45deg);
    background: var(--card-bg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.news-settings-btn i {
    font-size: 1.2rem;
    color: var(--text-color);
}

[data-theme="light"] .news-settings-btn {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .news-settings-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.settings-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    z-index: 1100;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.settings-modal.active {
    display: block;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1050;
}

.modal-overlay.active {
    display: block;
}

.channel-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.channel-item {
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    background: var(--navbar-bg);
    border-radius: 10px;
    cursor: pointer;
}

.channel-item span {
    font-size: 1.1rem;
    font-weight: 500;
}

.channel-item.active {
    border: 2px solid #BA181B;
}

.settings-modal h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.save-btn {
    background: #BA181B;
    color: #fff;
}

.cancel-btn {
    background: var(--navbar-bg);
    color: var(--text-color);
}

/* Mobil gÃ¶rÃ¼nÃ¼mde ayar butonu konumu */
@media (max-width: 768px) {
    .news-settings-btn {
        top: 0.5rem;
        right: 1rem;
    }

    /* News section iÃ§in ek padding ekle */
    .news-section {
        padding-top: 4rem;
    }
}

/* Daha kÃ¼Ã§Ã¼k ekranlar iÃ§in ek dÃ¼zenleme */
@media (max-width: 480px) {
    .news-settings-btn {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.6rem;
    }

    .news-settings-btn i {
        font-size: 1rem;
    }
}

/* Shepherd Ã¶zelleÅŸtirmeleri */
.shepherd-button {
    background: #BA181B !important;
    color: white !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
}

.shepherd-button:hover {
    background: #E5383B !important;
}

.shepherd-element {
    border-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
    max-width: 400px !important;
    width: 90% !important;
    z-index: 9999 !important;
    background: #fff !important;
}

.shepherd-text {
    font-size: 1.1rem !important;
    padding: 1.5rem !important;
    line-height: 1.6 !important;
    text-align: center !important;
    color: #333 !important;
}

.shepherd-footer {
    padding: 0 1rem 1rem !important;
    justify-content: center !important;
    gap: 1rem !important;
}

.shepherd-element[data-popper-placement="bottom"] {
    margin-top: 1rem !important;
}

.shepherd-element[data-popper-placement="left"] {
    margin-right: 1rem !important;
}

@media (max-width: 768px) {
    .shepherd-element {
        max-width: 300px !important;
    }

    .shepherd-text {
        font-size: 1rem !important;
        padding: 1rem !important;
    }
}

.shepherd-modal-overlay-container {
    display: block !important;
    z-index: 9998 !important;
    background: rgba(0, 0, 0, 0.8) !important;
}

.shepherd-has-title .shepherd-content .shepherd-header {
    background: #f5f5f5 !important;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
    padding: 1rem !important;
}

.shepherd-title {
    color: #333 !important;
    font-weight: bold !important;
}

/* Mobil iÃ§in Ã¶zelleÅŸtirmeler */
@media (max-width: 768px) {
    .shepherd-element {
        max-width: 300px !important;
    }

    .shepherd-text {
        font-size: 1rem !important;
        padding: 1rem !important;
    }
}

/* Shepherd modal overlay'i gizle */
.shepherd-has-title .shepherd-content .shepherd-header {
    background: #f5f5f5 !important;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
    padding: 1rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.shepherd-title {
    color: #333 !important;
    font-weight: bold !important;
    margin: 0 !important;
}

.shepherd-cancel-icon {
    color: #BA181B !important;
    font-weight: bold !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    position: absolute !important;
    top: 0.5rem !important;
    right: 0.5rem !important;
    transition: color 0.3s ease !important;
}

.shepherd-cancel-icon:hover {
    color: #E5383B !important;
}
