/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    text-align: center;
    padding: 60px 0 30px;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 50px;
}

.nav-tab {
    background: #f5f5f5;
    color: #444;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-tab.active,
.nav-tab:hover {
    background: #111;
    color: #fff;
}

/* Sections */
.generator-section,
.profile-section,
.finance-section,
.address-area-section,
.seo-article-section {
    background: #ffffff;
    padding: 40px;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    margin-bottom: 30px;
}

.section-title,
.generator-title {
    color: #111;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eaeaea;
}

/* Tables */
.profile-table,
.finance-table,
.address-table {
    width: 100%;
}

.table-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.table-row:last-child {
    border-bottom: none;
}

.table-label {
    font-weight: 500;
    color: #666;
    width: 200px;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.table-value {
    color: #111;
    font-size: 0.95rem;
    cursor: pointer;
    flex: 1;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.table-value:hover {
    background: #f8f9fa;
}

.phone-number {
    color: #111;
}

/* Address in area section */
.state-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.state-link {
    color: #444;
    text-decoration: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #fdfdfd;
    border: 1px solid #eaeaea;
    text-align: center;
    transition: all 0.2s ease;
}

.state-link:hover {
    background: #f5f5f5;
    color: #111;
    border-color: #ddd;
}

/* SEO Article Section */
.seo-article-section {
    margin-top: 60px;
    padding: 50px;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    color: #888;
    font-size: 0.85rem;
}

.article-meta time,
.reading-time {
    padding: 4px 12px;
    background: #f9f9f9;
    border-radius: 20px;
}

.article-content {
    color: #444;
}

.lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 30px;
}

.table-of-contents {
    background: #f9f9f9;
    padding: 24px 30px;
    border-radius: 8px;
    margin: 40px 0;
}

.table-of-contents h3 {
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: #111;
}

.table-of-contents ol, .table-of-contents ul {
    padding-left: 20px;
    list-style-type: none;
}

.table-of-contents li {
    margin-bottom: 8px;
}

.table-of-contents a {
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
}

.table-of-contents a:hover {
    color: #111;
    text-decoration: underline;
}

.article-section {
    margin: 50px 0;
}

.article-section h3 {
    color: #111;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.article-section h4 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 30px 0 15px;
}

.article-section p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.article-section ul,
.article-section ol {
    margin: 16px 0 16px 24px;
}

.article-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.faq-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

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

.faq-item h4 {
    color: #111;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 40px;
    border-top: 1px solid #eaeaea;
}

.footer-content {
    color: #888;
    font-size: 0.85rem;
}

.footer-link {
    color: #555;
    text-decoration: none;
}

.footer-link:hover {
    color: #111;
    text-decoration: underline;
}

/* Privacy notice */
.privacy-notice {
    display: none; /* Removing clutter */
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #111;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1001;
    opacity: 0;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 40px 0 20px;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .navigation {
        gap: 6px;
    }

    .nav-tab {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .generator-section,
    .profile-section,
    .finance-section,
    .address-area-section,
    .seo-article-section {
        padding: 24px;
    }

    .table-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-label {
        width: 100%;
        margin-bottom: 4px;
        color: #888;
    }

    .table-value {
        width: 100%;
        padding: 0;
    }

    .state-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.75rem;
    }

    .state-grid {
        grid-template-columns: 1fr;
    }

    .seo-article-section {
        padding: 20px;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
}

/* Premium Loading Animation */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s cubic-bezier(0.65, 0, 0.35, 1), 
                visibility 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: loaderFadeIn 0.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.loader-spinner {
    width: 42px;
    height: 42px;
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-top: 2px solid #111111;
    border-radius: 50%;
    animation: premium-spin 1s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

.loader-brand {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #111111;
    opacity: 0.6;
}

@keyframes premium-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes loaderFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}