/**
 * Mobile Trust Screen - Güven Odaklı Mobil İlk Açılış Ekranı
 * Antalya Teknik Servis
 * Sadece mobil cihazlarda (max-width: 767px) gösterilir
 * İlk ziyarette veya session başında görüntülenir
 */

/* ===================================
   MOBILE TRUST SCREEN OVERLAY
   =================================== */

.mobile-trust-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: 99999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media only screen and (max-width: 767px) {
    .mobile-trust-screen.active {
        display: flex;
        flex-direction: column;
    }
}

/* Trust Screen Content Wrapper */
.trust-screen-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 15px;
    padding-bottom: 100px;
}

/* ===================================
   HEADER - Logo & Badge
   =================================== */

.trust-header {
    text-align: center;
    padding: 15px 0 20px;
    animation: fadeInDown 0.6s ease-out;
}

.trust-header .trust-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
}

.trust-header .emergency-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #e83a15 0%, #ff6b4a 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse-badge 2s infinite;
    box-shadow: 0 4px 20px rgba(232, 58, 21, 0.4);
}

.trust-header .emergency-badge i {
    font-size: 16px;
    animation: ring 1.5s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
}

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

.trust-hero {
    text-align: center;
    padding: 20px 0;
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

.trust-hero h1 {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.trust-hero h1 span {
    color: #ffc107;
    display: block;
}

.trust-hero .hero-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Phone Number CTA */
.trust-phone-cta {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 16px;
    padding: 18px 20px;
    margin: 15px 0;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.35);
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.trust-phone-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.trust-phone-cta a i {
    font-size: 28px;
    animation: phone-ring 1s infinite;
}

@keyframes phone-ring {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-15deg); }
    20% { transform: rotate(15deg); }
    30% { transform: rotate(-10deg); }
    40% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
}

.trust-phone-cta .phone-subtext {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    margin-top: 5px;
    font-weight: 500;
}

/* ===================================
   TRUST BADGES GRID
   =================================== */

.trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 15px 0;
    animation: fadeInUp 0.6s ease-out 0.5s backwards;
}

.trust-badge-item {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 18px 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.trust-badge-item:active {
    transform: scale(0.98);
    background: rgba(255,255,255,0.12);
}

.trust-badge-item .badge-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e83a15 0%, #ff6b4a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    box-shadow: 0 4px 15px rgba(232, 58, 21, 0.3);
}

.trust-badge-item .badge-icon i {
    color: #fff;
    font-size: 22px;
}

.trust-badge-item .badge-icon.green {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.trust-badge-item .badge-icon.blue {
    background: linear-gradient(135deg, #1E969C 0%, #0d6b70 100%);
    box-shadow: 0 4px 15px rgba(30, 150, 156, 0.3);
}

.trust-badge-item .badge-icon.gold {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.trust-badge-item h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.3;
}

.trust-badge-item p {
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    margin: 0;
    line-height: 1.4;
}

/* ===================================
   STATS SECTION
   =================================== */

.trust-stats {
    display: flex;
    justify-content: space-around;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 20px 10px;
    margin: 15px 0;
    border: 1px solid rgba(255,255,255,0.1);
    animation: fadeInUp 0.6s ease-out 0.6s backwards;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-item:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.15);
}

.stat-item .stat-number {
    display: block;
    color: #ffc107;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-item .stat-label {
    color: rgba(255,255,255,0.8);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================================
   SERVICE ICONS CAROUSEL
   =================================== */

.trust-services {
    padding: 15px 0;
    animation: fadeInUp 0.6s ease-out 0.7s backwards;
}

.trust-services h3 {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 500;
}

.service-icons-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.service-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px;
}

.service-icon-item .icon-circle {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.service-icon-item .icon-circle i {
    color: #fff;
    font-size: 20px;
}

.service-icon-item span {
    color: rgba(255,255,255,0.8);
    font-size: 10px;
    text-align: center;
    line-height: 1.2;
}

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

.trust-cta-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(26,26,46,0.98) 30%);
    padding: 20px 15px 25px;
    z-index: 100000;
}

.cta-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 15px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.cta-btn i {
    font-size: 20px;
}

.cta-btn.btn-call {
    background: linear-gradient(135deg, #e83a15 0%, #ff6b4a 100%);
    color: #fff;
}

.cta-btn.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
}

.cta-btn:active {
    transform: scale(0.97);
}

.skip-btn {
    display: block;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    padding: 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.skip-btn:hover,
.skip-btn:active {
    color: rgba(255,255,255,0.9);
}

.skip-btn i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.skip-btn:active i {
    transform: translateX(3px);
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* Trust screen closing animation */
.mobile-trust-screen.closing {
    animation: fadeOutUp 0.4s ease-out forwards;
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-30px);
    }
}

/* ===================================
   LOCATION BADGE
   =================================== */

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    padding: 6px 14px;
    border-radius: 20px;
    margin-top: 10px;
    animation: fadeIn 1s ease-out 0.8s backwards;
}

.location-badge i {
    color: #e83a15;
    font-size: 14px;
}

.location-badge span {
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    font-weight: 500;
}

/* ===================================
   SAFE HOME SCROLL
   =================================== */

@supports (-webkit-touch-callout: none) {
    .mobile-trust-screen {
        min-height: -webkit-fill-available;
    }
}

/* Landscape mode adjustments */
@media only screen and (max-width: 767px) and (orientation: landscape) {
    .trust-badges {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .trust-hero h1 {
        font-size: 22px;
    }
    
    .trust-stats {
        margin: 10px 0;
        padding: 15px 10px;
    }
}

/* Very small screens */
@media only screen and (max-width: 350px) {
    .trust-hero h1 {
        font-size: 22px;
    }
    
    .trust-phone-cta a {
        font-size: 20px;
    }
    
    .trust-badge-item {
        padding: 14px 10px;
    }
    
    .cta-btn {
        padding: 14px 12px;
        font-size: 14px;
    }
}
