/* XRPL Canada Blog Styles - Global Stylesheet */
/* Import this file in all blog posts to maintain consistency */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
    --primary-red: #FF1744;
    --primary-red-dark: #C51162;
    --primary-red-light: #FF5252;
    --accent-blue: #00B8D4;
    --black: #0A0A0F;
    --black-light: #12121A;
    --gray: #1A1A24;
    --gray-light: #252532;
    --gray-lighter: #2E2E3D;
    --text-primary: #E8E8F0;
    --text-secondary: #A0A0B8;
    --text-tertiary: #6B6B85;
    --gradient-primary: linear-gradient(135deg, #FF1744 0%, #C51162 50%, #880E4F 100%);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--black);
    background-image:
        radial-gradient(at 20% 30%, rgba(255, 23, 68, 0.08) 0px, transparent 50%),
        radial-gradient(at 80% 70%, rgba(0, 184, 212, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-y: auto;
}

.hidden {
    display: none;
}

/* Language Toggle */
.lang-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    background: var(--gray-light);
    border: 1px solid var(--gray-lighter);
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.lang-toggle:hover {
    background: var(--gray-lighter);
    color: var(--text-primary);
}

/* Article Container */
.article-container,
.container {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 40px;
}

/* For old blog posts with different padding */
.container {
    padding: 80px 40px 120px;
}

/* Article Header */
.article-header,
.blog-header {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-header {
    margin-bottom: 60px;
}

.article-meta,
.blog-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 14px;
}

.blog-meta {
    margin-bottom: 20px;
}

.blog-meta i {
    color: var(--primary-red);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
    font-size: 14px;
}

.meta-item i {
    color: var(--primary-red);
    font-size: 16px;
}

.article-date,
.article-category {
    font-size: 14px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-category {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary-red);
    background: rgba(255, 23, 68, 0.1);
    padding: 6px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 23, 68, 0.2);
}

.category-tag {
    background: rgba(255, 23, 68, 0.1);
    color: var(--primary-red-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Blog intro box */
.blog-intro {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 23, 68, 0.05);
    border-left: 4px solid var(--primary-red);
    border-radius: 8px;
}

.article-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.article-content {
    font-size: 18px;
    line-height: 1.9;
    color: var(--text-primary);
}

.article-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-top: 60px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.article-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 28px;
}

.article-content ul {
    margin: 24px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.article-content strong {
    color: var(--primary-red);
    font-weight: 600;
}

.article-content a {
    color: var(--primary-red);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 23, 68, 0.3);
    transition: all 0.3s;
}

.article-content a:hover {
    border-bottom-color: var(--primary-red);
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 40px;
    transition: all 0.3s;
}

.back-link:hover {
    color: var(--primary-red);
    gap: 12px;
}

.back-link i {
    font-size: 18px;
}

/* Typography */
h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 60px 0 20px;
    color: var(--text-primary);
    line-height: 1.3;
}

h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 40px 0 16px;
    color: var(--text-primary);
}

p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 17px;
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Links in article content */
.article-content a,
.container a:not(nav a):not(.back-link) {
    color: var(--primary-red-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-content a:hover,
.container a:not(nav a):not(.back-link):hover {
    color: var(--primary-red);
    text-decoration: underline;
}

ul {
    margin: 20px 0 20px 30px;
}

li {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

/* Special Boxes */
.highlight-box {
    background: rgba(255, 23, 68, 0.08);
    border-left: 4px solid var(--primary-red);
    padding: 30px;
    margin: 40px 0;
    border-radius: 8px;
}

.highlight-box h3 {
    margin-top: 0;
    color: var(--primary-red-light);
}

.info-box {
    background: rgba(0, 184, 212, 0.08);
    border-left: 4px solid var(--accent-blue);
    padding: 30px;
    margin: 40px 0;
    border-radius: 8px;
}

.info-box h3 {
    margin-top: 0;
    color: var(--accent-blue);
}

/* Stat box (for banks case study) */
.stat-box {
    background: rgba(26, 26, 36, 0.6);
    border: 1px solid rgba(255, 23, 68, 0.2);
    border-radius: 16px;
    padding: 32px;
    margin: 40px 0;
}

.stat-box h3 {
    margin-top: 0;
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-red);
}

/* Callout box */
.callout {
    background: rgba(0, 184, 212, 0.1);
    border-left: 4px solid var(--accent-blue);
    border-radius: 8px;
    padding: 24px 28px;
    margin: 40px 0;
}

.callout p {
    margin-bottom: 0;
    color: var(--text-primary);
}

/* Story item (for weekly roundup) */
.story-item {
    background: rgba(26, 26, 36, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 32px;
    margin: 40px 0;
}

.story-item h3 {
    margin-top: 0;
    font-size: 24px;
    margin-bottom: 16px;
}

/* CTA box (for payment systems) */
.cta-box {
    margin: 60px 0;
    padding: 40px;
    background: var(--gradient-primary);
    border-radius: 16px;
    text-align: center;
}

.cta-box h3 {
    color: white;
    margin: 0 0 16px 0;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: white;
    color: var(--primary-red);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

/* Timeline (optional component) */
.timeline {
    margin: 40px 0;
    padding-left: 30px;
    border-left: 2px solid rgba(255, 23, 68, 0.3);
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--primary-red);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 23, 68, 0.2);
}

.timeline-year {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 8px;
}

/* Sources Section */
.sources {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.sources h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.sources ul {
    list-style: none;
    margin-left: 0;
}

.sources li {
    margin-bottom: 16px;
    padding-left: 30px;
    position: relative;
}

.sources li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: 700;
}

/* Footer */
footer {
    background: rgba(26, 26, 36, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 60px 40px;
    margin-top: 120px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.footer-section p {
    font-size: 14px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.footer-section a {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    transform: translateX(4px);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-red);
    transform: translateY(-4px);
}

.social-links i {
    font-size: 18px;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    color: var(--text-tertiary);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1,
    .article-title {
        font-size: 32px;
    }

    h2,
    .article-content h2 {
        font-size: 26px;
    }

    h3,
    .article-content h3 {
        font-size: 20px;
    }

    .article-container,
    .container {
        padding: 80px 20px 40px;
        margin: 40px auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .lang-toggle {
        top: 16px;
        right: 16px;
    }

    .blog-intro {
        font-size: 17px;
        padding: 20px;
    }

    .article-content {
        font-size: 17px;
    }
}

