/* Root Variables */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1d4ed8;
    --primary-rgb: 37, 99, 235; /* primary-color rgb değerleri */
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --card-background: #ffffff;
    --background-color: #f9fafb;
    --border-color: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --input-background: #ffffff;
    --primary-color-10: rgba(37, 99, 235, 0.1);
    --primary-color-05: rgba(37, 99, 235, 0.05);
    --menu-hover: rgba(37, 99, 235, 0.1);
    --notification-unread-bg: rgba(37, 99, 235, 0.05);
    --notification-unread-border: #2563eb;
    --notification-hover-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --primary-color: #3b82f6;
    --secondary-color: #60a5fa;
    --primary-rgb: 59, 130, 246; /* dark mode primary-color rgb değerleri */
    --text-color: #f9fafb;
    --text-muted: #9ca3af;
    --card-background: #1f2937;
    --background-color: #111827;
    --border-color: #334155;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --input-background: #1e293b;
    --primary-color-10: rgba(59, 130, 246, 0.1);
    --primary-color-05: rgba(59, 130, 246, 0.05);
    --menu-hover: rgba(59, 130, 246, 0.1);
    --notification-unread-bg: rgba(59, 130, 246, 0.1);
    --notification-unread-border: #3b82f6;
    --notification-hover-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

html {
    min-height: 100%;
    width: 100%;
    background-color: var(--background-color);
}

/* Global link styles for proper contrast in dark mode */
a { color: var(--primary-color); text-decoration: underline; }
a:hover { color: var(--secondary-color); }
a:visited { color: var(--primary-color); }

/* Ensure readable links inside content containers */
.privacy-container a,
.terms-container a,
.rights-section a,
.abuse-section a {
    color: var(--primary-color) !important;
    text-decoration: underline;
    font-weight: 600;
}
.privacy-container a:hover,
.terms-container a:hover,
.rights-section a:hover,
.abuse-section a:hover { color: var(--secondary-color) !important; }
.privacy-container a:visited,
.terms-container a:visited,
.rights-section a:visited,
.abuse-section a:visited { color: var(--primary-color) !important; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    position: relative;
}

body.about-page,
body.press-page,
body.login-page,
body.donate-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
    width: 100%;
    padding-top: 60px;
    background-color: var(--background-color);
    position: relative;
    z-index: 1;
}

/* Section Backgrounds */
.container, 
.home-page,
.auth-section,
.features,
.stats,
.hero,
section {
    background-color: var(--background-color) !important;
    position: relative;
    z-index: 1;
}

/* Header Styles */
header {
    background: var(--card-background);
    box-shadow: 0 2px 4px var(--shadow-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 2rem;
}

.nav-items {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
}

/* Login Page Styles */
.auth-section {
    padding: 8rem 1rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--card-background);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.auth-image {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/auth-pattern.svg') center/cover;
    opacity: 0.1;
}

.auth-image-content {
    position: relative;
    z-index: 1;
}

.auth-image h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.auth-image p {
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-list li i {
    font-size: 1.2rem;
}

.auth-forms {
    padding: 3rem;
    background: var(--card-background);
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.auth-tab {
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    color: var(--text-color);
    cursor: pointer;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--input-background);
    color: var(--text-color);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
}

.submit-btn:hover {
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .auth-image {
        display: none;
    }
}

/* Hero Section */
.hero {
    padding: 8rem 1rem 4rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero p {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.search-container {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

input[type="email"] {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--input-background);
    color: var(--text-color);
}

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

button {
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--secondary-color);
}

/* Stats Section */
.stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 4rem 1rem;
    background-color: white;
}

.stat-card {
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #64748b;
}

/* Features Section */
.features {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

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

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.feature-card img {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* Footer Styles */
footer, .footer {
    flex-shrink: 0;
    width: 100%;
    background-color: var(--background-color);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    position: relative;
    z-index: 100;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

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

.footer-section p {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
}

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

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

.footer-section ul li a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

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

.footer-section ul li i {
    width: 1.25rem;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-color);
    opacity: 0.8;
}

/* Sayfa tipine göre özel footer stilleri */
.press-page footer,
.press-page .footer,
.about-page footer,
.about-page .footer,
.login-page footer,
.login-page .footer,
.donate-page footer,
.donate-page .footer,
.auth-page footer,
.auth-page .footer {
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 1rem;
    }

    .footer-section ul li a {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }

    .nav-items {
        display: none;
    }
}

/* Tema değiştirici stilleri */
.theme-switcher {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.theme-btn {
    background: var(--card-background);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: all 0.3s ease;
}

.theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.recaptcha-container {
    margin-bottom: 1.5rem;
}

.recaptcha-info {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* reCAPTCHA'yı dark mode'a uyumlu hale getir */
[data-theme="dark"] .g-recaptcha {
    filter: invert(0.9) hue-rotate(180deg);
}

.captcha-container {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.captcha-question {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.captcha-question span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
}

.captcha-question input {
    width: 100px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    background: var(--input-background);
    color: var(--text-color);
}

.captcha-info {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Mobil menü */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-items {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #1a1d21;
        padding: 0;
        flex-direction: column;
        align-items: stretch;
        display: none;
        height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .nav-items.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-auth {
        flex-direction: column;
        gap: 0;
    }

    .login-btn {
        width: 100%;
        justify-content: center;
    }

    .language-switcher {
        width: 100%;
    }

    .lang-btn {
        width: 100%;
        justify-content: space-between;
    }
}

/* Submenu Styles */
.has-submenu {
    position: relative;
}

.has-submenu > a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.has-submenu > a i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.has-submenu:hover > a i {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    padding: 1rem;
    z-index: 1000;
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    min-width: 500px;
}

.submenu-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.submenu-section ul {
    list-style: none;
}

.submenu-section a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.submenu-section a:hover {
    background: var(--menu-hover);
}

.submenu-section a div {
    display: flex;
    flex-direction: column;
}

.submenu-section a small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Language Switcher */
.language-switcher {
    position: relative;
    z-index: 1001;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--card-background);
    color: var(--text-color);
    cursor: pointer;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px var(--shadow-color);
    z-index: 1001;
}

.lang-dropdown.show {
    display: block;
}

.lang-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    white-space: nowrap;
}

.lang-dropdown a:hover {
    background: var(--menu-hover);
}

.lang-dropdown a.active {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .language-switcher {
        margin-top: 1rem;
        width: 100%;
    }

    .lang-btn {
        width: 100%;
        justify-content: center;
    }

    .lang-dropdown {
        position: static;
        margin-top: 0.5rem;
        width: 100%;
    }

    .lang-dropdown a {
        text-align: center;
    }
}

/* Stats Section */
.stats-grid {
    background-color: var(--background-color);
}

.stat-card {
    background-color: var(--card-background);
    color: var(--text-color);
}

/* Features Section */
.feature-grid {
    background-color: var(--background-color);
}

.feature-card {
    background-color: var(--card-background);
    color: var(--text-color);
}

/* Contact Page Styles */
.contact-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: start;
}

.contact-form {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px var(--shadow-color);
}

.contact-info {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px var(--shadow-color);
}

/* Responsive Design for Contact Page */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-section {
        padding: 2rem 1rem;
    }
} 