/* Find Gun Ranges - SIG SAUER & Axle Targets Styling */

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

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    gap: 10px;
    background: rgba(0,0,0,0.8);
    padding: 8px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.lang-btn {
    background: rgba(255,255,255,0.1);
    border: 2px solid transparent;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.lang-btn.active {
    background: #d32f2f;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(211, 47, 47, 0.5);
}

:root {
    --sig-black: #1a1a1a;
    --sig-gray: #2d2d2d;
    --sig-light-gray: #4a4a4a;
    --axle-red: #d32f2f;
    --axle-dark-red: #b71c1c;
    --white: #ffffff;
    --light-bg: #f5f5f5;
    --border: #ddd;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: var(--light-bg);
}

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

/* Header */
header {
    background: var(--sig-black);
    color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo-section h1 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 5px;
}

.tagline {
    font-size: 0.9em;
    color: #ccc;
}

.partnership-badge {
    text-align: right;
}

.badge-text {
    display: block;
    font-size: 0.75em;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.sig-logo {
    font-size: 1.8em;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 3px;
    font-family: 'Arial Black', sans-serif;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--sig-gray) 0%, var(--sig-light-gray) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.2em;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Search Box */
.search-box {
    max-width: 700px;
    margin: 0 auto 30px;
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.1em;
    border: none;
    border-radius: 5px;
}

.btn-primary {
    background: var(--axle-red);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--axle-dark-red);
}

/* State Filter */
.state-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.state-btn {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.state-btn:hover {
    background: rgba(255,255,255,0.3);
}

.state-btn.active {
    background: var(--axle-red);
    border-color: var(--axle-red);
}

/* Results Section */
.results {
    padding: 60px 0;
}

.ranges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.range-card {
    background: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.range-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.range-card.featured {
    border: 3px solid var(--axle-red);
    position: relative;
}

.range-card.featured::before {
    content: "⭐ FEATURED";
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--axle-red);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
}

.range-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--sig-black);
}

.range-type {
    display: inline-block;
    background: var(--sig-light-gray);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
}

.range-type.indoor {
    background: #1976d2;
}

.range-type.outdoor {
    background: #388e3c;
}

.range-info {
    margin: 15px 0;
    color: #555;
}

.range-info p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.range-description {
    font-size: 0.95em;
    color: #666;
    line-height: 1.5;
    margin-top: 15px;
}

.range-card a {
    color: var(--axle-red);
    text-decoration: none;
    font-weight: 600;
}

.range-card a:hover {
    text-decoration: underline;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.2em;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

.modal-content {
    background: var(--white);
    margin: 5% auto;
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

.modal-content h2 {
    margin-bottom: 10px;
    color: var(--sig-black);
}

.modal-content p {
    margin-bottom: 25px;
    color: #666;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--sig-black);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 5px;
    font-size: 1em;
}

.form-group input:focus {
    outline: none;
    border-color: var(--axle-red);
}

.btn-large {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

/* Footer */
footer {
    background: var(--sig-black);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: var(--axle-red);
}

.footer-section p {
    line-height: 1.8;
    color: #ccc;
}

.axle-logo a {
    color: var(--axle-red);
    text-decoration: none;
    font-size: 1.3em;
    font-weight: 700;
    letter-spacing: 2px;
}

.axle-tagline {
    font-size: 0.85em;
    margin-top: 5px;
}

footer a {
    color: var(--axle-red);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #999;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        text-align: center;
    }
    
    .partnership-badge {
        text-align: center;
        margin-top: 15px;
    }
    
    .hero h2 {
        font-size: 1.8em;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .ranges-grid {
        grid-template-columns: 1fr;
    }
}
