/* ===================================
   Güven Anahtar - Professional Locksmith Service
   Color Scheme:
     Primary: #1B3A4B (Dark Teal)
     Accent: #F4A261 (Orange)
     Secondary: #264653
     Background: #F8F9FA
   =================================== */

/* Base */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
.font-display {
    font-family: 'Playfair Display', serif;
}

/* Emergency Pulse Animation */
.emergency-pulse {
    animation: emergencyPulse 3s ease-in-out infinite;
}

@keyframes emergencyPulse {
    0%, 100% { background-color: #F4A261; }
    50% { background-color: #e8963a; }
}

/* Key Icon Animation */
.key-icon-wrapper {
    transition: transform 0.3s ease;
}

.group:hover .key-icon-wrapper {
    transform: rotate(-15deg);
}

/* Key-Themed Decorative Elements */
.key-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.key-divider::before,
.key-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #F4A261, transparent);
}

.key-divider svg {
    color: #F4A261;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
}

/* Service Card Hover Effects */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: #F4A261;
    transition: height 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(27, 58, 75, 0.15);
}

.service-card:hover::before {
    height: 100%;
}

/* Price Card */
.price-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.price-card:hover {
    border-color: #F4A261;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(27, 58, 75, 0.12);
}

.price-card.featured {
    border-color: #F4A261;
    position: relative;
}

.price-card.featured::after {
    content: 'Popüler';
    position: absolute;
    top: -1px;
    right: 20px;
    background: #F4A261;
    color: #1B3A4B;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 0 0 8px 8px;
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, #1B3A4B 0%, #264653 50%, #1B3A4B 100%);
    position: relative;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23F4A261' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Stats Counter */
.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #F4A261;
    line-height: 1;
}

/* Testimonial Card */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #F4A261;
    opacity: 0.3;
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

/* Coverage Area Badge */
.area-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1B3A4B;
    transition: all 0.2s ease;
}

.area-badge:hover {
    background: #F4A261;
    border-color: #F4A261;
    color: #1B3A4B;
    transform: scale(1.05);
}

/* Emergency Page Styles */
.emergency-glow {
    box-shadow: 0 0 30px rgba(244, 162, 97, 0.4);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(244, 162, 97, 0.3); }
    50% { box-shadow: 0 0 40px rgba(244, 162, 97, 0.6); }
}

/* Blog Card */
.blog-card {
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(27, 58, 75, 0.12);
}

.blog-card .blog-image {
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

/* Form Styles */
.form-input {
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    width: 100%;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.form-input:focus {
    outline: none;
    border-color: #F4A261;
    box-shadow: 0 0 0 3px rgba(244, 162, 97, 0.2);
}

/* Lock Animation */
.lock-icon {
    animation: lockShake 5s ease-in-out infinite;
}

@keyframes lockShake {
    0%, 90%, 100% { transform: rotate(0deg); }
    92% { transform: rotate(-5deg); }
    94% { transform: rotate(5deg); }
    96% { transform: rotate(-3deg); }
    98% { transform: rotate(3deg); }
}

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

/* Selection Color */
::selection {
    background: #F4A261;
    color: #1B3A4B;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F8F9FA;
}

::-webkit-scrollbar-thumb {
    background: #1B3A4B;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #264653;
}

/* Section Transitions */
section {
    position: relative;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #F4A261 0%, #e8963a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Badge Styles */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border-radius: 9999px;
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1B3A4B;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Step Connector */
.step-connector {
    position: relative;
}

.step-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #F4A261, transparent);
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }

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

/* Print Styles */
@media print {
    .emergency-pulse,
    footer .fixed {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}

/* ============================================
   Responsive Overflow & Text Protection
   ============================================ */

/* Prevent horizontal overflow */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Break long words/URLs to prevent overflow */
body {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

p, li, td, th, span, a, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive tables */
table {
    max-width: 100%;
}

.table-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* Prevent pre/code blocks from overflowing */
pre, code {
    overflow-x: auto;
    max-width: 100%;
    white-space: pre-wrap;
    word-wrap: break-word;
}

