/**
 * ========================================
 * PLANOX MOBILE RESPONSIVE v3.0
 * ========================================
 * Profesyonel ve kullanilabilir mobil deneyim
 * Footer ozel tasarim ile guncellendi
 */

/* ==========================================
   GENEL MOBİL AYARLAR
   ========================================== */

@media (max-width: 991.98px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    section {
        padding: 50px 0;
    }
}

@media (max-width: 767.98px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    section {
        padding: 40px 0;
    }
}

/* ==========================================
   NAVBAR - MOBİL
   ========================================== */

@media (max-width: 991.98px) {
    .navbar {
        padding: 10px 0;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .navbar-toggler {
        width: 44px;
        height: 44px;
        padding: 0;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        outline: none !important;
        position: relative;
        z-index: 1060;
    }

    .navbar-toggler:focus {
        box-shadow: none !important;
        outline: none !important;
    }

    .navbar-toggler-icon {
        width: 24px;
        height: 18px;
        background-image: none !important;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        content: '';
        display: block;
        width: 24px;
        height: 2.5px;
        background-color: var(--brand-primary, #FF6B6B);
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .navbar-toggler-icon span {
        display: block;
        width: 24px;
        height: 2.5px;
        background-color: var(--brand-primary, #FF6B6B);
        border-radius: 2px;
        transition: opacity 0.3s ease;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15);
        border-radius: 0 0 16px 16px;
        padding: 20px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s ease;
        z-index: 1050;
    }

    .navbar-collapse.show {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        padding: 24px 20px;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 0;
    }

    .navbar-nav .nav-item {
        border-bottom: 1px solid #f0f0f0;
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    .navbar-nav .nav-link {
        padding: 16px 0 !important;
        font-size: 1rem;
        font-weight: 500;
        color: #333 !important;
        display: block;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: var(--brand-primary, #FF6B6B) !important;
    }

    .navbar .d-flex {
        flex-direction: column;
        gap: 10px;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid #f0f0f0;
    }

    .navbar .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9375rem;
        border-radius: 10px;
        text-align: center;
    }
}

/* ==========================================
   HERO SECTION - MOBİL
   ========================================== */

@media (max-width: 991.98px) {
    .hero {
        padding: 60px 0 50px;
        text-align: center;
    }

    .hero .row {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.25;
        margin-bottom: 16px;
    }

    .hero p.lead,
    .hero p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 24px;
    }

    .hero .btn {
        display: inline-block;
        margin: 6px;
        padding: 14px 28px;
    }

    .hero img {
        margin-top: 40px;
        max-width: 100%;
    }

    .hero,
    .hero .container,
    .hero .row,
    .hero [class*="col-"] {
        text-align: center !important;
    }

    .hero h1,
    .hero h2,
    .hero p,
    .hero .lead {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero .btn,
    .hero .buttons,
    .hero .hero-buttons,
    .hero .d-flex {
        justify-content: center !important;
        text-align: center !important;
        flex-wrap: wrap;
    }

    .hero .btn {
        margin: 8px !important;
    }

    .hero .d-flex.gap-3,
    .hero .d-flex.gap-2 {
        flex-direction: column;
        align-items: center;
        gap: 12px !important;
    }

    .hero .d-flex.gap-3 .btn,
    .hero .d-flex.gap-2 .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-buttons {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 12px !important;
    }

    .hero-buttons .btn {
        width: 100% !important;
        max-width: 300px !important;
        text-align: center !important;
        margin: 0 auto !important;
    }

    .hero .col-lg-6:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 575.98px) {
    .hero {
        padding: 40px 0;
    }

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

    .hero p {
        font-size: 0.9375rem;
    }

    .hero .btn {
        width: 100%;
        max-width: 280px;
        margin: 8px auto;
        display: block;
    }

    .hero .d-flex {
        flex-direction: column !important;
        align-items: center !important;
    }

    .hero .btn {
        width: 100% !important;
        max-width: 300px !important;
        display: block !important;
        margin: 8px auto !important;
    }

    .hero-buttons {
        padding: 0 20px;
    }

    .hero-buttons .btn {
        max-width: 280px !important;
        padding: 16px 30px !important;
        font-size: 16px !important;
    }
}

/* ==========================================
   FEATURE CARDS - MOBİL
   ========================================== */

@media (max-width: 991.98px) {
    .feature-card {
        margin-bottom: 24px;
    }
}

@media (max-width: 575.98px) {
    .feature-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .feature-card h5 {
        font-size: 1.0625rem;
    }

    .feature-card p {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    .feature-card .icon,
    .feature-card i {
        font-size: 2rem;
        margin-bottom: 16px;
    }
}

/* ==========================================
   FİYATLANDIRMA - MOBİL
   ========================================== */

@media (max-width: 991.98px) {
    .pricing-section .row {
        justify-content: center;
    }

    .pricing-card {
        max-width: 380px;
        margin: 0 auto 24px;
    }

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

/* ==========================================
   FOOTER - MOBIL ANA TASARIM
   ========================================== */

@media (max-width: 991.98px) {
    .footer {
        padding-top: 0;
    }

    .footer-top {
        padding: 50px 0 40px;
    }

    .footer-top .container {
        text-align: center;
    }

    .footer-top .row {
        display: flex !important;
        flex-wrap: wrap !important;
        text-align: center;
    }

    /* Ilk kolon (Logo/Description) - tam genislik */
    .footer-top .row > .col-lg-4:first-child {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 35px;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

    .footer-description {
        max-width: 350px;
        margin: 0 auto 25px;
        text-align: center;
        font-size: 14px;
        line-height: 1.7;
    }

    /* Stats - Yatay duzenleme */
    .footer-stats {
        display: flex !important;
        justify-content: center;
        gap: 15px;
        margin-bottom: 20px;
    }

    .footer-stat {
        flex: 0 0 auto;
        min-width: 90px;
        padding: 15px 12px;
    }

    .footer-stat-value {
        font-size: 22px;
    }

    .footer-stat-label {
        font-size: 11px;
    }

    /* Trust Badges - Yatay */
    .footer-badges {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .footer-badge {
        padding: 8px 14px !important;
        font-size: 11px !important;
        border-radius: 20px;
    }
}

/* ==========================================
   FOOTER URUN & SIRKET - YAN YANA GRID
   ========================================== */

@media (max-width: 991.98px) {
    /* Urun ve Sirket kolonlari - yan yana */
    .footer-top .row > .col-lg-2.col-md-6 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 0 20px;
        margin-bottom: 30px;
    }

    /* Baslik Tasarimi */
    .footer-top .col-lg-2 .footer-section-title,
    .footer-section-title {
        text-align: left !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        margin-bottom: 18px !important;
        padding-bottom: 10px;
        position: relative;
        color: #fff;
    }

    .footer-top .col-lg-2 .footer-section-title::after,
    .footer-section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 35px;
        height: 3px;
        background: linear-gradient(90deg, var(--brand-primary, #FF6B6B), transparent);
        border-radius: 3px;
    }

    /* Link Listesi */
    .footer-top .col-lg-2 .footer-links,
    .footer-links {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: left !important;
    }

    .footer-top .col-lg-2 .footer-links li,
    .footer-links li {
        margin-bottom: 12px !important;
        text-align: left !important;
    }

    .footer-top .col-lg-2 .footer-links li:last-child,
    .footer-links li:last-child {
        margin-bottom: 0 !important;
    }

    .footer-top .col-lg-2 .footer-links a,
    .footer-links a {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px;
        padding: 6px 0 !important;
        font-size: 14px !important;
        color: rgba(255,255,255,0.85) !important;
        text-decoration: none !important;
        transition: all 0.25s ease;
        background: transparent !important;
        justify-content: flex-start !important;
    }

    .footer-top .col-lg-2 .footer-links a:hover,
    .footer-links a:hover {
        color: var(--brand-primary, #FF6B6B) !important;
        padding-left: 8px !important;
    }

    .footer-top .col-lg-2 .footer-links a i,
    .footer-links a i {
        font-size: 10px !important;
        opacity: 0.5;
        transition: opacity 0.25s ease;
    }

    .footer-top .col-lg-2 .footer-links a:hover i,
    .footer-links a:hover i {
        opacity: 1;
    }

    /* Son kolon (Newsletter) - tam genislik */
    .footer-top .row > .col-lg-4:last-child {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    .footer-top {
        padding: 40px 0 30px;
    }

    .footer-top .row > .col-lg-2.col-md-6 {
        padding: 0 15px;
        margin-bottom: 25px;
    }

    .footer-top .col-lg-2 .footer-section-title,
    .footer-section-title {
        font-size: 15px !important;
        margin-bottom: 15px !important;
    }

    .footer-top .col-lg-2 .footer-links li,
    .footer-links li {
        margin-bottom: 10px !important;
    }

    .footer-top .col-lg-2 .footer-links a,
    .footer-links a {
        font-size: 13px !important;
        gap: 6px;
    }

    .footer-stats {
        gap: 10px;
    }

    .footer-stat {
        min-width: 80px;
        padding: 12px 10px;
    }

    .footer-stat-value {
        font-size: 18px;
    }

    .footer-stat-label {
        font-size: 10px;
    }

    .footer-badges {
        gap: 8px;
    }

    .footer-badge {
        padding: 6px 10px !important;
        font-size: 10px !important;
    }
}

/* ==========================================
   FOOTER NEWSLETTER - MOBIL
   ========================================== */

@media (max-width: 991.98px) {
    .footer-newsletter {
        text-align: center;
        padding: 25px 20px;
        border-radius: 16px;
    }

    .newsletter-title {
        font-size: 18px !important;
        text-align: center !important;
    }

    .newsletter-description {
        font-size: 13px;
        text-align: center !important;
        margin-bottom: 18px;
    }

    .newsletter-form {
        display: flex;
        flex-direction: column;
        gap: 12px;
        max-width: 350px;
        margin: 0 auto;
    }

    .newsletter-input {
        width: 100%;
        text-align: center;
        padding: 14px 18px;
    }

    .newsletter-btn {
        width: 100%;
        padding: 14px 20px;
    }
}

@media (max-width: 575.98px) {
    .footer-newsletter {
        padding: 20px 16px;
    }

    .newsletter-title {
        font-size: 16px !important;
    }

    .newsletter-description {
        font-size: 12px;
    }

    .newsletter-input {
        padding: 12px 16px;
        font-size: 14px;
    }

    .newsletter-btn {
        padding: 12px 18px;
        font-size: 14px;
    }
}

/* ==========================================
   FOOTER CONTACT INFO - MOBIL KARTLAR
   ========================================== */

@media (max-width: 991.98px) {
    .footer-contact {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px !important;
        margin-top: 20px;
    }

    .footer-contact-item {
        flex: 0 0 auto;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255,255,255,0.06) !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
        border-radius: 14px !important;
        padding: 16px 22px !important;
        min-width: 130px;
        gap: 10px !important;
        transition: all 0.3s ease;
    }

    .footer-contact-item:hover {
        background: rgba(255,255,255,0.1) !important;
        transform: translateY(-3px);
        border-color: rgba(255,255,255,0.2) !important;
    }

    .footer-contact-item i {
        font-size: 24px !important;
        color: var(--brand-primary, #FF6B6B) !important;
        margin: 0 !important;
    }

    .footer-contact-item a,
    .footer-contact-item span {
        font-size: 12px !important;
        text-align: center !important;
        color: rgba(255,255,255,0.9) !important;
    }
}

@media (max-width: 575.98px) {
    .footer-contact {
        gap: 10px !important;
    }

    .footer-contact-item {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
        padding: 14px 15px !important;
    }

    .footer-contact-item i {
        font-size: 20px !important;
    }

    .footer-contact-item a,
    .footer-contact-item span {
        font-size: 11px !important;
        word-break: break-word;
    }
}

@media (max-width: 380px) {
    .footer-contact-item {
        flex: 1 1 100%;
        flex-direction: row !important;
        justify-content: flex-start !important;
        padding: 12px 16px !important;
        gap: 12px !important;
    }

    .footer-contact-item i {
        font-size: 18px !important;
    }

    .footer-contact-item a,
    .footer-contact-item span {
        font-size: 13px !important;
        text-align: left !important;
    }
}

/* ==========================================
   FOOTER SOCIAL ICONS - MOBIL
   ========================================== */

@media (max-width: 991.98px) {
    .footer-social {
        display: flex !important;
        justify-content: center !important;
        gap: 12px !important;
        margin-top: 25px;
    }

    .footer-social a {
        width: 46px;
        height: 46px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255,255,255,0.08) !important;
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 50% !important;
        font-size: 18px !important;
        color: rgba(255,255,255,0.9) !important;
        transition: all 0.3s ease;
    }

    .footer-social a:hover {
        background: var(--brand-primary, #FF6B6B) !important;
        border-color: var(--brand-primary, #FF6B6B);
        transform: translateY(-4px);
        color: #fff !important;
    }
}

@media (max-width: 575.98px) {
    .footer-social {
        gap: 10px !important;
    }

    .footer-social a {
        width: 42px;
        height: 42px;
        font-size: 16px !important;
    }
}

/* ==========================================
   FOOTER MIDDLE (FEATURES) - MOBIL
   ========================================== */

@media (max-width: 991.98px) {
    .footer-middle {
        padding: 30px 0;
    }

    .footer-features {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .footer-feature {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 20px 15px;
        background: rgba(255,255,255,0.03);
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.05);
    }

    .footer-feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
        font-size: 22px;
    }

    .footer-feature-content h4 {
        font-size: 14px !important;
        margin-bottom: 6px;
        text-align: center !important;
    }

    .footer-feature-content p {
        font-size: 12px !important;
        line-height: 1.5;
        text-align: center !important;
        color: rgba(255,255,255,0.7);
        display: none;
    }
}

@media (max-width: 575.98px) {
    .footer-middle {
        padding: 25px 0;
    }

    .footer-features {
        gap: 12px !important;
    }

    .footer-feature {
        padding: 16px 12px;
    }

    .footer-feature-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .footer-feature-content h4 {
        font-size: 13px !important;
    }
}

/* ==========================================
   FOOTER BOTTOM - MOBIL
   ========================================== */

@media (max-width: 991.98px) {
    .footer-bottom {
        padding: 20px 0;
        text-align: center;
    }

    .footer-bottom .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .footer-bottom p {
        font-size: 13px;
        margin: 0;
        text-align: center !important;
    }

    .footer-bottom-links {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px 4px !important;
        margin-top: 0;
    }

    .footer-bottom-links span {
        display: none !important;
    }

    .footer-bottom-links a {
        font-size: 11px !important;
        padding: 6px 12px !important;
        background: rgba(255,255,255,0.06) !important;
        border-radius: 20px !important;
        color: rgba(255,255,255,0.8) !important;
        white-space: nowrap;
        transition: all 0.25s ease;
    }

    .footer-bottom-links a:hover {
        background: rgba(255,255,255,0.12) !important;
        color: #fff !important;
    }
}

@media (max-width: 575.98px) {
    .footer-bottom {
        padding: 18px 0;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    .footer-bottom-links {
        gap: 6px 4px !important;
    }

    .footer-bottom-links a {
        font-size: 10px !important;
        padding: 5px 10px !important;
    }
}

@media (max-width: 380px) {
    .footer-bottom-links {
        flex-direction: column;
        align-items: center;
        gap: 6px !important;
    }

    .footer-bottom-links a {
        min-width: 140px;
        text-align: center;
    }
}

/* ==========================================
   PAYMENT OPTIONS - MOBIL
   ========================================== */

@media (max-width: 991.98px) {
    .payment-options {
        padding: 15px 10px !important;
    }

    .payment-options > div {
        padding: 10px 20px !important;
    }

    .payment-options img {
        max-width: 220px !important;
    }
}

@media (max-width: 575.98px) {
    .payment-options {
        padding: 12px 8px !important;
    }

    .payment-options > div {
        padding: 8px 15px !important;
    }

    .payment-options img {
        max-width: 180px !important;
    }
}

/* ==========================================
   CARD VE GENEL ELEMENTLER - MOBİL
   ========================================== */

@media (max-width: 575.98px) {
    .card {
        border-radius: 16px;
        margin-bottom: 16px;
    }

    .card-body {
        padding: 20px;
    }

    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.25rem !important; }
    h4 { font-size: 1.125rem !important; }
}

/* ==========================================
   FORM ELEMENTLERI - MOBİL
   ========================================== */

@media (max-width: 575.98px) {
    .form-control,
    .form-select {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 12px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 1rem;
        border-radius: 12px;
    }

    .btn-lg {
        padding: 16px 28px;
    }
}

/* ==========================================
   İLETİŞİM SAYFASI - MOBİL
   ========================================== */

@media (max-width: 767.98px) {
    .contact-info-card {
        text-align: center;
        padding: 28px 20px;
    }

    .contact-info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 28px;
    }

    .contact-info-item:last-child {
        margin-bottom: 0;
    }

    .contact-icon {
        margin-bottom: 16px;
    }

    .contact-info-content h5 {
        margin-bottom: 8px;
    }
}

/* ==========================================
   BLOG SAYFASI - MOBİL
   ========================================== */

@media (max-width: 767.98px) {
    .blog-card {
        margin-bottom: 24px;
    }

    .blog-card img {
        height: 200px;
        object-fit: cover;
        border-radius: 12px 12px 0 0;
    }

    .blog-card .card-body {
        padding: 20px;
    }

    .blog-card h5 {
        font-size: 1.0625rem;
        line-height: 1.4;
    }
}

/* ==========================================
   ANİMASYONLAR
   ========================================== */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

@media (max-width: 767.98px) {
    .d-mobile-none { display: none !important; }
    .d-mobile-block { display: block !important; }
    .text-mobile-center { text-align: center !important; }
    .w-mobile-100 { width: 100% !important; }
}

/* ==========================================
   TOUCH FRIENDLY
   ========================================== */

@media (max-width: 991.98px) {
    a:not(.navbar-brand),
    button,
    .btn,
    .nav-link {
        min-height: 44px;
    }

    @media (hover: none) and (pointer: coarse) {
        .btn:hover,
        .card:hover,
        a:hover,
        .footer-stat:hover,
        .footer-badge:hover,
        .footer-contact-item:hover,
        .footer-social a:hover {
            transform: none !important;
        }
    }
}

/* ==========================================
   SCROLL VE OVERFLOW
   ========================================== */

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    overflow-x: hidden;
}

@supports (padding: max(0px)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    footer {
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }
}

/* ==========================================
   TABLO - MOBİL
   ========================================== */

@media (max-width: 767.98px) {
    .table-responsive {
        border-radius: 12px;
        margin: 0 -16px;
        padding: 0 16px;
    }

    .table {
        font-size: 0.875rem;
    }

    .table th,
    .table td {
        padding: 12px 10px;
    }
}
