/**
 * ============================================
 * REVERSE NUMBER CHECK - MAIN CSS
 * ============================================
 * 
 * Profesjonalny, zoptymalizowany CSS
 * Bootstrap 5.3 compatible
 * Mobile-first approach
 * 
 * @version 2.0.0
 * @date 2026-02-01
 * ============================================
 */

/* ============================================
   1. CSS RESET & BASE
   ============================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
                 Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1f2937;
    background: #f3f4f6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   2. LAYOUT - CONTAINER
   ============================================ */

.container {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 576px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (min-width: 992px) {
    .container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* ============================================
   3. NAVBAR
   ============================================ */

.navbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #111827;
    font-weight: 600;
    font-size: 15px;
}

.navbar-brand svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.navbar-brand span {
    white-space: nowrap;
}

/* User Avatar */
.user-avatar {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e5e7eb;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.nav-username {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   4. CARDS
   ============================================ */

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-bottom: 16px;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.card-body {
    padding: 20px;
}

@media (min-width: 768px) {
    .card-header {
        padding: 24px;
    }
    
    .card-body {
        padding: 24px;
    }
}

/* ============================================
   5. HERO HEADER
   ============================================ */

.hero-header {
    text-align: center;
    padding: 0;
}

.hero-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 12px;
}

.hero-header h1 span {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #0a66c2;
    margin-top: 8px;
}

.hero-header .lead {
    font-size: 0.9rem;
    color: #6b7280;
    max-width: 500px;
    margin: 0 auto 16px;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .hero-header h1 {
        font-size: 2rem;
    }
    
    .hero-header h1 span {
        font-size: 1.1rem;
    }
    
    .hero-header .lead {
        font-size: 1rem;
    }
}

@media (min-width: 992px) {
    .hero-header h1 {
        font-size: 2.5rem;
    }
    
    .hero-header h1 span {
        font-size: 1.25rem;
    }
}

/* ============================================
   6. TRUST BADGES (Hero)
   ============================================ */

.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.trust-badges .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.trust-badges .badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

@media (min-width: 576px) {
    .trust-badges {
        gap: 12px;
    }
    
    .trust-badges .badge {
        font-size: 12px;
        padding: 8px 14px;
    }
    
    .trust-badges .badge svg {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   7. COUNTRY SELECTOR
   ============================================ */

.country-selector {
    margin-bottom: 20px;
}

.country-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.country-flags {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.country-btn {
    background: #f9fafb;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.country-btn:hover {
    background: #f3f4f6;
}

.country-btn.active {
    background: #fff;
    border-color: #0a66c2;
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}

.country-flag {
    font-size: 28px;
    line-height: 1;
}

.country-name {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    text-align: center;
}

@media (min-width: 576px) {
    .country-flags {
        grid-template-columns: repeat(6, 1fr);
        gap: 12px;
    }
    
    .country-btn {
        padding: 16px 12px;
    }
    
    .country-flag {
        font-size: 32px;
    }
    
    .country-name {
        font-size: 12px;
    }
}

/* ============================================
   8. SEARCH SECTION
   ============================================ */

.search-section {
    margin-bottom: 20px;
}

.search-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.phone-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.country-code {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 18px;
    font-weight: 600;
    color: #0a66c2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 18px;
    color: #111827;
    background: #fff;
    outline: none;
    transition: all 0.15s ease;
    width: 100%;
}

.phone-input:focus {
    border-color: #0a66c2;
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}

.phone-input::placeholder {
    color: #9ca3af;
}

.search-btn {
    width: 100%;
    background: #0a66c2;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.search-btn:hover {
    background: #004182;
}

.search-btn:active {
    transform: scale(0.98);
}

@media (min-width: 576px) {
    .phone-input-wrapper {
        flex-direction: row;
        gap: 12px;
    }
    
    .country-code {
        min-width: 90px;
        padding: 0 20px;
    }
    
    .phone-input {
        font-size: 20px;
    }
}

/* ============================================
   9. TRUST SECTION (Protecting People)
   ============================================ */

.trust-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.trust-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 16px;
}

.trust-header svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.trust-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #14532d;
}

.trust-header p {
    margin: 0;
    font-size: 13px;
    color: #166534;
}

@media (min-width: 576px) {
    .trust-section {
        padding: 24px;
    }
    
    .trust-header {
        flex-direction: row;
        text-align: left;
        gap: 12px;
    }
    
    .trust-header h3 {
        font-size: 18px;
    }
}

/* ============================================
   10. STORIES
   ============================================ */

.trust-stories {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.story {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    background: #fff;
    border-radius: 10px;
    border-left: 4px solid;
}

.story-green { border-left-color: #22c55e; }
.story-orange { border-left-color: #f59e0b; }
.story-blue { border-left-color: #3b82f6; }

.story-green .story-icon svg { stroke: #22c55e; }
.story-orange .story-icon svg { stroke: #f59e0b; }
.story-blue .story-icon svg { stroke: #3b82f6; }

.story-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 10px;
    flex-shrink: 0;
}

.story-icon svg {
    width: 24px;
    height: 24px;
}

.story-text {
    flex: 1;
    min-width: 0;
}

.story-text p {
    margin: 0 0 10px 0;
    font-size: 13px;
    line-height: 1.6;
    color: #374151;
}

.story-text strong {
    background: #fef9c3;
    padding: 1px 3px;
    border-radius: 3px;
    color: #111827;
}

.story-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
}

.story-author {
    font-weight: 600;
    color: #1f2937;
}

.story-location {
    color: #6b7280;
}

.story-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.story-badge.green { background: #dcfce7; color: #166534; }
.story-badge.orange { background: #fef3c7; color: #92400e; }
.story-badge.blue { background: #dbeafe; color: #1e40af; }

@media (min-width: 576px) {
    .story {
        flex-direction: row;
        gap: 16px;
        padding: 16px;
    }
    
    .story-meta {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
}

/* ============================================
   11. HOW IT WORKS
   ============================================ */

.how-it-works {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.how-it-works h4 {
    margin: 0 0 16px 0;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 12px;
    color: #374151;
    position: relative;
    width: 100%;
    max-width: 280px;
}

.step svg {
    width: 18px;
    height: 18px;
    stroke: #6b7280;
    flex-shrink: 0;
}

.step-num {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: #22c55e;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-arrow {
    stroke: #d1d5db;
    transform: rotate(90deg);
    width: 20px;
    height: 20px;
}

.how-footer {
    margin: 16px 0 0 0;
    font-size: 12px;
    color: #059669;
}

@media (min-width: 576px) {
    .steps {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }
    
    .step {
        width: auto;
        max-width: none;
    }
    
    .step-arrow {
        transform: none;
    }
}

/* ============================================
   12. INFO CARDS
   ============================================ */

.info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid #e5e7eb;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.info-card:last-child {
    border-bottom: none;
}

.info-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.info-icon svg {
    width: 28px;
    height: 28px;
    stroke: #0a66c2;
}

.info-content {
    flex: 1;
    min-width: 0;
}

.info-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.info-text {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
}

@media (min-width: 576px) {
    .info-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
        border-bottom: none;
        border-right: 1px solid #e5e7eb;
    }
    
    .info-card:last-child {
        border-right: none;
    }
    
    .info-icon {
        margin-bottom: 8px;
    }
}

/* ============================================
   13. SEO CONTENT
   ============================================ */

.seo-content {
    padding: 24px 16px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
}

.seo-content h2 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 24px 0 12px 0;
}

.seo-content h2:first-child {
    margin-top: 0;
}

.seo-content p {
    margin-bottom: 16px;
}

.seo-content ul {
    margin: 16px 0;
    padding-left: 20px;
}

.seo-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.seo-content strong {
    color: #111827;
    font-weight: 600;
}

@media (min-width: 768px) {
    .seo-content {
        padding: 32px 24px;
    }
    
    .seo-content h2 {
        font-size: 20px;
        margin-top: 32px;
    }
}

/* ============================================
   14. ARTICLES SECTION
   ============================================ */

.articles-section {
    margin-top: 16px;
}

.section-header {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.article-card {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.article-card:hover {
    background: #f9fafb;
}

.article-card:last-child {
    border-bottom: none;
}

.article-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.article-content {
    flex: 1;
    min-width: 0;
}

.article-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-title a {
    color: inherit;
    text-decoration: none;
}

.article-excerpt {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    font-size: 11px;
    color: #9ca3af;
}

@media (min-width: 768px) {
    .section-header {
        padding: 16px 24px;
    }
    
    .article-card {
        padding: 16px 24px;
        gap: 16px;
    }
    
    .article-image {
        width: 120px;
        height: 90px;
    }
    
    .article-title {
        font-size: 14px;
    }
    
    .article-excerpt {
        -webkit-line-clamp: 2;
    }
}

/* ============================================
   15. PHONE NUMBER LISTS (Countries)
   ============================================ */

.card-header.bg-light {
    background: #f9fafb !important;
    padding: 14px 16px;
}

.card-header.bg-light h3 {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    margin: 0;
}

.hover-shadow {
    transition: all 0.2s ease;
}

.hover-shadow:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: #f9fafb !important;
}

/* ============================================
   16. TRUST BADGES FOOTER
   ============================================ */

.trust-badges-footer {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 16px;
    margin-top: 24px;
}

.trust-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-badge-item svg {
    width: 20px;
    height: 20px;
    stroke: #6b7280;
    flex-shrink: 0;
}

.trust-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.trust-badge-text strong {
    font-size: 12px;
    color: #1f2937;
    font-weight: 600;
}

.trust-badge-text span {
    font-size: 10px;
    color: #6b7280;
}

@media (min-width: 768px) {
    .trust-row {
        gap: 32px;
    }
    
    .trust-badge-text strong {
        font-size: 13px;
    }
    
    .trust-badge-text span {
        font-size: 11px;
    }
}

/* ============================================
   17. FOOTER
   ============================================ */

footer {
    background: #fff;
    padding: 32px 16px 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-top: 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    text-align: left;
    margin-bottom: 24px;
}

.footer-column h3 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 8px;
}

.footer-links-list a {
    color: #6b7280;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s ease;
}

.footer-links-list a:hover {
    color: #0a66c2;
}

.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 8px;
    font-size: 12px;
    color: #6b7280;
}

.footer-bottom a {
    color: #6b7280;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #0a66c2;
}

/* Footer Stats */
.footer-bottom .d-flex {
    font-size: 12px;
}

.footer-bottom .fw-semibold {
    font-size: 16px;
    color: #111827;
}

.footer-bottom .text-secondary {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    footer {
        padding: 40px 24px 24px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================
   18. ADSENSE CONTAINERS
   ============================================ */

.adsbygoogle {
    display: block;
    margin: 16px 0;
}

/* ============================================
   19. UTILITY CLASSES
   ============================================ */

/* Text colors with SVG support */
.text-success svg { stroke: #22c55e; }
.text-primary svg { stroke: #0a66c2; }
.text-warning svg { stroke: #f59e0b; }
.text-danger svg { stroke: #ef4444; }

/* Badge overrides for better mobile */
.badge {
    font-weight: 500;
}

/* Gap utilities for older browsers */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

/* ============================================
   20. ANIMATIONS
   ============================================ */

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* ============================================
   21. ACCESSIBILITY
   ============================================ */

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0a66c2;
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    transition: top 0.3s ease;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid #0a66c2;
    outline-offset: 2px;
}

/* ============================================
   22. PRINT STYLES
   ============================================ */

@media print {
    .navbar,
    .adsbygoogle,
    footer {
        display: none !important;
    }
    
    body {
        background: #fff;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ============================================
   23. DARK MODE SUPPORT (optional)
   ============================================ */

@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode
    body {
        background: #111827;
        color: #f9fafb;
    }
    
    .card {
        background: #1f2937;
        border-color: #374151;
    }
    */
}