/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* Header and Navigation */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #ffd700;
}

/* Hero Section */
.hero-section {
    background: #ffffff;
    color: #333;
    padding: 3rem 0 1rem 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #333;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: #666;
    line-height: 1.8;
}

/* Generator Section */
.generator-section {
    padding: 1rem 0 4rem 0;
    background: #ffffff;
}

.generator-controls {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.all-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.quantity-btn {
    background: #26d0ce;
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
}

.quantity-btn:nth-child(2) {
    background: #4a90e2;
}

.quantity-btn:nth-child(3) {
    background: #5cb85c;
}

.quantity-btn.active {
    background: #26d0ce;
    transform: scale(1.05);
}

.random-btn {
    background: transparent;
    color: #4a90e2;
    border: 2px solid #4a90e2;
    padding: 18px 36px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
}

.random-btn:hover {
    background: #4a90e2;
    color: white;
}

.custom-input {
    border: 2px solid #ddd;
    padding: 18px 24px;
    border-radius: 8px;
    font-size: 18px;
    width: 140px;
    text-align: center;
    height: 60px;
    box-sizing: border-box;
}

.custom-input:focus {
    outline: none;
    border-color: #4a90e2;
}



.generate-btn {
    background: #26d0ce;
    color: white;
    border: none;
    padding: 20px 48px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 160px;
}

.generate-btn:hover {
    background: #20b8b5;
    transform: translateY(-1px);
}

.show-all-btn, .download-btn, .copy-all-btn {
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
    padding: 18px 36px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
}

.show-all-btn:hover, .download-btn:hover, .copy-all-btn:hover {
    border-color: #26d0ce;
    color: #26d0ce;
}

/* Results */
.results-container {
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    border: 1px solid #ffcdd2;
    margin: 20px 0;
}

.zip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 1rem;
}

.zip-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}

.zip-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.zip-item::after {
    content: "⧉";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    opacity: 0.6;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    padding: 6px;
    transition: all 0.2s ease;
    color: #666;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.zip-item:hover::after {
    opacity: 1;
    transform: scale(1.1);
    background: #26d0ce;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.zip-code {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.zip-location {
    color: #666;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.zip-state {
    color: #999;
    font-size: 16px;
    font-weight: 500;
}

/* How Section */
.how-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.how-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.how-step {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.how-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.step-number {
    background: linear-gradient(135deg, #26d0ce 0%, #20b8b5 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 4px 12px rgba(38, 208, 206, 0.3);
}

.how-step h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
}

.how-step p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background: #ffffff;
}

.about-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #667eea;
}

.about-card h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.3rem;
}

.about-card p, .about-card li {
    color: #666;
    line-height: 1.6;
}

.about-card ul {
    padding-left: 1.5rem;
}

.about-card li {
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: #ffffff;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #764ba2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.faq-item h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.2rem;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-section p {
    line-height: 1.6;
    opacity: 0.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: #ffd700;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: row;
        gap: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .all-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .all-buttons button,
    .custom-input {
        width: 250px;
        min-width: 250px;
    }
    
    .zip-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .how-grid, .about-grid, .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 2rem 0 0.5rem 0;
    }
    
    .generator-section {
        padding: 0.5rem 0 2rem 0;
    }
    
    .about-section, .faq-section {
        padding: 2rem 0;
    }
    
    .generator-card {
        margin: 0 0.5rem;
        padding: 1rem;
    }
}
