/**
 * Footer ve Mobile Navigation CSS
 * OyunAlışveriş Platform
 */

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 1050;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.7rem;
    transition: color 0.2s ease;
    min-height: 44px;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.mobile-bottom-nav .nav-item.active {
    color: #1f9d8f;
}

.mobile-bottom-nav .nav-item:hover {
    color: #1f9d8f;
}

/* Add padding to body for mobile nav */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 70px;
    }
    
    .footer-oyun {
        margin-bottom: 60px;
    }
}

/* Footer Styles */
.footer-oyun {
    background: linear-gradient(135deg, #0b1220 0%, #10363a 55%, #1f9d8f 120%);
    color: #fff;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.footer-oyun::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(31, 157, 143, 0.35), transparent 55%),
        radial-gradient(circle at 85% 12%, rgba(249, 115, 22, 0.25), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(14, 165, 233, 0.18), transparent 60%);
    opacity: 0.7;
    pointer-events: none;
}

.footer-oyun .container {
    position: relative;
    z-index: 1;
}

.footer-oyun h5,
.footer-oyun h6 {
    color: #fff;
}

.footer-oyun .footer-social {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.1rem;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    transition: background 0.2s, color 0.2s, border 0.2s, transform 0.2s;
}

.footer-oyun .footer-social:hover {
    background: #f97316;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.85);
    transform: scale(1.1) rotate(-8deg);
}

.footer-oyun .badge {
    font-size: 0.85rem;
    padding: 0.5em 0.9em;
}

.footer-oyun a.text-primary {
    font-weight: 500;
}

.footer-oyun a.text-white-50:hover {
    color: #ffffff !important;
}

.footer-oyun hr {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.footer-oyun .newsletter-form .form-control {
    border-radius: 20px 0 0 20px;
    border: none;
    box-shadow: none;
}

.footer-oyun .newsletter-form .btn {
    border-radius: 0 20px 20px 0;
}

.footer-oyun .newsletter-form .form-control:focus {
    box-shadow: 0 0 0 2px rgba(31, 157, 143, 0.4);
}

.footer-oyun .oyun-black {
    color: #f8fafc !important;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.payment-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.payment-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.payment-icon {
    width: 50px;
    height: 32px;
    border-radius: 6px;
    background: #fff;
    transition: transform 0.2s ease;
}

.payment-icon:hover {
    transform: scale(1.1);
}

.payment-icon.payment-text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
}

.payment-icon.payment-text i {
    font-size: 1rem;
}

/* Security Badges */
.security-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.security-badge i {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-oyun .row > div {
        margin-bottom: 1.5rem;
    }
    .footer-oyun .text-md-end {
        text-align: left !important;
        margin-top: 1rem;
    }
    .payment-methods {
        align-items: flex-start;
    }
    .payment-icons {
        justify-content: flex-start;
    }
}

/* Floating Support Widget */
.support-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1051;
}

.support-float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #1f9d8f, #f97316);
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.support-float-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 55px rgba(2, 6, 23, 0.32);
}

.support-float-panel {
    position: absolute;
    right: 0;
    bottom: 70px;
    width: 280px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.22);
    overflow: hidden;
}

.support-panel-header {
    padding: 14px 14px 12px;
    background: linear-gradient(135deg, rgba(31, 157, 143, 0.14), rgba(249, 115, 22, 0.10));
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.support-panel-title {
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    font-size: 0.98rem;
}

.support-panel-subtitle {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-online-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.support-panel-body {
    padding: 12px;
    display: grid;
    gap: 10px;
}

.support-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    padding: 10px 12px;
    background: #fff;
    color: #0f172a;
    font-weight: 700;
    transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.support-link:hover {
    transform: translateY(-1px);
    border-color: rgba(31, 157, 143, 0.35);
    box-shadow: 0 14px 35px rgba(2, 6, 23, 0.10);
    color: #0f172a;
}

.support-link i {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #0f172a;
    flex: 0 0 auto;
}

.support-link.link-whatsapp i { background: #16a34a; }
.support-link.link-telegram i { background: #0ea5e9; }
.support-link.link-ticket i { background: #1f9d8f; }
.support-link.link-contact i { background: #f97316; }

.support-panel-footer {
    padding: 10px 12px 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.78rem;
    color: #64748b;
}

@media (max-width: 767.98px) {
    .support-float {
        bottom: 90px;
    }
}

/* Shared Animation Styles */
.giveaway-countdown.urgent {
    animation: countdownPulse 0.5s ease infinite;
}

.giveaway-countdown.warning .time-unit {
    background: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%) !important;
}

.ended-text {
    color: #dc3545;
    font-weight: 600;
}

.flip {
    animation: flipDigit 0.3s ease;
}

.price-change {
    animation: priceFlip 0.3s ease;
}

.platform-btn:hover,
.platform-btn.active {
    color: var(--platform-color, #1f9d8f);
}

.flash-deal-card.urgent {
    animation: flashPulse 1s ease infinite;
    border-color: #ff6b6b;
}

@keyframes countdownPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes flashPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4); }
    50% { box-shadow: 0 0 30px 10px rgba(255, 107, 107, 0.2); }
}

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

@keyframes flipDigit {
    0% { transform: rotateX(0); }
    50% { transform: rotateX(90deg); }
    100% { transform: rotateX(0); }
}

@keyframes priceFlip {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}
