/*
Theme Name: SearchNumber
Theme URI: https://snubmer.local/
Author: Antigravity
Description: A modern, premium phone number search theme.
Version: 1.0
Text Domain: searchnumber
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@600;700;800&display=swap');

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #10b981;
    --accent: #f59e0b;
    --danger: #ef4444;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --glass: rgba(255, 255, 255, 0.8);
    --radius: 12px;
}

[data-theme="dark"] {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    --glass: rgba(15, 23, 42, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    transition: background-color 0.3s ease;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    z-index: 101; /* Ensure button is above the menu */
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.search-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.search-container {
    background: white;
    padding: 8px;
    border-radius: 50px;
    display: flex;
    box-shadow: var(--shadow-lg);
}

.search-container input {
    flex: 1;
    border: none;
    padding: 12px 24px;
    font-size: 1.1rem;
    border-radius: 50px 0 0 50px;
    outline: none;
    color: #0f172a;
}

.search-container button {
    background: var(--primary);
    color: white !important;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.search-container button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding-top: 60px;
    padding-bottom: 80px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.number-badge {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    color: var(--primary);
}

.status-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-danger { background: #fee2e2; color: #991b1b; }
.status-warning { background: #fef3c7; color: #92400e; }
.status-success { background: #dcfce7; color: #166534; }

.review-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.review-text p {
    margin-bottom: 4px;
}

.review-text p:last-child {
    margin-bottom: 0;
}

.review-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.ranking-item:last-child {
    border-bottom: none;
}

.rank-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--border);
    min-width: 30px;
}

.rank-num.top {
    color: var(--accent);
}

.rank-content h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.rank-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-keywords {
    padding: 60px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.keyword-tag {
    background: var(--bg-main);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.keyword-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2rem;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    #main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 250px;
        height: 100vh;
        background: var(--bg-card);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 20px;
        z-index: 100;
        gap: 15px;
        transform: translateX(100%);
        visibility: hidden;
        opacity: 0;
        transition: transform 0.3s ease, visibility 0.3s ease, opacity 0.3s ease;
    }

    #main-nav.active {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
    }

    #main-nav .keyword-tag {
        width: 100%;
        text-align: left;
        padding: 12px 16px;
        border-radius: 8px;
        background: transparent;
    }

    #main-nav .keyword-tag:hover {
        background: var(--bg-main);
    }
    
    /* Hamburger animation */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

/* Pagination */
.navigation.pagination {
    margin-top: 20px;
}

.navigation.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.2s;
}

.navigation.pagination .page-numbers:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.navigation.pagination .page-numbers.current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.navigation.pagination .prev,
.navigation.pagination .next {
    font-weight: 600;
    color: var(--primary);
}