/* Modern Design - FreePalestineChain */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

:root {
    /* Palette de couleurs moderne */
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-card-hover: rgba(30, 41, 59, 0.9);
    --primary: #10b981;
    --primary-glow: rgba(16, 185, 129, 0.5);
    --secondary: #3b82f6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(148, 163, 184, 0.1);
    --glass-border: rgba(255, 255, 255, 0.05);
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;

    /* Effets */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 40%);
    color: var(--text-main);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    line-height: 1.6;
}

/* Animations Globales */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 15px var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 25px var(--primary-glow);
    }
}

/* Scrollbar Moderne */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Architecture des Onglets */
.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    background: rgba(30, 41, 59, 0.4);
    padding: 8px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.tab-button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 20px;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tab-button:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.tab-button.active {
    color: white;
    background: var(--primary);
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* Contenu Principal */
.tab-content {
    display: none;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--glass-shadow);
    margin-bottom: 40px;
    animation: fadeIn 0.4s ease-out;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.tab-content.active {
    display: block;
}

/* Titres */
h1,
h2,
h3,
h4 {
    color: var(--text-main);
    margin-top: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
    display: inline-block;
}

h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Dashboard Info Blockchain */
#blockchainInfo {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 40px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

#blockchainInfo h3 {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

#totalBTC,
#totalBlocks {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.logo-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    padding: 20px;
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.2);
    border: 1px solid var(--glass-border);
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Grille de Fonctionnalités */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    justify-content: center;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.feature-button {
    margin-top: 20px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.feature-button:hover {
    background: var(--primary);
    color: white;
}

/* Formulaires Interactifs */
input,
select,
textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    box-sizing: border-box;
    /* Important pour le padding */
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    background: rgba(15, 23, 42, 0.8);
}

/* Boutons d'action */
button:not(.tab-button):not(.feature-button):not(.doc-nav-button) {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    width: auto;
    display: inline-block;
}

button:not(.tab-button):not(.feature-button):not(.doc-nav-button):hover {
    transform: translateY(-2px);
    background: #059669;
    /* Darker green */
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Listes de Blocs et Wallets */
ul {
    list-style: none;
    padding: 0;
}

.transaction,
#walletList li,
#mempoolList li,
#blocksList li {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 15px;
    transition: var(--transition);
}

.transaction:hover,
#walletList li:hover,
#mempoolList li:hover,
#blocksList li:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
    border-left: 4px solid var(--primary);
}

/* Code Blocks */
code {
    background: rgba(0, 0, 0, 0.3);
    color: #cbd5e1;
    font-family: 'Fira Code', monospace;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85em;
    border: 1px solid var(--border);
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

th:first-child {
    border-top-left-radius: 10px;
}

th:last-child {
    border-top-right-radius: 10px;
}

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

/* Documentation Wrapper */
.documentation-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.doc-nav-button {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--text-muted);
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.doc-nav-button.active {
    background: var(--secondary);
    color: white;
}

.doc-nav-button:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .tabs {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        border: none;
    }

    .tab-button {
        width: 100%;
        background: rgba(30, 41, 59, 0.8);
        text-align: center;
        margin-bottom: 5px;
    }

    .tab-button.active {
        transform: scale(1.02);
    }

    .tab-content {
        padding: 20px;
    }

    #blockchainInfo {
        flex-direction: column;
        gap: 15px;
    }
}
/* Info Section Centering */
.info-section {
    text-align: center;
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.info-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: left; /* Keep text readable */
}

.info-text {
    flex: 1;
    min-width: 300px;
}

.info-image {
    flex: 1;
    min-width: 250px;
    display: flex;
    justify-content: center;
}

.info-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.2));
}

/* Getting Started Centering */
.getting-started {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.step {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    background: rgba(255, 255, 255, 0.03);
    padding: 30px 20px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 20px;
    box-shadow: 0 0 15px var(--primary-glow);
}
