/* ========== TRAFIKSIGORTA MOBİL OPTİMİZASYON ========== */

@media (max-width: 768px) {
    /* ========== PRICES SECTION ========== */
    .prices-section {
        padding: 16px;
        background: #f8fafc;
        margin: 20px 0;
        border-top: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
    }

    .prices-container {
        max-width: 100%;
        margin: 0;
    }

    /* Section Title */
    .prices-section .section-title {
        font-size: 20px;
        font-weight: 700;
        color: #1a202c;
        margin: 0 0 20px 0;
        text-align: center;
        padding: 0;
        display: block !important;
    }

    /* ========== TAB BUTTONS ========== */
    /* Tab Container */
    .prices-section > div:first-of-type,
    .prices-tabs-container {
        display: flex !important;
        justify-content: center;
        gap: 6px !important;
        margin: 16px 0 !important;
        border-bottom: 2px solid #e0e0e0 !important;
        padding-bottom: 0 !important;
        flex-wrap: wrap;
        overflow: hidden;
    }

    .price-tab {
        padding: 10px 6px !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        background: none !important;
        border: none !important;
        border-bottom: 3px solid transparent !important;
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap !important;
        line-height: 1.2;
        color: #718096 !important;
        flex: 1;
        min-width: 0;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    /* Coverage ve Limits tab'larını gizle mobilde */
    .price-tab[data-tab="coverage"],
    .price-tab[data-tab="limits"] {
        display: none !important;
    }

    .price-tab.active {
        color: #0066cc !important;
        border-bottom: 3px solid #0066cc !important;
    }

    .price-tab:active {
        opacity: 0.8;
    }

    /* ========== TAB CONTENT ========== */
    .tab-content {
        display: none !important;
        margin: 16px 0;
        padding: 12px 0;
        animation: fadeIn 0.3s ease;
    }

    #traffic-content {
        display: block !important;
    }

    /* Coverage ve Limits content'lerini gizle mobilde */
    #coverage-content,
    #limits-content {
        display: none !important;
    }

    #traffic-content[style*="display: none"],
    #coverage-content[style*="display: block"],
    #limits-content[style*="display: block"] {
        display: block !important;
    }

    .tab-content > div {
        margin: 0 !important;
        max-width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* ========== TABLE OPTIMIZATION ========== */
    .tab-content table {
        font-size: 11px !important;
        width: 100%;
        border-collapse: collapse;
        min-width: 280px;
    }

    .tab-content table thead {
        background: #f0f4f8;
        position: sticky;
        top: 0;
    }

    .tab-content table thead tr {
        border-bottom: 2px solid #cbd5e0 !important;
    }

    .tab-content table th {
        padding: 8px 6px !important;
        text-align: center;
        font-weight: 600;
        color: #1a202c;
        font-size: 10px !important;
        white-space: nowrap;
    }

    .tab-content table th:first-child {
        text-align: left;
    }

    .tab-content table td {
        padding: 8px 6px !important;
        font-size: 10px !important;
        color: #4a5568;
    }

    .tab-content table td:first-child {
        font-weight: 600;
        color: #1a202c;
    }

    .tab-content table tbody tr {
        border-bottom: 1px solid #e2e8f0 !important;
    }

    .tab-content table tbody tr:hover {
        background: #f7fafc;
    }

    /* Tablo satırlarında responsive padding */
    .tab-content table td,
    .tab-content table th {
        word-wrap: break-word;
    }

    /* ========== RESPONSIVE TABLOLAR ========== */
    /* Limits content tablosunda colspan uyarlaması */
    .tab-content table thead tr:last-child th {
        font-size: 9px !important;
        padding: 6px 4px !important;
    }

    .tab-content table tbody tr td:last-child {
        text-align: right;
    }

    /* Page Hero'yu Mobil Uyarla */
    .page-hero {
        padding: 0;
        background: white;
    }

    .page-hero-container {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }

    .page-hero-content {
        margin-bottom: 24px;
    }

    .page-hero-content h1 {
        font-size: 24px;
        font-weight: 700;
        color: #1a202c;
        margin: 0 0 12px 0;
        line-height: 1.3;
    }

    .page-hero-content p {
        font-size: 14px;
        color: #718096;
        margin: 0 0 16px 0;
        line-height: 1.6;
    }

    .hero-benefits {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .hero-benefits li {
        font-size: 13px;
        color: #4a5568;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: flex-start;
        gap: 10px;
        line-height: 1.5;
    }

    .hero-benefits li:before {
        content: '✓';
        color: #48bb78;
        font-weight: bold;
        flex-shrink: 0;
    }

    /* Form Uyarla */
    .page-hero-form {
        background: white;
        padding: 16px;
        border-radius: 8px;
        border: 1px solid #e0e0e0;
        width: 100% !important;
    }

    .page-hero-form h3 {
        font-size: 18px;
        font-weight: 600;
        color: #1a202c;
        margin: 0 0 8px 0;
    }

    .page-hero-form p {
        font-size: 12px;
        color: #718096;
        line-height: 1.5;
        margin: 0 0 16px 0;
    }

    .quote-form {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .form-group {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .form-group label {
        font-size: 12px;
        font-weight: 600;
        color: #1a202c;
    }

    .form-group input,
    .form-group select {
        padding: 12px;
        font-size: 14px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        font-family: inherit;
    }

    .form-submit-btn {
        padding: 12px;
        font-size: 14px;
        font-weight: 600;
        background: #0066cc;
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-top: 4px;
    }

    .form-submit-btn:active {
        background: #0052a3;
        transform: scale(0.98);
    }

    /* ========== FEATURES GRID CARDS ========== */
    /* 768px ve altı - 2 sütun */
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        margin-top: 24px !important;
    }

    div[style*="grid-template-columns: repeat(3, 1fr)"] > div {
        background: white !important;
        padding: 20px !important;
        border-radius: 10px !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
    }

    div[style*="grid-template-columns: repeat(3, 1fr)"] > div h3 {
        font-size: 15px !important;
        font-weight: 700 !important;
        margin-bottom: 10px !important;
        color: #1a202c !important;
    }

    div[style*="grid-template-columns: repeat(3, 1fr)"] > div p {
        font-size: 12px !important;
        line-height: 1.5 !important;
        color: #718096 !important;
    }
}

@media (max-width: 480px) {
    /* ========== PRICES SECTION 480px ========== */
    .prices-section {
        padding: 12px;
        margin: 16px 0;
    }

    .prices-section .section-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    /* Tab Buttons Kompakt */
    .prices-section > div:first-of-type,
    .prices-tabs-container {
        gap: 4px !important;
        margin: 12px 0 !important;
    }

    .price-tab {
        padding: 8px 4px !important;
        font-size: 9px !important;
        flex: 1;
        min-width: 0;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap !important;
    }

    /* Tab Content */
    .tab-content {
        margin: 12px 0;
        padding: 8px 0;
    }

    /* Table Optimization */
    .tab-content table {
        font-size: 9px !important;
        min-width: 250px;
    }

    .tab-content table th {
        padding: 6px 4px !important;
        font-size: 9px !important;
    }

    .tab-content table td {
        padding: 6px 4px !important;
        font-size: 9px !important;
    }

    .tab-content table th:first-child {
        padding: 6px 4px !important;
    }

    /* ========== PAGE HERO 480px ========== */
    .page-hero {
        padding: 16px;
    }

    .page-hero-content h1 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .page-hero-content p {
        font-size: 13px;
    }

    .hero-benefits li {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .page-hero-form {
        padding: 14px;
    }

    .page-hero-form h3 {
        font-size: 16px;
    }

    .page-hero-form p {
        font-size: 11px;
    }

    .quote-form {
        gap: 10px;
    }

    .form-group input {
        padding: 10px;
        font-size: 13px;
    }

    .form-submit-btn {
        padding: 10px;
        font-size: 13px;
    }

    /* ========== FEATURES GRID CARDS 480px ========== */
    /* 480px ve altı - 1 sütun */
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-top: 16px !important;
    }

    div[style*="grid-template-columns: repeat(3, 1fr)"] > div {
        background: white !important;
        padding: 16px !important;
        border-radius: 8px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    }

    div[style*="grid-template-columns: repeat(3, 1fr)"] > div h3 {
        font-size: 14px !important;
        font-weight: 700 !important;
        margin-bottom: 8px !important;
        color: #1a202c !important;
    }

    div[style*="grid-template-columns: repeat(3, 1fr)"] > div p {
        font-size: 11px !important;
        line-height: 1.4 !important;
        color: #718096 !important;
    }
}

@media (max-width: 360px) {
    /* ========== PRICES SECTION 360px ========== */
    .prices-section {
        padding: 10px;
        margin: 12px 0;
    }

    .prices-section .section-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    /* Tab Buttons Ultra Kompakt */
    .prices-section > div:first-of-type,
    .prices-tabs-container {
        gap: 2px !important;
        margin: 10px 0 !important;
    }

    .price-tab {
        padding: 6px 3px !important;
        font-size: 7px !important;
        flex: 1;
        min-width: 0;
        word-break: break-word;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap !important;
        line-height: 1;
    }

    /* Tab Content */
    .tab-content {
        margin: 10px 0;
        padding: 6px 0;
    }

    /* Table Ultra Kompakt */
    .tab-content table {
        font-size: 8px !important;
        min-width: 200px;
    }

    .tab-content table th {
        padding: 4px 2px !important;
        font-size: 8px !important;
    }

    .tab-content table td {
        padding: 4px 2px !important;
        font-size: 8px !important;
    }

    .tab-content table th:first-child {
        padding: 4px 2px !important;
    }

    /* Kaydırma göstergesi */
    .tab-content > div {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    /* ========== PAGE HERO 360px ========== */
    .page-hero {
        padding: 12px;
    }

    .page-hero-content h1 {
        font-size: 16px;
    }

    .page-hero-content p {
        font-size: 12px;
    }

    .hero-benefits li {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .page-hero-form {
        padding: 12px;
    }

    .page-hero-form h3 {
        font-size: 14px;
    }

    .form-submit-btn {
        padding: 9px;
        font-size: 12px;
    }

    /* ========== FEATURES GRID CARDS 360px ========== */
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-top: 12px !important;
    }

    div[style*="grid-template-columns: repeat(3, 1fr)"] > div {
        background: white !important;
        padding: 14px !important;
        border-radius: 8px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    }

    div[style*="grid-template-columns: repeat(3, 1fr)"] > div h3 {
        font-size: 13px !important;
        font-weight: 700 !important;
        margin-bottom: 6px !important;
        color: #1a202c !important;
    }

    div[style*="grid-template-columns: repeat(3, 1fr)"] > div p {
        font-size: 10px !important;
        line-height: 1.4 !important;
        color: #718096 !important;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
