/* 
  Global Styles 
  Fonts: Inter (headings & UI), Playfair Display (accents/quotes)
  Colors: Light theme, primary blue/red for "Milliyetçi Fikir", clean grays.
*/

:root {
    --primary-color: #003366; /* Deep Blue */
    --secondary-color: #c41e3a; /* Cardinal Red */
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #f9f9fa;
    --bg-white: #ffffff;
    --border-color: #eaeaea;
    --font-main: 'Inter', sans-serif;
    --font-accent: 'Playfair Display', serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 30px rgba(0,0,0,0.12);
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--secondary-color);
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Top Bar */
.top-bar {
    background: var(--primary-color);
    color: rgba(255,255,255,0.8);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
}
.contact-info i {
    margin-right: 5px;
}

.social-links a {
    color: rgba(255,255,255,0.8);
    margin-left: 15px;
    font-size: 1rem;
}
.social-links a:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* Main Header */
.main-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.main-header .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    text-transform: uppercase;
}
.logo-subtext {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 10px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

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

/* Slider Section */
.hero-slider {
    position: relative;
    width: 100%;
    display: grid;
    background: #000;
}

.slide {
    grid-area: 1 / 1;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: relative;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-img {
    width: 100%;
    height: auto;
    display: block;
}

.slide-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%);
    text-align: center;
    color: #fff;
    width: 90%;
    z-index: 2;
    opacity: 0;
    transition: all 1s ease 0.5s;
}
.slide.active .slide-content {
    transform: translate(-50%, -50%);
    opacity: 1;
}

.slide-title {
    font-size: 3.5vw;
    font-family: var(--font-accent);
    margin-bottom: 1vw;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    color: #fff;
}
.slide-subtitle {
    font-size: 1.5vw;
    font-weight: 300;
    margin-bottom: 2vw;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.slider-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}
.slider-dot.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

/* Sections */
.section {
    padding: 80px 0;
}
.bg-light {
    background: var(--bg-color);
}
.bg-white {
    background: var(--bg-white);
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

/* Card Styles */
.card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.card-img {
    height: 250px;
    overflow: hidden;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.card:hover .card-img img {
    transform: scale(1.1);
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.card-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
}
.card-title a {
    color: var(--primary-color);
}
.card-title a:hover {
    color: var(--secondary-color);
}
.card-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}
.btn-read-more {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    align-self: flex-start;
}
.btn-read-more:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* Pages & Posts */
.page-header {
    background: var(--primary-color);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}
.page-title {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 10px;
}
.breadcrumb {
    color: rgba(255,255,255,0.7);
}
.breadcrumb a {
    color: #fff;
}

.content-area {
    padding: 60px 0;
}
.rich-text {
    font-size: 1.1rem;
    color: #444;
}
.rich-text p {
    margin-bottom: 20px;
}
.rich-text img {
    border-radius: 8px;
    margin: 20px 0;
}

/* Gallery / Lightbox */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
    cursor: pointer;
    position: relative;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}
.gallery-item::before {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}
.gallery-item:hover::after,
.gallery-item:hover::before {
    opacity: 1;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}
.contact-info-box {
    background: var(--primary-color);
    color: #fff;
    padding: 40px;
    border-radius: 12px;
}
.contact-info-box h3 {
    color: #fff;
    margin-bottom: 30px;
}
.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}
.contact-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}
.form-group {
    margin-bottom: 20px;
}
.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: border-color 0.3s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}
textarea.form-control {
    height: 150px;
    resize: vertical;
}
.btn-submit {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-submit:hover {
    background: #a0152b;
}

/* Footer */
.site-footer {
    background: #111;
    color: #bbb;
    padding: 80px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}
.widget-title {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}
.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 3px;
    background: var(--secondary-color);
}
.footer-widget ul {
    list-style: none;
}
.footer-widget ul li {
    margin-bottom: 12px;
}
.footer-widget a {
    color: #bbb;
}
.footer-widget a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}
.contact-list li {
    display: flex;
    gap: 15px;
}
.contact-list i {
    color: var(--secondary-color);
    margin-top: 5px;
}
.footer-bottom {
    background: #000;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #222;
}

/* Responsive */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        display: none;
        flex-direction: column;
        padding: 20px;
    }
    .main-nav.active {
        display: flex;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    .mobile-menu-btn { display: block; }
    
    .grid-3, .grid-2, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .slide-title { font-size: 6vw; }
    .slide-subtitle { font-size: 3.5vw; }
}
