/* Ledger Wallet Website - Red-Black Theme */
:root {
    --primary-red: #DC143C;
    --dark-red: #8B0000;
    --light-red: #FF6B6B;
    --black: #000000;
    --dark-gray: #1a1a1a;
    --medium-gray: #2d2d2d;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --text-gray: #cccccc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-gray);
    background-color: var(--black);
    font-size: 16px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    border-bottom: 3px solid var(--primary-red);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(220, 20, 60, 0.3);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-red);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav a:hover {
    color: var(--primary-red);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.language-switcher a {
    color: var(--text-gray);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.language-switcher a:hover,
.language-switcher a.active {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--black) 100%);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 3rem;
    border: 2px solid var(--primary-red);
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto;
}

/* Content Blocks */
.content-block {
    background: var(--dark-gray);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.content-block h2 {
    color: var(--primary-red);
    font-size: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--medium-gray);
    padding-bottom: 0.5rem;
}

.content-block h3 {
    color: var(--light-red);
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.content-block p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-block ul,
.content-block ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-block li {
    margin-bottom: 0.5rem;
}

/* Images */
.content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    border: 2px solid var(--primary-red);
    box-shadow: 0 4px 8px rgba(220, 20, 60, 0.3);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--medium-gray);
    border-radius: 8px;
    overflow: hidden;
}

table th {
    background: var(--primary-red);
    color: var(--white);
    padding: 1rem;
    text-align: left;
    font-weight: bold;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid var(--dark-gray);
    color: var(--text-gray);
}

table tr:hover {
    background: var(--dark-gray);
}

table tr:last-child td {
    border-bottom: none;
}

/* FAQ Section */
.faq-section {
    background: var(--dark-gray);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    border: 2px solid var(--primary-red);
}

.faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--medium-gray);
    padding-bottom: 1rem;
}

.faq-question {
    color: var(--primary-red);
    font-weight: bold;
    cursor: pointer;
    padding: 1rem;
    background: var(--medium-gray);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    transition: background 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: var(--dark-gray);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-red);
    transition: transform 0.3s;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1rem;
    color: var(--text-gray);
}

.faq-answer.active {
    max-height: 500px;
    padding: 1rem;
}

/* Internal Links */
.internal-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted var(--primary-red);
    transition: all 0.3s;
}

.internal-link:hover {
    color: var(--light-red);
    border-bottom-color: var(--light-red);
}

/* Footer */
footer {
    background: var(--dark-gray);
    border-top: 3px solid var(--primary-red);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-red);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .language-switcher {
        margin-top: 1rem;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    table th,
    table td {
        padding: 0.5rem;
    }
    
    .content-block {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
    }
    
    .content-block h2 {
        font-size: 1.5rem;
    }
    
    .content-block h3 {
        font-size: 1.2rem;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .language-switcher {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

