/* Modern Footer Styling */
.footer {
    background-color: #0d1117;
    /* Deep professional dark */
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    border-top: 3px solid var(--primary-color);
    /* Brand accent border */
}

/* Brand Gradient Variable */
:root {
    --brand-gradient: linear-gradient(135deg, #f27025, #ff2d78);
    --primary-color: #f27025;
    --footer-hover-color: #f27025;
}

.footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.footer h5 i {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 8px;
}

.footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--brand-gradient);
    border-radius: 3px;
}

.footer a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer a:hover {
    color: var(--footer-hover-color) !important;
}

/* Specific styling for list items (Sözleşmeler, Hızlı Linkler vb) */
.footer .list-unstyled li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.footer .list-unstyled li a:hover {
    color: var(--footer-hover-color) !important;
    transform: translateX(10px);
}

.footer .list-unstyled li a::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    width: 6px;
    height: 2px;
    background-color: var(--primary-color);
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(-50%);
}

.footer .list-unstyled li a:hover::before {
    opacity: 1;
    left: -8px;
}

.footer .list-unstyled li {
    margin-bottom: 12px;
}

.footer .social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: #fff;
    transition: all 0.3s ease;
}

.footer .social-icon:hover,
.footer-social-link:hover {
    background: var(--brand-gradient);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(242, 112, 37, 0.4);
    color: #fff !important;
}

.footer-social-link {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #fff !important;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tursab Badge - Glassmorphism */
.tursab-badge {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 15px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    transition: all 0.3s ease;
    margin-top: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tursab-badge:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.tursab-badge img {
    max-height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.tursab-info {
    display: flex;
    flex-direction: column;
}

.tursab-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2px;
}

.tursab-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.footerhr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.newsletter-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.newsletter-box .form-control {
    border-color: rgba(255, 255, 255, 0.1);
}

.newsletter-box .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Simple Newsletter */
.newsletter-simple {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-simple .form-control {
    border-color: rgba(255, 255, 255, 0.1);
}

.newsletter-simple .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Custom button for footer */
.footer .btn-primary {
    background: var(--brand-gradient);
    border: none;
    transition: all 0.3s ease;
}

.footer .btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(242, 112, 37, 0.4);
}

/* Placeholder styling */
.footer .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    opacity: 1;
}

/* =====================================================
   MOBILE RESPONSIVE FOOTER STYLES
   ===================================================== */

/* Tablet and below (max-width: 991px) */
@media (max-width: 991.98px) {
    .footer {
        text-align: center;
        padding-top: 2.5rem !important;
        padding-bottom: 2rem !important;
    }

    .footer .row.g-4>[class*="col-"] {
        margin-bottom: 1rem;
        padding-bottom: 0;
        border-bottom: none;
    }

    .footer .row.g-4>[class*="col-"]:last-child {
        margin-bottom: 0;
    }

    /* Center headings */
    .footer h5 {
        display: block;
        text-align: center;
        padding-bottom: 12px;
        margin-bottom: 1.2rem;
    }

    .footer h5::after {
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
    }

    /* Center list items */
    .footer .list-unstyled {
        text-align: center;
    }

    .footer .list-unstyled li a {
        justify-content: center;
    }

    .footer .list-unstyled li a::before {
        display: none;
    }

    /* Side-by-side col-6 columns (Sözleşmeler & Hızlı Bağlantılar) */
    .footer .col-6 h5 {
        font-size: 0.95rem;
        padding-bottom: 10px;
        margin-bottom: 1rem;
    }

    .footer .col-6 .list-unstyled li a {
        font-size: 0.82rem;
    }

    .footer .col-6 .list-unstyled li {
        margin-bottom: 8px !important;
    }

    .footer .list-unstyled li a:hover {
        transform: translateY(-2px);
    }

    /* Logo + Tursab area - Stack vertically */
    .footer .d-flex.align-items-center.mb-3 {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.5rem;
    }

    .footer .d-flex.align-items-center.mb-3 .me-4 {
        margin-right: 0 !important;
    }

    .footer .d-flex.align-items-center.mb-3 img[height="180"] {
        height: 120px !important;
    }

    /* Tursab badge centered */
    .tursab-badge {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .tursab-badge .tursab-digital-verification {
        display: flex;
        justify-content: center;
    }

    /* Site description centered */
    .footer .small.mb-4.text-white-50 {
        text-align: center;
    }

    /* Social media icons centered */
    .footer .d-flex.justify-content-center.gap-3 {
        justify-content: center !important;
    }

    /* Payment & Newsletter area - Stack vertically */
    .footer .d-flex.flex-wrap.align-items-center.gap-3 {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }

    .footer .payment-icons {
        order: 1;
        text-align: center;
        width: 100%;
    }

    .footer .payment-icons img {
        height: 30px !important;
        max-width: 100%;
    }

    .footer .newsletter-simple {
        order: 2;
        width: 100%;
        min-width: unset !important;
        max-width: 400px;
    }

    /* Divider line */
    .footer hr {
        margin: 1.2rem 0 !important;
        opacity: 0.1;
    }

    /* Hide the first HR on mobile to keep it cleaner */
    .footer .my-3.border-secondary {
        display: none !important;
    }

    /* Contact info centered */
    .footer .list-unstyled li.mb-2,
    .footer .list-unstyled li.small {
        text-align: center;
    }

    /* Copyright section */
    .footer .text-center.text-md-start {
        text-align: center !important;
        margin-top: 10px;
    }

    .footer .small.mb-2,
    .footer .small.mb-0 {
        margin-bottom: 5px !important;
    }
}

/* Small phones (max-width: 575px) */
@media (max-width: 575.98px) {
    .footer {
        padding-top: 2rem !important;
        padding-bottom: 1.5rem !important;
        font-size: 0.88rem;
    }

    .footer .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Even smaller logo for small phones */
    .footer .d-flex.align-items-center.mb-3 img[height="180"] {
        height: 100px !important;
    }

    /* Tursab badge - compact for small screens */
    .tursab-badge {
        padding: 12px;
        max-width: 280px;
        gap: 10px;
    }

    .tursab-badge img {
        max-height: 50px !important;
    }

    .tursab-agency {
        font-size: 0.7rem !important;
    }

    .tursab-number {
        font-size: 0.85rem !important;
    }

    /* Footer headings smaller */
    .footer h5 {
        font-size: 1.05rem;
        margin-bottom: 1rem;
    }

    /* List items compact spacing */
    .footer .list-unstyled li {
        margin-bottom: 10px !important;
    }

    .footer .list-unstyled li a {
        font-size: 0.85rem;
    }

    /* Social icons slightly smaller */
    .footer-social-link {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    /* Newsletter & Payment */
    .footer .newsletter-simple {
        padding: 10px;
        max-width: 100%;
    }

    .footer .newsletter-simple .input-group .form-control {
        font-size: 0.9rem;
    }

    .footer .newsletter-simple .input-group .btn {
        padding: 8px 16px;
        white-space: nowrap;
    }

    .footer .payment-icons img {
        height: 25px !important;
    }

    /* Copyright text */
    .footer .small.mb-2,
    .footer .small.mb-0 {
        font-size: 0.75rem;
        line-height: 1.5;
    }

    /* Contact info font adjustments */
    .footer .list-unstyled li.mb-2.fw-bold {
        font-size: 0.82rem;
        word-break: break-word;
    }

    .footer .list-unstyled li.mb-2.small,
    .footer .list-unstyled li.small.text-white-50 {
        font-size: 0.78rem;
        word-break: break-word;
    }

    /* Reduce column border spacing */
    .footer .row.g-4>[class*="col-"] {
        margin-bottom: 1rem;
        padding-bottom: 0;
    }
}

/* Extra small phones (max-width: 380px) */
@media (max-width: 380px) {
    .footer .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .footer .d-flex.align-items-center.mb-3 img[height="180"] {
        height: 80px !important;
    }

    .tursab-badge {
        max-width: 250px;
        padding: 10px;
    }

    .tursab-badge img {
        max-height: 40px !important;
    }

    .footer h5 {
        font-size: 0.95rem;
    }

    .footer .list-unstyled li a {
        font-size: 0.8rem;
    }

    .footer-social-link {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
}

/* Additional Footer Styles from footer.php */
.footer {
    position: relative;
}
.footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(135deg, #f27025, #ff2d78);
    box-shadow: 0 2px 10px rgba(242, 112, 37, 0.3);
    z-index: 10;
}

.scroll-to-top-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #f27025, #ff2d78);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(242, 112, 37, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-to-top-btn.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 30px rgba(242, 112, 37, 0.6);
}

.scroll-to-top-btn:active {
    transform: translateY(-2px) scale(1.05);
}

@media (max-width: 575.98px) {
    .scroll-to-top-btn {
        width: 42px;
        height: 42px;
        bottom: 75px;
        right: 15px;
        font-size: 1rem;
    }
}

/* Stylish Footer Slogan */
.footer-logo {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.15));
    object-fit: contain;
}

.footer-logo:hover {
    transform: translateY(-5px) scale(1.02);
    filter: drop-shadow(0 12px 20px rgba(0,0,0,0.25));
}

.footer-slogan {
    position: relative;
    padding-top: 0;
    margin-top: -5px; /* Pull it slightly closer */
    margin-left: 2px;
}

.slogan-text {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ffffff 0%, #e0e0e0 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Poppins', 'Outfit', sans-serif;
    margin-bottom: 8px;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.slogan-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #f27025, #ff2d78);
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(242, 112, 37, 0.3);
}

@media (max-width: 991.98px) {
    .footer-logo {
        height: 140px !important;
    }
    .footer-slogan {
        text-align: center;
        margin-top: 5px;
        margin-left: 0;
    }
    .slogan-line {
        margin: 0 auto;
    }
    .slogan-text {
        font-size: 1rem;
    }
}
