/* ===================================
   huhubet.org - Modern CSS Stylesheet
   Color Scheme: Purple (#6b21a8)
   Responsive & SEO Optimized
   =================================== */

/* CSS Variables for easy customization */
:root {
    --primary-color: #6b21a8;
    --primary-dark: #4c1578;
    --primary-light: #8b2fcf;
    --secondary-color: #6b21a8;
    --accent-color: #a855f7;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background-light: #f9fafb;
    --background-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

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

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

.inline-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.inline-link:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

strong {
    font-weight: 600;
    color: var(--text-dark);
}

em {
    font-style: italic;
}

/* ===================================
   Layout Containers
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===================================
   Header Styles
   =================================== */
.age-warning {
    background-color: #dc2626;
    color: var(--background-white);
    text-align: center;
    padding: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.age-warning p {
    margin: 0;
    color: var(--background-white);
}

.site-header {
    background-color: var(--background-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
}

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

.logo-link {
    display: block;
    text-decoration: none;
}

.logo-image {
    height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: block;
}

.main-nav a:hover {
    background-color: var(--primary-color);
    color: var(--background-white);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: var(--hero-height, auto);
    min-height: 200px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid var(--primary-color);
}

.slider-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.slide-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-width: 100%;
}

/* Slider touch improvements */
.slider-container {
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

.slide-link {
    display: block;
    width: 100%;
    cursor: pointer;
    text-decoration: none;
}

.slider-link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Slider Dots Navigation */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background-color: var(--background-white);
    width: 30px;
    border-radius: 6px;
}

/* CTA Button (for other sections) */
.cta-button {
    display: inline-block;
    background-color: var(--background-white);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    color: var(--background-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ===================================
   Content Sections
   =================================== */
section {
    padding: 2.5rem 0;
    scroll-margin-top: 100px;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Content Cards */
.content-card {
    background-color: var(--background-white);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.content-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.content-card h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    position: relative;
    font-weight: 700;
}

.content-card h1::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.content-card h2 {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.content-card h3 {
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-card ul {
    list-style-position: inside;
    margin-left: 0.75rem;
}

.content-card li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    line-height: 1.6;
}

.content-card li::marker {
    color: var(--primary-color);
}

/* ===================================
   Blog Listing & Cards
   =================================== */
.blog-listing-section .section-title {
    margin-bottom: 0.75rem;
}

.blog-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.blog-subtitle {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.blog-subtitle:first-of-type {
    margin-top: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background-color: var(--background-white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.blog-card-inner {
    padding: 1.5rem;
}

.blog-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.blog-card-link {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.blog-card-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Blog single post (breadcrumb, back link) */
.blog-breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

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

.blog-breadcrumb a:hover {
    text-decoration: underline;
}

.blog-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Blog on homepage - vurgulu bölüm */
.blog-home-section {
    background: linear-gradient(180deg, rgba(107, 33, 168, 0.04) 0%, var(--background-light) 100%);
    padding: 2.5rem 0;
}

.blog-home-section .section-title {
    margin-bottom: 0.5rem;
}

.blog-grid-home {
    margin-top: 1rem;
}

.blog-cta-wrap {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 0;
}

.blog-cta-wrap .cta-button {
    display: inline-block;
}

/* Info Boxes */
.info-box {
    background: linear-gradient(135deg, rgba(107, 33, 168, 0.05) 0%, rgba(107, 33, 168, 0.05) 100%);
    padding: 1.25rem;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    border: 2px solid var(--accent-color);
}

.info-box h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.highlight-box {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
}

.highlight-box p {
    margin: 0;
    color: #92400e;
}

/* ===================================
   FAQ Section
   =================================== */
.faq-section {
    background-color: var(--background-white);
}

.faq-accordion {
    max-width: 100%;
}

.faq-item {
    background-color: var(--background-light);
    margin-bottom: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(107, 33, 168, 0.05);
}

.faq-question[aria-expanded="true"] {
    background-color: rgba(107, 33, 168, 0.1);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1rem;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 1rem 1rem 1rem;
}

.faq-answer p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===================================
   Footer
   =================================== */
.site-footer {
    background-color: var(--text-dark);
    color: var(--background-light);
    padding: 2rem 0 1rem;
    margin-top: 2.5rem;
}

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

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section p {
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

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

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

.footer-section a {
    color: #d1d5db;
    transition: color 0.3s ease;
}

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

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

.social-links li {
    margin-bottom: 0.5rem;
}

.social-links a {
    color: #d1d5db;
    transition: color 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

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

/* Tablet */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--background-white);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .main-nav.active {
        max-height: 500px;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 0.75rem;
        gap: 0;
    }
    
    .main-nav li {
        width: 100%;
    }
    
    .main-nav a {
        padding: 0.75rem;
        border-radius: 0.5rem;
        text-align: center;
        width: 100%;
    }
    
    
    .slider-dots {
        bottom: 15px;
        gap: 5px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
        border-width: 1.5px;
    }
    
    .dot.active {
        width: 20px;
    }
    
    .slide-image {
        max-width: 100%;
        height: auto;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .content-card {
        padding: 1.25rem;
    }
    
    .faq-item {
        margin-bottom: 0.75rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1rem 1rem 1rem;
    }
    
    .age-warning {
        font-size: 0.75rem;
        padding: 0.4rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.25rem;
    }
    
    .site-footer {
        padding: 1.5rem 0 0.75rem;
        margin-top: 2rem;
    }
    
    .footer-bottom {
        padding-top: 1rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .header-content {
        padding: 1rem 0;
    }
    
    .mobile-menu-toggle {
        padding: 0.25rem;
    }
    
    .mobile-menu-toggle span {
        width: 22px;
        height: 2.5px;
    }
    
    .main-nav ul {
        padding: 0.5rem;
    }
    
    .main-nav a {
        padding: 0.625rem;
        font-size: 0.9rem;
    }
    
    
    .slider-dots {
        bottom: 10px;
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 90%;
    }
    
    .dot {
        width: 6px;
        height: 6px;
        border-width: 1px;
    }
    
    .dot.active {
        width: 16px;
    }
    
    .slide-image {
        max-width: 100%;
        height: auto;
    }
    
    .hero-section {
        min-height: auto;
    }
    
    .cta-button {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 300px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .content-card {
        padding: 1.25rem;
    }
    
    .content-card h1 {
        font-size: 1.75rem;
        padding-bottom: 0.75rem;
    }
    
    .content-card h1::after {
        width: 100px;
    }
    
    .content-card h2 {
        font-size: 1.5rem;
    }
    
    .faq-item {
        margin-bottom: 0.5rem;
    }
    
    .faq-question {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .faq-icon {
        font-size: 1.1rem;
    }
    
    .faq-answer {
        padding: 0 0.75rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 0.75rem 0.75rem 0.75rem;
    }
    
    .faq-answer p {
        font-size: 0.875rem;
    }
    
    .age-warning {
        font-size: 0.7rem;
        padding: 0.35rem;
    }
    
    section {
        padding: 1.5rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .info-box {
        padding: 1rem;
    }
    
    .highlight-box {
        padding: 0.875rem;
    }
    
    .highlight-box {
        padding: 1.25rem;
    }
}

/* ===================================
   Performance Optimizations
   =================================== */

/* GPU Acceleration for animations */
.cta-button,
.content-card,
.faq-item {
    transform: translateZ(0);
    will-change: transform;
}

/* Touch-friendly improvements */
a, button {
    -webkit-tap-highlight-color: rgba(107, 33, 168, 0.2);
    tap-highlight-color: rgba(107, 33, 168, 0.2);
}

.cta-button {
    min-height: 44px;
    touch-action: manipulation;
}

.cta-button,
.mobile-menu-toggle {
    user-select: none;
    -webkit-user-select: none;
}

/* Reduce animations on low-end devices */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .site-header,
    .site-footer,
    .cta-button {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    .content-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ===================================
   Accessibility Improvements
   =================================== */

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #5b1890;
        --text-dark: #000000;
        --border-color: #000000;
    }
}

/* ===================================
   Mobile-Specific Improvements
   =================================== */

/* Prevent horizontal scroll on mobile */
body {
    overflow-x: hidden;
    width: 100%;
}

/* Improve tap targets on mobile */
@media (max-width: 768px) {
    .main-nav a,
    .cta-button {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
}