/* Location Pages Stylesheet */
/* Matches checkdigipin.com design system */

:root {
    /* Color Palette */
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #eef2ff;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --success: #10b981;
    --success-light: #d1fae5;
    --error: #ef4444;
    --warning: #f59e0b;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Spacing & Radius */
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === BREADCRUMB === */
.breadcrumb {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    font-size: 0.875rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

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

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary-hover);
}

.breadcrumb span {
    color: var(--text-secondary);
    margin: 0 8px;
}

/* === HEADER === */
header {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 60px 20px;
    text-align: center;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

header::before {
    display: none;
}

header .container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

header h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--primary-color);
}

header p {
    font-size: 1.1rem;
    opacity: 1;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text-secondary);
}

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

main {
    padding: 40px 0;
}

/* === CONTENT SECTIONS === */
.content {
    background: var(--bg-primary);
    padding: 40px;
    margin: 24px auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.content h2 {
    color: var(--primary-color);
    margin: 32px 0 16px 0;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.content h3 {
    color: var(--text-primary);
    margin: 24px 0 12px 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.content p {
    margin-bottom: 16px;
    line-height: 1.8;
    font-size: 1rem;
    color: var(--text-secondary);
}

.content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.content a:hover {
    color: var(--primary-hover);
}

/* === PINCODE INFO BOX === */
.pincode-info {
    background: var(--primary-light);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 24px 0;
    border-radius: var(--radius);
    font-size: 0.95rem;
    line-height: 1.7;
}

.pincode-info strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* === CTA BUTTON === */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%);
    color: #ffffff !important;
    padding: 18px 50px;
    border-radius: var(--radius);
    text-decoration: none !important;
    font-size: 1.05rem;
    margin: 24px 0;
    transition: all 0.3s ease;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    letter-spacing: -0.01em;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.cta-button:active {
    transform: translateY(0);
}

/* === FEATURES LIST === */
.features-list {
    list-style: none;
    margin: 20px 0;
}

.features-list li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.features-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
    font-size: 1.25rem;
}

/* === COMPARISON TABLE === */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.comparison-table th,
.comparison-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
}

.comparison-table th {
    background: var(--bg-tertiary);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background: var(--bg-secondary);
}

.comparison-table .feature {
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-table .pincode {
    color: var(--error);
    font-weight: 500;
}

.comparison-table .digipin {
    color: var(--success);
    font-weight: 500;
}

/* === INFO GRID === */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.info-card {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    margin-top: 0;
    font-size: 1.1rem;
}

.info-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === CITY STATS === */
.city-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin: 28px 0;
}

.stat-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%);
    color: white;
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-box .number {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.stat-box .label {
    font-size: 0.85rem;
    opacity: 0.95;
    margin-top: 8px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* === ORDERED LIST === */
.content ol {
    margin-left: 24px;
    margin-bottom: 24px;
}

.content ol li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* === FOOTER === */
footer {
    background: var(--text-primary);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

footer .container {
    max-width: 800px;
}

footer p {
    margin: 8px 0;
    line-height: 1.6;
    opacity: 0.95;
}

footer p strong {
    font-weight: 600;
}

footer a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

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

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    header {
        padding: 40px 20px;
    }

    header h1 {
        font-size: 1.6rem;
    }

    header p {
        font-size: 1rem;
    }

    .content {
        padding: 24px;
        margin: 16px auto;
    }

    .content h2 {
        font-size: 1.5rem;
        margin-top: 24px;
    }

    .content h3 {
        font-size: 1.1rem;
    }

    .city-stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px;
    }

    main {
        padding: 24px 0;
    }

    footer {
        padding: 24px 20px;
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.4rem;
    }

    .content {
        padding: 16px;
    }

    .content h2 {
        font-size: 1.3rem;
    }

    .city-stats {
        grid-template-columns: 1fr;
    }

    .cta-button {
        display: block;
        text-align: center;
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px;
        font-size: 0.8rem;
    }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content {
    animation: fadeIn 0.3s ease-out;
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === PRINT STYLES === */
@media print {
    header {
        background: white;
        color: var(--text-primary);
        box-shadow: none;
        border-bottom: 2px solid var(--primary-color);
    }

    header h1 {
        color: var(--primary-color);
    }

    .breadcrumb,
    footer {
        display: none;
    }

    .content {
        box-shadow: none;
        page-break-inside: avoid;
    }
}

/* === CODE BLOCKS (if used) === */
code {
    background: var(--bg-tertiary);
    color: var(--error);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

pre {
    background: var(--bg-tertiary);
    border-left: 4px solid var(--primary-color);
    padding: 16px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 16px 0;
}

pre code {
    background: none;
    color: var(--text-primary);
    padding: 0;
}
