/* Custom CSS for ReceiveFreeSMS */

:root {
    --primary-color: #2563eb;
    --secondary-color: #1d4ed8;
    --accent-color: #3b82f6;
    --light-blue: #dbeafe;
    --success-color: #10b981;
    --info-color: #06b6d4;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-color: #ffffff;
    --dark-color: #1e293b;
    --border-radius: 16px;
    --border-radius-sm: 12px;
    --border-radius-lg: 20px;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f8fafc;
}

/* Header Styles */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    background: white;
    color: var(--dark-color);
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    margin: 2rem 0;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%232563eb" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
    border-radius: var(--border-radius-lg);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: var(--primary-color);
}

.hero-section .lead {
    color: var(--dark-color);
}

/* Country Cards */
.country-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.country-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15) !important;
    border-color: var(--primary-color);
}

.country-flag img {
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

/* Phone Number Cards */
.phone-number-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.phone-number-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.15) !important;
    border-color: var(--primary-color);
}

.phone-number-display {
    background: linear-gradient(135deg, var(--light-blue) 0%, #eff6ff 100%);
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

/* SMS Cards */
.sms-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.sms-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.12) !important;
    border-color: var(--primary-color);
}

.sender-avatar {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Buttons */
.btn {
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* Copy buttons */
.copy-number, .copy-otp {
    transition: all 0.3s ease;
    border-radius: var(--border-radius-sm);
    background: var(--light-blue);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.copy-number:hover, .copy-otp:hover {
    transform: scale(1.05);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* Step Icons */
.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    color: white;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

/* SEO Content */
.seo-block {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-left: 4px solid var(--primary-color);
}

/* FAQ Accordion */
.accordion-item {
    border: none;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.05);
    overflow: hidden;
}

.accordion-button {
    background: white;
    border: none;
    border-radius: var(--border-radius-sm);
    color: var(--dark-color);
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #334155 100%);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    margin-top: 3rem;
}

.social-links a {
    transition: all 0.3s ease;
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.5rem;
}

.social-links a:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15) !important;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-info {
    background: linear-gradient(135deg, var(--light-blue) 0%, #eff6ff 100%);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

/* Breadcrumb */
.breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    padding: 1rem 1.5rem;
    backdrop-filter: blur(10px);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255, 255, 255, 0.7);
}

/* Phone Info */
.phone-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Country Info */
.country-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

::-webkit-scrollbar-track {
    background: var(--light-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(37, 99, 235, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        margin: 1rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
    }
    
    .step-icon i {
        font-size: 1.5rem !important;
    }
    
    .country-card, .phone-number-card {
        margin-bottom: 1rem;
    }
    
    .seo-block {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .seo-block {
        padding: 1.5rem;
    }
    
    :root {
        --border-radius: 12px;
        --border-radius-sm: 8px;
        --border-radius-lg: 16px;
    }
}
