/* ============================================
   Doganci Is Insanlari Platformu - Ana Stil Dosyasi
   Tum sayfalar bu dosyayi kullanir.
   ============================================ */

/* --- CSS VARIABLES --- */
:root {
    --primary-color: #e05a00;
    --primary-dark: #c74f00;
    --primary-light: #ff6b1a;
    --background-color: #f5f5f5;
    --card-background: #ffffff;
    --text-color: #333;
    --text-secondary: #666;
    --text-light: #999;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- NAVBAR (Tum sayfalar icin ortak) --- */
.navbar {
    background: var(--card-background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background: rgba(224, 90, 0, 0.08);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-background);
        flex-direction: column;
        padding: 15px 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        gap: 4px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 16px;
        width: 100%;
    }

    .navbar-container {
        position: relative;
    }
}

/* --- HERO SECTION (index.html) --- */
.hero {
    text-align: center;
    padding: 100px 20px;
    max-width: 100%;
    margin: 0 auto;
    background: url('../images/hero-bg.webp') center/cover no-repeat;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.55);
    padding: 14px 30px;
    border-radius: 12px;
    display: inline-block;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.55);
    padding: 10px 24px;
    border-radius: 10px;
    display: inline-block;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.55);
    padding: 16px 28px;
    border-radius: 12px;
}

.btn {
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(224, 90, 0, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Features */
.features {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.feature-card {
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    width: 60px;
    height: 60px;
}

.feature-card h3 {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

/* Stats */
.stats {
    background: white;
    padding: 40px 20px;
    margin: 30px 0;
}

.stats-container {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: center;
}

.stat-item h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: #222;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer p {
    margin: 10px 0;
}

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

.footer a:hover {
    text-decoration: underline;
}

.footer-contact {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
        min-height: 350px;
    }

    .hero h1 {
        font-size: 2rem;
        padding: 12px 20px;
    }

    .hero p {
        font-size: 1rem;
        padding: 8px 18px;
    }

    .cta-buttons {
        padding: 12px 18px;
    }
}

/* --- PAGE LAYOUT (members.html, news.html) --- */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.back-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--primary-dark);
}

.page-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-color);
    background-color: var(--card-background);
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(224, 90, 0, 0.15);
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* --- SEARCH & FILTER --- */
.search-filter-container {
    max-width: 900px;
    margin: 0 auto 30px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 2;
    min-width: 250px;
}

.filter-box {
    flex: 1;
    min-width: 180px;
}

.search-input,
.filter-select {
    width: 100%;
    padding: 13px 16px;
    font-size: 0.95rem;
    font-family: var(--font-family);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-background);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(224, 90, 0, 0.1);
}

.search-input::placeholder {
    color: var(--text-light);
}

.filter-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.result-counter {
    white-space: nowrap;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.result-counter span {
    font-weight: 700;
    color: var(--primary-color);
}

@media (max-width: 600px) {
    .search-filter-container {
        flex-direction: column;
        align-items: stretch;
    }

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

/* --- MEMBERS LIST --- */
.members-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.member-card {
    background: var(--card-background);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.member-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #eee;
}

.member-photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
}

.member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.member-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #222;
}

.member-profession {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 600;
}

.member-detail {
    font-size: 0.88rem;
    color: #777;
}

.member-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.phone-link,
.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.phone-link {
    color: var(--primary-color);
    background: rgba(224, 90, 0, 0.08);
}

.phone-link:hover {
    background: rgba(224, 90, 0, 0.15);
    color: var(--primary-dark);
}

.whatsapp-link {
    color: #25D366;
    background: rgba(37, 211, 102, 0.08);
}

.whatsapp-link:hover {
    background: rgba(37, 211, 102, 0.15);
    color: #1DA851;
}

.whatsapp-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 1rem;
}

@media (max-width: 600px) {
    .page-title {
        font-size: 1.8rem;
    }

    .member-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .phone-link {
        justify-content: center;
    }
}

/* --- NEWS FILTER --- */
.news-filter-container {
    max-width: 900px;
    margin: 0 auto 30px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.news-filter-container .filter-box {
    flex: 1;
    min-width: 160px;
}

.news-filter-container .result-counter {
    white-space: nowrap;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.news-filter-container .result-counter span {
    font-weight: 700;
    color: var(--primary-color);
}

@media (max-width: 600px) {
    .news-filter-container {
        flex-direction: column;
        align-items: stretch;
    }

    .news-filter-container .result-counter {
        text-align: center;
    }
}

/* News category badge */
.news-category-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(224, 90, 0, 0.1);
    color: var(--primary-color);
    margin-bottom: 8px;
}

/* --- NEWS GRID --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.news-card {
    background: var(--card-background);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #e0e0e0;
}

.news-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.news-content {
    padding: 25px;
}

.news-card h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.no-news {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-news span {
    font-size: 64px;
    display: block;
    margin-bottom: 15px;
}

@media (max-width: 640px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* --- PAGINATION --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 30px auto;
    flex-wrap: wrap;
    max-width: 900px;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-background);
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
}

.page-btn:hover:not(.disabled):not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(224, 90, 0, 0.05);
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}

/* --- ACCESSIBILITY --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip Navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- RESPONSIVE EXTRAS --- */
@media (max-width: 320px) {
    .page-container {
        padding: 15px;
    }

    .member-card,
    .news-content {
        padding: 15px;
    }
}

/* --- PWA INSTALL BANNER --- */
.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-background);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.pwa-install-banner.show {
    transform: translateY(0);
}

.pwa-install-banner .pwa-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.pwa-install-banner .pwa-text {
    flex: 1;
}

.pwa-install-banner .pwa-text p {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2px;
}

.pwa-install-banner .pwa-text small {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pwa-install-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s;
}

.pwa-install-btn:hover {
    background: var(--primary-dark);
}

.pwa-dismiss-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    flex-shrink: 0;
}

/* iOS talimat modal */
.pwa-ios-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.pwa-ios-modal.show {
    display: flex;
}

.pwa-ios-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 340px;
    width: 90%;
    text-align: center;
}

.pwa-ios-content h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.pwa-ios-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.pwa-ios-content .pwa-install-btn {
    width: 100%;
}

/* Safari uyarisi - iOS + Chrome/Firefox/Edge */
.safari-warning .pwa-icon {
    font-size: 28px;
}

.safari-warning .pwa-text small {
    line-height: 1.5;
}

.safari-warning .pwa-text small strong {
    color: var(--primary-color);
}
