/**
 * WebHazir.com - Mobil Responsive CSS
 * Tum sayfalarda ortak kullanilan mobil duzeltmeleri
 */

/* ==========================================================================
   GENEL MOBIL IYILESTIRMELER
   ========================================================================== */

@media (max-width: 768px) {
    /* Touch-friendly butonlar */
    button, .btn, a.btn, input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }

    /* Daha iyi okunabilirlik */
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Input zoom engelleme */
    input, select, textarea {
        font-size: 16px !important;
    }

    /* Tasmalari engelle */
    * {
        max-width: 100%;
    }

    img {
        height: auto;
    }

    /* Smooth scroll */
    html {
        scroll-behavior: smooth;
    }

    /* Safe area (notch) destegi */
    .header, .footer, .mobile-menu {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    /* Container padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ==========================================================================
   HEADER & NAVIGASYON
   ========================================================================== */

@media (max-width: 768px) {
    .header {
        padding: 10px 15px;
    }

    .header-inner {
        padding: 12px 15px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .header-buttons {
        display: none;
    }

    /* Mobile Menu */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        z-index: 1001;
        padding: 80px 20px 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .mobile-menu.active {
        transform: translateX(0);
    }

    .mobile-menu a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid #eee;
        color: var(--dark);
    }

    .mobile-menu .btn {
        width: 100%;
        margin-top: 15px;
        text-align: center;
        justify-content: center;
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero-content {
        padding: 80px 0 40px;
        gap: 30px;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .hero-buttons .btn,
    .hero-buttons .btn-hero {
        width: 100%;
        padding: 14px 20px;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .stat-item {
        text-align: center;
        min-width: 80px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .hero-visual {
        max-width: 100%;
    }

    .hero-mockup {
        transform: none;
    }

    .hero-mockup iframe {
        height: 300px;
    }

    .floating-badge {
        display: none;
    }
}

/* ==========================================================================
   KATEGORI KARTLARI
   ========================================================================== */

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 10px;
    }

    .category-card {
        padding: 15px 10px;
    }

    .category-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .category-card h3,
    .category-card h4 {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .category-card span {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

/* ==========================================================================
   SEKTOR KARTLARI
   ========================================================================== */

@media (max-width: 768px) {
    .sectors-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        padding: 0 5px;
    }

    .sector-card {
        padding: 15px 10px;
        text-align: center;
    }

    .sector-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .sector-card h4 {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .sector-actions {
        flex-direction: column;
        gap: 8px;
    }

    .sector-actions .btn {
        font-size: 0.75rem;
        padding: 8px 12px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .sectors-grid {
        grid-template-columns: 1fr !important;
    }

    .sector-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 15px;
        text-align: left;
        padding: 15px;
    }

    .sector-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .sector-card h4 {
        flex: 1;
        margin-bottom: 0;
    }

    .sector-actions {
        flex-direction: row;
        gap: 8px;
        margin-top: 0;
        flex-wrap: wrap;
    }

    .sector-actions .btn {
        width: auto;
        padding: 8px 10px;
    }
}

/* ==========================================================================
   DEMO ONIZLEME MODALI
   ========================================================================== */

@media (max-width: 768px) {
    .demo-modal {
        padding: 0;
    }

    .demo-modal-content {
        width: 100%;
        height: 100%;
        max-width: 100vw;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .demo-modal-header {
        padding: 15px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .demo-modal-header h3 {
        font-size: 1rem;
        flex: 1;
        min-width: 0;
    }

    .demo-modal-close {
        width: 36px;
        height: 36px;
    }

    .demo-modal-body {
        flex-direction: column;
        overflow-y: auto;
    }

    .demo-preview {
        flex: none;
        height: 40vh;
        min-height: 250px;
    }

    .demo-preview iframe {
        transform: scale(0.6);
        transform-origin: top left;
        width: 166.67%;
        height: 166.67%;
        min-height: 0;
    }

    .demo-sidebar {
        width: 100%;
        padding: 20px 15px;
        border-left: none;
        border-top: 1px solid var(--gray-200);
        flex: 1;
        overflow-y: auto;
    }

    .demo-sidebar h4 {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
}

/* ==========================================================================
   RENK SECICI (Modal icinde)
   ========================================================================== */

@media (max-width: 768px) {
    .color-picker,
    .color-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
        padding: 5px;
    }

    .color-option,
    .color-btn {
        width: 100%;
        aspect-ratio: 1;
        min-width: 36px;
        min-height: 36px;
        max-width: 50px;
        max-height: 50px;
        border-radius: 8px;
        border: 2px solid transparent;
        cursor: pointer;
        transition: transform 0.2s;
    }

    .color-option.active,
    .color-btn.active {
        border-color: #333;
        transform: scale(1.05);
    }

    .color-option:active,
    .color-btn:active {
        transform: scale(0.95);
    }

    .color-label {
        font-size: 0.65rem;
        margin-top: 3px;
    }

    /* Ozel renk secici */
    .custom-color,
    .custom-color-input {
        margin-bottom: 15px;
    }

    .custom-color input[type="color"],
    .custom-color-input input[type="color"] {
        width: 100%;
        height: 45px;
    }

    /* Secili renk onizleme */
    .selected-color-preview,
    .selected-color-display {
        padding: 12px;
        gap: 10px;
    }

    .color-swatch,
    .color-preview {
        width: 35px;
        height: 35px;
    }

    .selected-color-info .name,
    .color-info .name {
        font-size: 0.9rem;
    }

    .selected-color-info .hex,
    .color-info .hex {
        font-size: 0.8rem;
    }

    /* Modal butonlari */
    .demo-buy-btn {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
    }

    .demo-external-link {
        display: block;
        text-align: center;
        margin-top: 12px;
        padding: 12px;
    }
}

/* ==========================================================================
   FIYATLANDIRMA KARTLARI
   ========================================================================== */

@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
    }

    .pricing-card.popular {
        transform: none;
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        padding: 0 15px;
    }

    .pricing-card {
        padding: 25px 20px;
    }

    .pricing-card.featured {
        transform: none;
        margin: 10px 0;
    }

    .pricing-card h3 {
        font-size: 1.3rem;
    }

    .price .amount {
        font-size: 2.5rem;
    }

    .pricing-features li {
        padding: 12px 0;
        font-size: 0.9rem;
    }

    .pricing-card .btn {
        width: 100%;
        padding: 14px;
    }

    /* Toggle */
    .pricing-toggle {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .pricing-toggle span {
        font-size: 0.9rem;
    }

    .discount-badge {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
}

/* ==========================================================================
   SIPARIS ADIMLARI
   ========================================================================== */

@media (max-width: 768px) {
    .order-page {
        padding-top: 80px;
    }

    .order-container {
        padding: 20px 15px 40px;
    }

    /* Progress Bar */
    .progress-bar {
        overflow-x: auto;
        padding: 10px 0;
        margin-bottom: 30px;
        -webkit-overflow-scrolling: touch;
    }

    .progress-bar::before {
        display: none;
    }

    .progress-step {
        min-width: 50px;
        max-width: 60px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .step-label {
        font-size: 0.65rem;
        display: block;
    }

    /* Step Content */
    .step-content {
        padding: 20px 15px;
        min-height: auto;
        border-radius: 16px;
    }

    .step-header {
        margin-bottom: 25px;
    }

    .step-header h2 {
        font-size: 1.4rem;
    }

    .step-header p {
        font-size: 0.95rem;
    }

    /* Form */
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px 14px;
    }

    /* Tema Preview */
    .theme-preview-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .theme-preview {
        min-height: 300px;
        border-radius: 12px;
    }

    .theme-preview iframe {
        min-height: 300px;
    }

    .theme-sidebar {
        padding: 20px 15px;
        border-radius: 12px;
    }

    /* Packages */
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .package-card {
        padding: 25px 20px;
    }

    .package-card.popular {
        transform: none;
    }

    .package-price {
        font-size: 2rem;
    }

    /* Billing Toggle */
    .billing-toggle {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Navigation */
    .step-navigation {
        flex-direction: column-reverse;
        gap: 12px;
        margin-top: 25px;
        padding-top: 25px;
    }

    .btn-back,
    .btn-next {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    /* Domain Options */
    .domain-option {
        padding: 20px 15px;
    }

    .domain-option-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .domain-option-header .icon {
        width: 40px;
        height: 40px;
    }

    .domain-option-header h4 {
        font-size: 1rem;
    }

    .domain-option p {
        padding-left: 0;
        margin-top: 10px;
    }

    .subdomain-input {
        padding-left: 0;
        flex-direction: column;
    }

    .subdomain-input input {
        border-radius: 10px;
        border-right: 2px solid var(--gray-200);
        margin-bottom: 8px;
    }

    .subdomain-input span {
        border-radius: 10px;
        text-align: center;
    }

    /* Order Summary */
    .summary-card {
        padding: 20px 15px;
    }

    .summary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 10px 0;
    }

    .summary-row .label {
        font-size: 0.85rem;
    }

    .summary-row .value {
        font-size: 0.95rem;
    }

    .coupon-input {
        flex-direction: column;
        gap: 10px;
    }

    .coupon-input input,
    .coupon-input button {
        width: 100%;
    }

    .total-section {
        padding: 20px;
    }

    .total-row .amount {
        font-size: 1.6rem;
    }
}

/* ==========================================================================
   KATEGORI FILTRELERI
   ========================================================================== */

@media (max-width: 768px) {
    .category-filters,
    .category-tabs {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding: 10px 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .category-filters::-webkit-scrollbar,
    .category-tabs::-webkit-scrollbar {
        display: none;
    }

    .category-btn,
    .category-tab {
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 0.85rem;
        border-radius: 20px;
        white-space: nowrap;
    }
}

/* ==========================================================================
   ARAMA KUTUSU
   ========================================================================== */

@media (max-width: 768px) {
    .search-box,
    .sector-search {
        margin: 0 auto 25px;
    }

    .search-box input,
    .sector-search input {
        padding: 14px 20px 14px 45px;
        font-size: 16px;
    }

    .search-box i,
    .sector-search i {
        left: 16px;
    }
}

/* ==========================================================================
   PAGE HERO
   ========================================================================== */

@media (max-width: 768px) {
    .page-hero {
        padding: 100px 20px 50px;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .page-hero p {
        font-size: 1rem;
    }
}

/* ==========================================================================
   SECTION HEADER
   ========================================================================== */

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   STEPS GRID (Nasil Calisir)
   ========================================================================== */

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .step-card::after {
        display: none;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .step-card h3 {
        font-size: 1.1rem;
    }

    .step-card p {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   FEATURES GRID
   ========================================================================== */

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .feature-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

@media (max-width: 768px) {
    .cta-section {
        padding: 60px 20px;
    }

    .cta-section h2 {
        font-size: 1.6rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .cta-button {
        width: 100%;
        padding: 16px 30px;
        justify-content: center;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

@media (max-width: 768px) {
    .footer {
        padding: 50px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-about {
        grid-column: 1;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-about p {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

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

    .footer-col h4 {
        margin-bottom: 15px;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-list li {
        justify-content: center;
    }

    .footer-badges {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        margin-top: 30px;
        padding-top: 20px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

/* ==========================================================================
   FLOATING BUTONLAR
   ========================================================================== */

@media (max-width: 768px) {
    .floating-buttons {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

@media (max-width: 768px) {
    .faq-grid {
        padding: 0;
    }

    .faq-question {
        padding: 18px 15px;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 15px 18px;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   GUARANTEE SECTION
   ========================================================================== */

@media (max-width: 768px) {
    .guarantee-box {
        padding: 40px 25px;
    }

    .guarantee-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .guarantee-box h3 {
        font-size: 1.3rem;
    }

    .guarantee-box p {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   COMPARISON TABLE
   ========================================================================== */

@media (max-width: 768px) {
    .comparison-section {
        overflow-x: auto;
    }

    .comparison-table {
        font-size: 0.8rem;
        min-width: 500px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 6px;
    }
}

/* ==========================================================================
   ILETISIM & GIRIS SAYFALARI
   ========================================================================== */

@media (max-width: 768px) {
    .auth-container,
    .contact-container {
        padding: 20px 15px;
    }

    .auth-box,
    .contact-box {
        padding: 25px 20px;
        border-radius: 16px;
    }

    .auth-box h2,
    .contact-box h2 {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   SEKTOR GRUBU HEADER
   ========================================================================== */

@media (max-width: 768px) {
    .sector-group-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .sector-group-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .sector-group-header h3 {
        font-size: 1.1rem;
        flex: 1;
    }

    .sector-group-header .count {
        font-size: 0.8rem;
    }

    .category-header-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }

    .back-to-categories {
        font-size: 0.85rem;
        padding: 10px 18px;
    }

    .current-category-info {
        flex-direction: column;
        gap: 10px;
    }

    .current-category-info h2 {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   SECTOR ITEM (Siparis sayfasinda)
   ========================================================================== */

@media (max-width: 768px) {
    .sector-group-items {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .sector-item {
        padding: 15px 10px;
    }

    .sector-item-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .sector-item span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .sector-group-items {
        grid-template-columns: 1fr !important;
    }

    .sector-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        text-align: left;
    }

    .sector-item-icon {
        margin-bottom: 0;
    }
}

/* ==========================================================================
   CATEGORY CARDS (Siparis sayfasinda)
   ========================================================================== */

@media (max-width: 768px) {
    .category-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .category-card-select {
        padding: 15px;
    }

    .category-icon-select {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .category-info h4 {
        font-size: 0.95rem;
    }

    .category-info span {
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   BUTTON DUZELTMELERI
   ========================================================================== */

@media (max-width: 768px) {
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .btn i {
        font-size: 0.9em;
    }
}

/* ==========================================================================
   MODAL DUZELTMELERI (Genel)
   ========================================================================== */

@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }

    .modal-content {
        width: 100%;
        max-height: 90vh;
        border-radius: 16px;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-footer {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

/* ==========================================================================
   TABLE DUZELTMELERI
   ========================================================================== */

@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    th, td {
        white-space: nowrap;
        padding: 10px 12px;
    }
}

/* ==========================================================================
   LOADING SPINNER
   ========================================================================== */

@media (max-width: 768px) {
    .loading-spinner,
    .spinner {
        width: 40px;
        height: 40px;
    }
}
