/* ==========================================================================
   Responsive Kurallar — Mobil Öncelikli
   ========================================================================== */

/* ---------- Tablet (768px altı) ---------- */
@media (max-width: 767px) {
    .container {
        padding: 0 var(--space-4);
    }

    .section {
        padding: var(--space-12) 0;
    }

    /* Header */
    .main-nav,
    .header-right {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-cart-btn {
        display: flex;
    }

    /* Hero */
    .hero {
        padding: var(--space-12) 0;
    }

    .hero-inner {
        flex-direction: column-reverse;
        gap: var(--space-8);
        text-align: center;
    }

    .hero-photo-wrap {
        justify-content: center;
    }

    .hero-photo img {
        width: 200px;
        height: 200px;
    }

    .hero-title {
        min-height: 100px;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
    }

    /* Grids */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-list {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-brand {
        margin-bottom: var(--space-4);
        padding-bottom: var(--space-6);
        border-bottom: 1px solid var(--color-border);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    /* Footer brand line-break fix */
    .footer-brand p {
        font-size: 0.8125rem;
        line-height: 1.6;
    }

    .footer-copyright {
        font-size: 0.75rem;
        line-height: 1.5;
    }

    /* Mini Cart Drawer Mobile */
    #et-cart-drawer,
    .et-cart-drawer {
        max-width: 100%;
        width: 100%;
        right: -100%;
    }
    #et-cart-drawer.open { right: 0; }

    /* About */
    .about-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--space-6);
    }

    .about-avatar {
        width: 160px;
        height: 160px;
    }

    .about-social-links {
        justify-content: center;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-card {
        padding: var(--space-6);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Newsletter */
    .newsletter {
        padding: var(--space-16) 0;
    }

    .newsletter-form {
        flex-direction: column;
    }

    /* GitHub */
    .github-header {
        flex-direction: column;
        text-align: center;
        gap: var(--space-6);
    }

    /* Section top */
    .section-top {
        flex-direction: column;
        gap: var(--space-4);
        align-items: flex-start;
    }

    /* Brand Bar */
    .brand-logos {
        gap: var(--space-6);
    }
}

/* ---------- Desktop Medium (768px - 1023px) ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-photo img {
        width: 260px;
        height: 260px;
    }
}

/* ---------- Desktop Large (1024px+) ---------- */
@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-8);
    }

    .section {
        padding: var(--space-24) 0;
    }

    .hero {
        padding: var(--space-24) 0;
    }
}

/* ---------- Print ---------- */
@media print {
    .site-header,
    .mobile-nav,
    .menu-toggle,
    .footer-cta,
    .newsletter {
        display: none;
    }

    body {
        background: #fff;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
