/**
 * Giresun Köy Web Sitesi - Ana Stil Dosyası
 * Modern, responsive, mobil öncelikli tasarım
 */

/* ========================================
   CSS Değişkenler
   ======================================== */
:root {
    --primary: #1a5e3a;
    --primary-light: #2d8c5a;
    --primary-dark: #0e3d24;
    --primary-gradient: linear-gradient(135deg, #1a5e3a 0%, #2d8c5a 50%, #48a06e 100%);
    --accent: #d4a853;
    --accent-light: #e8c77b;
    --bg-light: #f8faf9;
    --bg-white: #ffffff;
    --text-dark: #1a1a2e;
    --text-body: #4a4a5a;
    --text-muted: #8a8a9a;
    --border-color: #e8ece9;
    --shadow-sm: 0 2px 8px rgba(26, 94, 58, 0.08);
    --shadow-md: 0 4px 20px rgba(26, 94, 58, 0.12);
    --shadow-lg: 0 8px 40px rgba(26, 94, 58, 0.16);
    --shadow-xl: 0 20px 60px rgba(26, 94, 58, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

/* ========================================
   Global Reset & Base
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-body);
    background: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
}

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

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--primary);
    color: #fff;
}

/* ========================================
   Navbar
   ======================================== */
#mainNavbar {
    background: rgba(26, 94, 58, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1050;
}

#mainNavbar.scrolled {
    background: rgba(14, 61, 36, 0.98);
    padding: 8px 0;
    box-shadow: var(--shadow-lg);
}

.navbar-logo {
    height: 40px;
    width: auto;
    border-radius: var(--radius-sm);
}

.brand-icon {
    font-size: 1.8rem;
    color: var(--accent);
}

.brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ========================================
   Hero Slider
   ======================================== */
.hero-slider {
    margin-top: 0;
    position: relative;
}

.hero-slider .carousel-item {
    height: 85vh;
    min-height: 500px;
    max-height: 800px;
}

.hero-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.hero-slider .carousel-caption {
    bottom: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.hero-slider .carousel-caption h2 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 4px 20px rgba(0,0,0,0.4);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-slider .carousel-caption p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-bottom: 30px;
    text-shadow: 1px 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-slider .btn-hero {
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    background: var(--primary-gradient);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out 0.4s both;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-slider .btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 94, 58, 0.4);
    background: var(--primary-light);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-slider .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    transition: var(--transition);
}

.hero-slider .carousel-indicators .active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.2);
}

/* Slider placeholder when no image */
.slider-placeholder {
    height: 85vh;
    min-height: 500px;
    max-height: 800px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

/* ========================================
   Section Styling
   ======================================== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-white);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 20px auto 0;
}

/* ========================================
   News Cards
   ======================================== */
.news-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.news-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.news-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.news-card .card-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: #fff;
    padding: 4px 14px;
    border-radius: var(--radius-xl);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card .card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card .card-date {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-card .card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card .card-title a {
    color: inherit;
}

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

.news-card .card-text {
    color: var(--text-body);
    font-size: 0.92rem;
    flex-grow: 1;
    margin-bottom: 16px;
}

.news-card .btn-read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    align-self: flex-start;
}

.news-card .btn-read-more:hover {
    gap: 10px;
    color: var(--primary-dark);
}

/* ========================================
   Announcement Cards
   ======================================== */
.announcement-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    height: 100%;
}

.announcement-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.announcement-card.pinned {
    border-left: 4px solid var(--accent);
    background: linear-gradient(135deg, #fffdf5, #fff);
}

.announcement-card .pin-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--accent);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.announcement-card .ann-date {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.announcement-card h5 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.announcement-card h5 a {
    color: var(--text-dark);
}

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

.announcement-card p {
    color: var(--text-body);
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* ========================================
   Team Cards
   ======================================== */
.team-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border-color);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.team-card .team-photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-photo {
    transform: scale(1.05);
}

.team-card .team-photo-wrapper {
    overflow: hidden;
    position: relative;
}

.team-card .team-photo-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--bg-white));
}

.team-card .team-info {
    padding: 20px 24px 28px;
}

.team-card .team-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.team-card .team-title {
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.team-card .team-desc {
    color: var(--text-body);
    font-size: 0.88rem;
    margin-bottom: 14px;
}

.team-card .team-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-muted);
    margin: 0 4px;
    transition: var(--transition);
}

.team-card .team-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ========================================
   About Page
   ======================================== */
.about-section {
    padding: 100px 0 80px;
}

.about-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-body);
}

.about-content p {
    margin-bottom: 18px;
}

.about-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* ========================================
   Page Banner
   ======================================== */
.page-banner {
    background: var(--primary-gradient);
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.page-banner h1 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.page-banner .breadcrumb {
    justify-content: center;
    position: relative;
    z-index: 1;
}

.page-banner .breadcrumb-item,
.page-banner .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
}

.page-banner .breadcrumb-item.active {
    color: var(--accent-light);
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   Detail Page
   ======================================== */
.detail-page {
    padding: 40px 0 80px;
}

.detail-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.detail-content .detail-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 30px;
}

.detail-content .detail-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.detail-content .detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.detail-content .detail-meta span {
    color: var(--text-muted);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-content h1 {
    font-size: 2rem;
    margin-bottom: 24px;
}

.detail-content .content-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-body);
}

.detail-content .content-body p {
    margin-bottom: 16px;
}

.detail-content .content-body img {
    border-radius: var(--radius-md);
    margin: 20px 0;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.7);
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-brand-icon {
    font-size: 2.5rem;
    color: var(--accent);
    display: block;
    margin-bottom: 12px;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.footer-top h5 {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    font-size: 1.1rem;
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-title {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 0.7rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

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

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.footer-contact li i {
    color: var(--accent);
    font-size: 1rem;
    margin-top: 3px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.agency-credit a {
    color: var(--accent);
    font-weight: 600;
}

.agency-credit a:hover {
    color: var(--accent-light);
}

/* ========================================
   Back to Top
   ======================================== */
.btn-back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.btn-back-top.visible {
    opacity: 1;
    visibility: visible;
}

.btn-back-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   Flash Alert
   ======================================== */
.flash-alert {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1060;
    min-width: 300px;
    max-width: 450px;
    border-radius: var(--radius-md);
    animation: slideInRight 0.4s ease;
}

/* ========================================
   Placeholder / Empty State
   ======================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--border-color);
}

.empty-state h5 {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
}

/* ========================================
   Btn Custom
   ======================================== */
.btn-primary-custom {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-xl);
    padding: 12px 30px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #fff;
    background: var(--primary-light);
}

.btn-outline-custom {
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-xl);
    padding: 10px 28px;
    font-weight: 600;
    background: transparent;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ========================================
   View All Link
   ======================================== */
.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.view-all-link:hover {
    gap: 12px;
    color: var(--primary-dark);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 991.98px) {
    .hero-slider .carousel-item {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-slider .carousel-caption h2 {
        font-size: 2.2rem;
    }
    
    .hero-slider .carousel-caption p {
        font-size: 1rem;
    }
    
    .page-banner {
        padding: 120px 0 40px;
    }
    
    .page-banner h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .navbar-collapse {
        background: var(--primary-dark);
        border-radius: var(--radius-md);
        padding: 16px;
        margin-top: 10px;
    }
}

@media (max-width: 767.98px) {
    .hero-slider .carousel-item {
        height: 50vh;
        min-height: 350px;
    }
    
    .hero-slider .carousel-caption h2 {
        font-size: 1.6rem;
    }
    
    .hero-slider .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .detail-content {
        padding: 24px;
    }
    
    .detail-content h1 {
        font-size: 1.5rem;
    }
    
    .footer-top {
        padding: 40px 0 20px;
    }
    
    .page-banner {
        padding: 110px 0 30px;
    }
    
    .page-banner h1 {
        font-size: 1.6rem;
    }
}
