/* DNSKit.Net - Mobile Specific Styles */

/* ================================
   MOBILE MENU FIX
================================ */
@media (max-width: 900px) {

    /* Ensure menu starts collapsed */
    /* Ensure menu starts collapsed */
    .main-menu {
        display: none !important;
    }

    .main-nav.active .main-menu {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Dropdown content should be hidden by default on mobile */
    .dropdown-content {
        display: none;
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background: var(--bg-body);
        padding: 0;
        margin: 0;
    }

    .dropdown.dropdown-open>.dropdown-content {
        display: block;
    }
}

/* ================================
   FOOTER ACCORDION (MOBILE)
================================ */
@media (max-width: 768px) {

    /* Disable sticky footer on mobile to save space */
    .main-footer {
        position: static;
        padding: 1.5rem 0;
    }

    body {
        padding-bottom: 0;
    }

    .footer-links {
        display: block;
        width: 100%;
    }

    .footer-section {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding: 0.75rem 0;
    }

    .footer-section-title {
        display: flex !important;
        /* Mobilde zorla göster */
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        font-weight: 600;
        color: var(--text-main);
        padding: 0.5rem 0;
        user-select: none;
    }

    .footer-section-title::after {
        content: '▼';
        font-size: 0.7rem;
        transition: transform 0.3s ease;
        color: var(--text-muted);
    }

    .footer-section.active .footer-section-title::after {
        transform: rotate(180deg);
    }

    .footer-section-links {
        display: block !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .footer-section.active .footer-section-links {
        max-height: 500px;
        /* Increased for tool lists */
        padding-top: 0.5rem;
    }

    .footer-section-links a {
        display: block;
        padding: 0.5rem 0;
        color: var(--text-muted);
        font-size: 0.85rem;
    }

    /* Show mobile-only footer nav */
    .footer-mobile-nav {
        display: block !important;
    }
}

/* ================================
   HORIZONTAL SCROLLABLE TOOL PILLS
================================ */
@media (max-width: 768px) {
    .tool-links {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0.5rem;
        padding: 0.5rem 0;
        margin-top: 1rem;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }

    .tool-links::-webkit-scrollbar {
        height: 4px;
    }

    .tool-links::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 2px;
    }

    .tool-links::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 2px;
    }

    .tool-pill {
        flex-shrink: 0;
        white-space: nowrap;
        scroll-snap-align: start;
    }
}

/* ================================
   GENERAL MOBILE OPTIMIZATIONS
================================ */
@media (max-width: 768px) {

    /* Reduce padding on containers */
    .container {
        padding: 0 1rem;
    }

    /* Make cards more compact */
    .info-item,
    .tool-card-static {
        padding: 1rem;
    }

    /* Smaller headings on mobile */
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    /* Adjust search wrapper */
    .search-wrapper {
        padding: 1.5rem 1rem;
    }

    .search-title {
        font-size: 1.3rem;
    }

    .search-desc {
        font-size: 0.9rem;
    }
}