:root {
    --bg-color: #050505;
    --card-bg: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #00f0ff;
    --accent-glow: rgba(0, 240, 255, 0.2);
    --border-color: #222222;
    --font-main: 'Inter', sans-serif;
    --spacing-unit: 1rem;
    --container-width: 1200px;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--accent-color);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* Header */
.site-header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    background: linear-gradient(45deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav a {
    margin-left: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.main-nav a:hover {
    color: var(--text-primary);
}

/* Hero */
.hero {
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero .highlight {
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--accent-glow);
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Card Grid */
.card-list-section {
    padding: 2rem 0 4rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Card Component (to be used by JS) */
.credit-card-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
}

.credit-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-color);
}

.card-image-wrapper {
    width: 100%;
    height: 180px;
    background: #222;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-wrapper img {
    max-width: 80%;
    max-height: 90%;
    object-fit: contain;
}

.card-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-benefit {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.card-actions {
    margin-top: auto;
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.btn-primary {
    background: var(--accent-color);
    color: #000;
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    margin: 0 0.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* Card Detail Page Styles */
.card-detail-page {
    padding-bottom: 4rem;
}

.card-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 0;
    gap: 2rem;
}

.card-hero-content {
    flex: 1;
}

.card-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.card-hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.card-hero-image img {
    max-width: 100%;
    max-height: 300px;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
    transform: rotate(-5deg);
    transition: transform 0.3s;
}

.card-hero-image img:hover {
    transform: rotate(0deg) scale(1.05);
}

.content-section {
    margin-bottom: 3rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.content-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
}

.content-section p {
    margin-bottom: 1rem;
    color: #ccc;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.futuristic-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.futuristic-table th,
.futuristic-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.futuristic-table th {
    color: var(--text-secondary);
    font-weight: 500;
    width: 40%;
}

.futuristic-table td {
    color: #fff;
    font-weight: 600;
}

/* Pros & Cons */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.pros h3,
.cons h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.pros h3 {
    color: #00ff88;
}

.cons h3 {
    color: #ff4d4d;
}

.pros ul,
.cons ul {
    list-style: none;
    padding-left: 0;
}

.pros li,
.cons li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: #ddd;
}

.pros li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00ff88;
}

.cons li::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: #ff4d4d;
}

/* Alert Box */
.alert-box {
    background: rgba(0, 240, 255, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    color: #fff;
}

/* FAQ Details */
details {
    background: #1a1a1a;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

details summary {
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    background: #222;
    transition: background 0.2s;
}

details summary:hover {
    background: #2a2a2a;
}

details p {
    padding: 1rem;
    margin: 0;
    color: #bbb;
}

.exclusion-list li {
    margin-bottom: 0.5rem;
    color: #bbb;
}

@media (max-width: 768px) {
    .card-hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 2rem 0;
    }

    .card-hero-stats {
        justify-content: center;
    }

    .pros-cons-grid {
        grid-template-columns: 1fr;
    }

    .card-hero h1 {
        font-size: 2rem;
    }
}
/* Blog Post Styling */
.blog-post {
    max-width: 800px; /* Optimal reading width */
    margin: 0 auto 4rem; /* Center and add bottom spacing */
    padding: 3rem 2rem; /* More breathing room */
}

.blog-post h1 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.blog-post h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    border-left: none; /* Override default section style */
    padding-left: 0;   /* Override default section style */
}

.blog-post h3 {
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.blog-post p {
    font-size: 1.1rem;
    line-height: 1.8; /* Better readability */
    margin-bottom: 1.5rem;
    color: #d0d0d0;
}

.blog-post ul, 
.blog-post ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-post li {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0.8rem;
    color: #d0d0d0;
}

.blog-post strong {
    color: #fff;
    font-weight: 600;
}

.blog-post hr {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 3rem 0;
}

.blog-post .alert-box {
    margin: 2rem 0;
    padding: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Responsive adjustments for blog */
@media (max-width: 768px) {
    .blog-post {
        padding: 2rem 1rem;
    }
    
    .blog-post h1 {
        font-size: 2rem;
    }
    
    .blog-post h2 {
        font-size: 1.5rem;
    }
}
