/**
 * Sessiz Kahramanlar Atlası - Main Stylesheet
 * Mobile-first responsive design with Turkish flag elements
 */

/* ===========================
   Reset & Base Styles
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Turkish Flag Colors */
    --flag-red: #E30A17;
    --flag-white: #FFFFFF;

    /* Memorial Color Palette */
    --primary-color: #C9252D;
    --primary-dark: #9C1B21;
    --primary-light: #E34850;
    --secondary-color: #1E3A5F;
    --accent-gold: #D4AF37;
    --accent-bronze: #CD7F32;

    /* Text Colors */
    --text-color: #2C2C2C;
    --text-light: #5A5A5A;
    --text-muted: #888;

    /* Background Colors */
    --bg-color: #fff;
    --bg-light: #F7F7F7;
    --bg-cream: #FAF8F3;
    --bg-gray: #E8E8E8;

    /* Borders & Shadows */
    --border-color: #D5D5D5;
    --border-light: #E5E5E5;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.18);

    /* Border Radius */
    --radius: 12px;
    --radius-sm: 6px;
    --radius-lg: 16px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-cream);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(227, 10, 23, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(227, 10, 23, 0.03) 0%, transparent 50%);
}

/* ===========================
   Typography
   =========================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    color: var(--secondary-color);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.text-serif {
    font-family: 'Playfair Display', 'Georgia', serif;
}

.text-elegant {
    font-family: 'Merriweather', 'Georgia', serif;
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* ===========================
   Layout
   =========================== */

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

main {
    flex: 1;
    padding: 2rem 0;
}

/* ===========================
   Header - Sophisticated Turkish Flag Design
   =========================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-xl);
}

.site-header.scrolled .header-content {
    padding: 0.75rem 0;
}

.site-header.scrolled .site-title a {
    font-size: 1.4rem;
}

.site-header.scrolled .site-tagline {
    display: none;
}

.site-header.scrolled .flag-icon {
    transform: scale(0.85);
}

/* Turkish flag red stripe at top */
.header-flag-stripe {
    height: 8px;
    background: var(--flag-red);
    position: relative;
    overflow: hidden;
}

.header-flag-stripe::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* Main header section */
.header-main {
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    border-bottom: 1px solid var(--border-light);
}

.header-content {
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: nowrap;
}

/* Site branding with flag */
.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 1 auto;
    min-width: 0;
}

.flag-icon {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    transition: var(--transition);
}

.flag-icon:hover {
    transform: scale(1.05);
}

.site-title-wrapper {
    flex: 1;
}

.site-title {
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.site-title a {
    color: #8B1A1A !important;
    text-decoration: none !important;
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.01em;
    transition: var(--transition);
    display: inline-block;
}

.site-title a:hover {
    color: var(--flag-red) !important;
    transform: translateX(2px);
}

.site-tagline {
    margin: 0.25rem 0 0 0;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Mobile Menu Toggle Button - Icon Only */
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: var(--flag-red);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    width: 42px;
    height: 42px;
}

.mobile-menu-toggle:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.hamburger-icon {
    display: block;
    transition: var(--transition);
}

/* Hamburger animation when menu is open */
.mobile-menu-toggle.active .hamburger-icon {
    transform: rotate(90deg);
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    align-items: center;
}

.main-nav a {
    color: var(--text-color);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
    background: white;
    border: 2px solid var(--border-light);
    text-decoration: none;
    white-space: nowrap;
    height: 44px;
}

/* Home icon only - no text on desktop */
.main-nav a.home-only-icon {
    padding: 0.75rem;
    width: 44px;
    height: 44px;
}

.main-nav a .nav-icon-svg {
    display: block;
    flex-shrink: 0;
}

.main-nav a .nav-text-mobile {
    display: none;
}

.main-nav a:hover {
    background: var(--flag-red);
    color: white;
    border-color: var(--flag-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.main-nav a.active {
    background: var(--flag-red);
    color: white;
    border-color: var(--flag-red);
    font-weight: 600;
}

/* Search bar section */
.header-search-bar {
    background: var(--flag-red);
    padding: 1rem 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quick-search {
    max-width: 700px;
    margin: 0 auto;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.search-input-wrapper:focus-within {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.search-input-wrapper .search-icon {
    padding: 0 0 0 1.25rem;
    font-size: 1.2rem;
    opacity: 0.5;
}

.search-input-wrapper input[type="text"] {
    flex: 1;
    padding: 1rem 1rem;
    border: none;
    font-size: 1rem;
    background: transparent;
    color: var(--text-color);
}

.search-input-wrapper input[type="text"]::placeholder {
    color: var(--text-muted);
}

.search-input-wrapper input[type="text"]:focus {
    outline: none;
}

.search-input-wrapper button {
    background: #8B1A1A;
    color: white;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.search-input-wrapper button:hover {
    background: #6B1212;
}

/* Legacy styles for compatibility */
.header-search {
    padding: 1rem 0;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.search-box form {
    display: flex;
    width: 100%;
}

.search-box input[type="text"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    font-size: 1rem;
}

.search-box input[type="text"]:focus {
    outline: none;
}

.search-box button {
    background-color: var(--flag-red);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    flex-shrink: 0;
}

.search-box button:hover {
    background-color: var(--primary-dark);
}

/* ===========================
   Footer - Turkish Flag Theme with Dark Red
   =========================== */

.site-footer {
    background: linear-gradient(135deg, #6B1212 0%, #4A0C0C 100%);
    color: white;
    margin-top: auto;
    position: relative;
    border-top: 4px solid var(--accent-gold);
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background-image:
        radial-gradient(circle at 70% 50%, rgba(227, 10, 23, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.footer-content {
    padding: 3rem 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.footer-section h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-gold);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
    display: inline-block;
}

.footer-section a:hover {
    color: white;
    text-decoration: none;
    transform: translateX(3px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.25);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom .motto {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-gold);
    font-style: italic;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* App Store Badges */
.app-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.app-badge {
    display: inline-block;
    transition: var(--transition);
    border-radius: 5px;
    overflow: hidden;
}

.app-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.app-badge svg {
    display: block;
}

/* ===========================
   Buttons
   =========================== */

.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.btn-sm {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

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

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

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

.btn-block {
    display: block;
    width: 100%;
}

/* ===========================
   Cards & Grid
   =========================== */

.grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
    background: white;
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--flag-red), var(--primary-dark));
    opacity: 0;
    transition: var(--transition);
}

.card:hover::before {
    opacity: 1;
}

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

.card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

.card h3 a {
    color: var(--secondary-color);
    transition: var(--transition);
}

.card h3 a:hover {
    color: var(--primary-color);
}

.card .description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.no-data {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-style: italic;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* ===========================
   Cemetery & Martyr Cards
   =========================== */

.cemetery-card .description {
    min-height: 60px;
}

.martyr-card .martyr-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.martyr-info .rank {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-small);
    font-size: 0.875rem;
    font-weight: 600;
}

.martyr-info .unit {
    font-size: 0.875rem;
    color: var(--text-light);
}

.cemetery-ref {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0.75rem 0;
}

/* ===========================
   Page Headers & Sections
   =========================== */

.page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.page-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.125rem;
    margin: 0;
}

.breadcrumb {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb span {
    color: var(--text-light);
}

/* ===========================
   Detail Pages
   =========================== */

.detail-header {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.detail-header h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    color: var(--text-light);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9375rem;
}

.meta-item.rank {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-small);
    font-weight: 600;
}

.cemetery-info {
    font-size: 1rem;
    margin-top: 1rem;
}

.detail-section {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.detail-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-light);
}

.description-text {
    color: var(--text-color);
    line-height: 1.8;
}

/* ===========================
   Content Items (Biography)
   =========================== */

.content-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.content-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.content-item h3 {
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.content-text {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-style: italic;
}

/* ===========================
   Photo Gallery
   =========================== */

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.photo-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.photo-item:hover {
    box-shadow: var(--shadow-hover);
    transform: scale(1.05);
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.photo-caption {
    padding: 0.75rem;
    background: white;
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

/* ===========================
   Map Container
   =========================== */

.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    background-color: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* ===========================
   Martyrs List
   =========================== */

.martyrs-list {
    display: grid;
    gap: 1rem;
}

.martyr-item {
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.martyr-item:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-light);
}

.martyr-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.martyr-item .martyr-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ===========================
   Forms
   =========================== */

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

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

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

.form-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.comment-form {
    max-width: 600px;
}

/* ===========================
   Messages & Alerts
   =========================== */

.message {
    padding: 1rem;
    border-radius: var(--radius-small);
    margin: 1rem 0;
    display: none;
}

.message.show {
    display: block;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ===========================
   Empty States
   =========================== */

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.empty-state p {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* ===========================
   Pagination
   =========================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.pagination-info {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* ===========================
   Search Page
   =========================== */

.search-prompt {
    text-align: center;
    padding: 3rem 1rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.search-prompt p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.search-form-large {
    max-width: 600px;
    margin: 0 auto;
}

.search-box-large {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-box-large input[type="text"] {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
}

.search-box-large input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.search-section {
    margin-bottom: 3rem;
}

.search-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-light);
}

.search-again {
    text-align: center;
    margin: 2rem 0;
}

/* ===========================
   Homepage Specific - Premium Hero with Turkish Flag
   =========================== */

.hero-section {
    background: var(--flag-red);
    color: white;
    padding: 0;
    margin: 0 0 4rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(227, 10, 23, 0.25);
    border-radius: var(--radius);
}

/* Large crescent moon background */
.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 15%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle at 30% 50%, transparent 45%, rgba(255, 255, 255, 0.06) 45%, rgba(255, 255, 255, 0.06) 55%, transparent 55%);
    transform: translateY(-50%);
    z-index: 0;
}

/* Star decoration */
.hero-section::after {
    content: '★';
    position: absolute;
    top: 50%;
    left: 35%;
    font-size: 12rem;
    color: rgba(255, 255, 255, 0.04);
    transform: translateY(-50%) rotate(-12deg);
    z-index: 0;
    font-weight: 100;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 5rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(135deg,
        rgba(227, 10, 23, 0) 0%,
        rgba(156, 27, 33, 0.3) 50%,
        rgba(227, 10, 23, 0) 100%);
}

.hero-title {
    color: var(--accent-gold);
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    text-shadow: 2px 3px 8px rgba(0, 0, 0, 0.4);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: white;
    font-weight: 300;
    letter-spacing: 0.02em;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.8;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.hero-actions .btn {
    padding: 0;
    font-size: 1rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-width: 280px;
    text-align: left;
}

.hero-actions .btn .btn-icon {
    font-size: 2rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
}

.hero-actions .btn .btn-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.5rem 1.25rem 0;
}

.hero-actions .btn .btn-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
    display: block;
}

.hero-actions .btn .btn-desc {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.9;
    display: block;
}

.hero-actions .btn-hero-primary,
.hero-actions .btn-hero-secondary,
.hero-actions .btn-hero-tertiary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 3px solid white;
    backdrop-filter: blur(10px);
}

.hero-actions .btn-hero-primary .btn-icon,
.hero-actions .btn-hero-secondary .btn-icon,
.hero-actions .btn-hero-tertiary .btn-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.hero-actions .btn-hero-primary:hover,
.hero-actions .btn-hero-secondary:hover,
.hero-actions .btn-hero-tertiary:hover {
    background: white;
    color: #8B1A1A;
    border-color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero-actions .btn-hero-primary:hover .btn-icon,
.hero-actions .btn-hero-secondary:hover .btn-icon,
.hero-actions .btn-hero-tertiary:hover .btn-icon {
    background: #8B1A1A;
    color: white;
}

.hero-mobile-note {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-mobile-note p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.02em;
}

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

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

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

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

.hero-buttons .btn:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

.section {
    margin-bottom: 4rem;
    padding: 3rem 0;
}

.section-alt {
    background-color: white;
    padding: 3rem 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.05);
}

.section h2 {
    color: var(--primary-color);
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.section-footer {
    text-align: center;
    margin-top: 2.5rem;
}

.call-to-action {
    background: linear-gradient(135deg, var(--flag-red) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.call-to-action::before {
    content: '★';
    position: absolute;
    top: 20%;
    right: 10%;
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.05);
    transform: rotate(-15deg);
}

.call-to-action h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.call-to-action h2::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.call-to-action p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.home-section {
    margin-bottom: 3rem;
}

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

.section-header h2 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin: 0;
}

.section-header a {
    font-size: 0.9375rem;
    font-weight: 600;
}

.cta-section {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.cta-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* ===========================
   Responsive Design
   =========================== */

@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .search-box-large {
        flex-direction: row;
    }

    .search-box-large input[type="text"] {
        flex: 1;
    }

    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 767px) {
    .header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .site-branding {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 100%;
        order: 1;
    }

    .language-switcher {
        order: 2;
        margin-left: auto;
    }

    .mobile-menu-toggle {
        order: 3;
    }

    /* Show hamburger button on mobile only */
    .mobile-menu-toggle {
        display: flex !important;
    }

    /* Hide navigation by default on mobile */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--border-light);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000; /* Ensure menu appears above other content */
    }

    .main-nav.mobile-menu-open {
        max-height: 500px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
    }

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

    .main-nav a {
        width: 100%;
        justify-content: flex-start;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--border-light);
        padding: 1rem 1.5rem;
    }

    .main-nav a.home-only-icon {
        padding: 1rem 1.5rem;
        min-width: auto;
    }

    /* Show home text on mobile */
    .main-nav a .nav-text-mobile {
        display: inline;
        margin-left: 0.5rem;
    }

    .main-nav a:hover {
        transform: none;
        border-radius: 0;
    }
}

@media (max-width: 767px) {
    /* Header adjustments */
    .site-title a {
        font-size: 1rem !important;
        line-height: 1.3;
        display: inline-block;
        max-width: 150px; /* Force 2-line wrapping for both languages */
        white-space: normal;
        overflow-wrap: break-word;
    }

    .site-tagline {
        font-size: 0.7rem;
        display: none; /* Hide tagline on very small screens */
    }

    .site-branding {
        flex: 1 1 auto;
        max-width: calc(100% - 100px); /* Leave space for language switcher and menu */
    }

    .site-title-wrapper {
        min-width: 0; /* Allow text to shrink */
    }

    .flag-icon svg {
        width: 36px;
        height: 24px;
    }

    .header-content {
        padding: 1rem 0;
    }

    .header-main .container {
        position: relative;
    }

    /* Hide search icon on mobile */
    .search-input-wrapper .search-icon {
        display: none;
    }

    /* Search bar mobile */
    .search-input-wrapper {
        flex-direction: column;
    }

    .search-input-wrapper input[type="text"] {
        padding-left: 1rem;
    }

    .search-input-wrapper button {
        width: auto;
        min-width: 2.5rem;
        padding: 0.85rem;
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
    }

    .search-input-wrapper button .btn-text {
        display: none;
    }

    .search-input-wrapper button::after {
        content: "🔍";
        font-size: 1.2rem;
    }

    .search-input-wrapper {
        position: relative;
    }

    .search-input-wrapper input[type="text"] {
        padding-right: 3rem;
    }

    /* Hero mobile - Compact version */
    .hero-content {
        padding: 2rem 1rem;  /* Reduced from 3rem */
    }

    .hero-title {
        font-size: 1.5rem;  /* Reduced from 1.85rem */
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;  /* Reduced from 1.1rem */
        margin-bottom: 1.5rem;  /* Reduced spacing */
        line-height: 1.5;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;  /* Reduced from 1rem */
    }

    .hero-actions .btn {
        width: 100%;
        min-width: auto;
        padding: 0;
    }

    .hero-actions .btn .btn-icon {
        font-size: 1.5rem;  /* Reduced icon size */
        padding: 1rem;
        min-width: 55px;  /* Reduced from 70px */
    }

    .hero-actions .btn .btn-content {
        padding: 0.85rem 1rem 0.85rem 0;  /* Reduced padding */
    }

    .hero-actions .btn .btn-title {
        font-size: 1rem;  /* Reduced from 1.2rem */
    }

    .hero-actions .btn .btn-desc {
        font-size: 0.75rem;  /* Reduced from 0.85rem */
    }

    .hero-mobile-note {
        margin-top: 1.25rem;  /* Reduced from 2rem */
        padding-top: 1rem;  /* Reduced from 1.5rem */
    }

    .hero-mobile-note p {
        font-size: 0.8rem;  /* Reduced from 0.9rem */
    }

    /* Mobile menu toggle - compact icon-only button */
    .mobile-menu-toggle {
        width: 38px;
        height: 38px;
        padding: 0.45rem;
    }

    .hamburger-icon {
        width: 24px;
        height: 24px;
    }

    /* Sections mobile */
    .section {
        padding: 2rem 0;
    }

    .section h2 {
        font-size: 1.75rem;
    }

    .section-intro {
        font-size: 1rem;
    }

    .section-alt {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        padding: 2rem 0.5rem;
    }

    /* Detail pages */
    .detail-header {
        padding: 1.5rem;
    }

    .detail-section {
        padding: 1.5rem;
    }

    /* Cards */
    .grid {
        grid-template-columns: 1fr;
    }

    /* Legacy hero */
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.85rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .site-title a {
        font-size: 1.2rem !important;
    }

    .header-main {
        padding: 0;
    }

    .site-branding {
        gap: 0.75rem;
    }
}

/* ===========================
   Utility Classes
   =========================== */

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

.text-muted {
    color: var(--text-muted);
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}
