/* =============================================
   EHXLZ.com - Turkish Address Generator Theme
   Turkish Red #E30A17 | White | Accent
   ============================================= */

:root {
    --primary-red: #E30A17;
    --dark-red: #B80000;
    --accent-red: #C41E3A;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark: #1a1a1a;
    --text: #333333;
    --text-light: #666666;
    --border: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--primary-red); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--dark-red); text-decoration: underline; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }
img { max-width: 100%; }

/* =============================================
   HEADER / NAVBAR
   ============================================= */

header, .navbar {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content, .navbar-inner, .navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo:hover { text-decoration: none; color: var(--white); }

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

nav ul, .navbar-links, .navbar ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a, .navbar-links a, .navbar ul a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

nav a:hover, .navbar-links a:hover, .navbar ul a:hover {
    color: var(--white);
    text-decoration: none;
    border-bottom-color: rgba(255,255,255,0.7);
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =============================================
   MAIN CONTAINER
   ============================================= */

main { flex: 1; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

main.container { padding: 3rem 1.5rem; }

/* =============================================
   HERO
   ============================================= */

.hero {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    padding: 4rem 1.5rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--dark-red);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }

/* =============================================
   SECTIONS & CARDS GRID
   ============================================= */

.section {
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.cards-grid, .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--primary-red);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

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

.card p {
    color: var(--text-light);
    font-size: 0.9rem;
    flex: 1;
}

.card .btn {
    align-self: flex-start;
    margin-top: 1rem;
}

/* =============================================
   TOOL PAGE
   ============================================= */

.tool-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

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

.tool-header h1 {
    color: var(--primary-red);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.tool-form {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(227,10,23,0.1);
}

.form-group textarea { min-height: 100px; resize: vertical; }

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* =============================================
   OUTPUT
   ============================================= */

.output-section {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 2rem;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.output-content {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--radius);
    font-family: 'Courier New', monospace;
    line-height: 1.8;
    white-space: pre-wrap;
    min-height: 200px;
}

/* =============================================
   CONTENT PAGES (about, contact, privacy, etc.)
   ============================================= */

.content, .article {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
}

.content h1, .article h1 {
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.content h2, .article h2 {
    color: var(--text);
    margin: 2rem 0 0.75rem;
    font-size: 1.4rem;
}

.content h3, .article h3 {
    color: var(--text);
    margin: 1.5rem 0 0.5rem;
}

.content p, .article p {
    line-height: 1.8;
    margin: 0.75rem 0;
    color: var(--text);
}

.content ul, .content ol, .article ul, .article ol { margin: 1rem 0 1.5rem; }
.content li, .article li { margin: 0.5rem 0; }

.content form { margin-top: 1.5rem; }
.content input, .content textarea, .content select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    margin: 0.5rem 0;
    background: var(--white);
}
.content input:focus, .content textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(227,10,23,0.1);
}
.content button, .contact-form button {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}
.content button:hover, .contact-form button:hover {
    background: var(--dark-red);
}

/* =============================================
   BREADCRUMB
   ============================================= */

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}
.breadcrumb a { color: var(--primary-red); }

/* =============================================
   FOOTER
   ============================================= */

footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: auto;
}

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

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

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

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

.footer-section a { color: rgba(255,255,255,0.7); }
.footer-section a:hover { color: var(--white); text-decoration: none; }

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* =============================================
   404
   ============================================= */

.not-found {
    text-align: center;
    padding: 5rem 1.5rem;
}

.not-found h1 {
    font-size: 5rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.not-found h2 {
    color: var(--text);
    margin-bottom: 1.5rem;
}

.not-found .btn { display: inline-block; margin-top: 1.5rem; }

/* =============================================
   RELATED
   ============================================= */

.related {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-top: 3rem;
}

.related h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.related ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.related a {
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 0.9rem;
}

.related a:hover {
    border-color: var(--primary-red);
    background: var(--primary-red);
    color: var(--white);
    text-decoration: none;
}

/* =============================================
   ADSENSE
   ============================================= */

.ad-container { text-align: center; margin: 2rem 0; }

/* =============================================
   UTILITIES
   ============================================= */

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* =============================================
   MOBILE RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .header-content, .navbar-inner, .navbar .container {
        flex-wrap: wrap;
    }
    
    nav ul, .navbar-links, .navbar ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
        gap: 1rem;
    }
    
    nav ul.active, .navbar-links.active, .navbar ul.active {
        display: flex;
    }
    
    .mobile-menu { display: block; }
    
    .hero h1 { font-size: 1.8rem; }
    .hero { padding: 2.5rem 1.5rem; }
    
    .section { padding: 2.5rem 1rem; }
    .section-title { font-size: 1.6rem; }
    
    .cards-grid, .grid {
        grid-template-columns: 1fr;
    }
    
    .form-row { grid-template-columns: 1fr; }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .not-found h1 { font-size: 3.5rem; }
}

/* =============================================
   PRINT
   ============================================= */

@media print {
    header, footer, nav, .btn, .ad-container { display: none !important; }
    .output-content { border: 1px solid #ccc; padding: 0; }
}

/* Generator result */
.result-box {
    background: var(--light-gray);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1.5rem;
    min-height: 200px;
}
.result-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    line-height: 1.6;
}
.result-item:last-child { border-bottom: none; }
.result-item strong { color: var(--primary-red); }
.copy-btn {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
}
.copy-btn:hover { background: var(--dark-red); }
.generate-btn {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}
.generate-btn:hover { background: var(--dark-red); }
