/* 
  Kaş Kalkan Yelken Spor Kulübü - Ana CSS
  Modern, Mobile-First, Vanilla CSS 
*/

:root {
    /* Color Palette */
    --primary-color: #0b2545; /* Deep Navy */
    --primary-light: #13315c;
    --secondary-color: #8da9c4; /* Soft Blue */
    --accent-color: #e63946; /* Vibrant Red for action */
    --bg-light: #f8f9fa;
    --text-dark: #333333;
    --text-light: #ffffff;
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    
    /* Transitions & Shadows */
    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px rgba(0,0,0,0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

ul {
    list-style: none;
}

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

/* Typography Classes */
h1, h2, h3, h4 {
    color: var(--primary-color);
    font-weight: 800;
    line-height: 1.2;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.btn-primary:hover {
    background-color: #d62828;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-insta {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.btn-insta:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}
.btn-whatsapp:hover {
    background-color: #128C7E;
}

/* Top Header */
.top-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

@media (min-width: 768px) {
    .top-header-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: var(--shadow-md);
    padding: 20px;
    gap: 15px;
    text-align: center;
}

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

.nav-links li a {
    font-weight: 600;
    color: var(--primary-color);
}

.nav-links li a:hover, .nav-links li a.active {
    color: var(--accent-color);
}

@media (min-width: 992px) {
    .menu-toggle { display: none; }
    .nav-links {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        box-shadow: none;
        padding: 0;
        background: transparent;
        align-items: center;
        gap: 30px;
    }
}

/* Mobile Menu Toggle */
.menu-toggle {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: url('../img/header2.jpg') center/cover no-repeat;
    background-color: var(--primary-color); /* Fallback */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(11, 37, 69, 0.9), rgba(11, 37, 69, 0.5));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--text-light);
    max-width: 600px;
}

.hero h1 {
    color: var(--text-light);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .hero h1 { font-size: 4rem; }
    .hero p { font-size: 1.25rem; }
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--accent-color);
    margin: 0 auto 20px;
    border-radius: 2px;
}

/* Cards (Branches & Announcements) */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .card-grid { grid-template-columns: repeat(4, 1fr); }
}

.card {
    background: var(--text-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.card-img {
    height: 200px;
    background-color: var(--secondary-color);
    background-size: cover;
    background-position: center;
}

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

.card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.card-text {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

/* Timeline / Calendar */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background-color: var(--primary-light);
}

@media (min-width: 768px) {
    .timeline::before { left: 50%; transform: translateX(-50%); }
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 60px;
}

@media (min-width: 768px) {
    .timeline-item {
        width: 50%;
        padding-left: 0;
        padding-right: 40px;
    }
    .timeline-item:nth-child(even) {
        margin-left: auto;
        padding-left: 40px;
        padding-right: 0;
    }
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 4px solid var(--text-light);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .timeline-dot { left: auto; right: -10px; }
    .timeline-item:nth-child(even) .timeline-dot { right: auto; left: -10px; }
}

.timeline-content {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.timeline-date {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: #555;
}

/* Announcements Grid */
.announcement-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 768px) {
    .announcement-grid { grid-template-columns: repeat(2, 1fr); }
}

.announcement-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.announcement-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.announcement-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 8px;
    display: block;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer-inner {
    display: grid;
    gap: 40px;
}

@media (min-width: 768px) {
    .footer-inner { grid-template-columns: repeat(3, 1fr); }
}

.footer-links ul li { margin-bottom: 8px; font-size: 0.95rem; }
.footer-links ul li a { opacity: 0.8; }
.footer-links ul li a:hover { opacity: 1; color: var(--accent-color); }

.footer-logo {
    height: 60px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-icon:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #ccc;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.cookie-content p {
    font-size: 0.9rem;
    margin: 0;
}

.cookie-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}
