/* Website-specific styles */

/* Distribution Section */
.distribution-section {
    margin-top: 50px;
    padding: 40px;
    background: #2c3e50;
    border: 6px solid #000;
    border-radius: 0;
    box-shadow:
            inset 0 0 0 4px #34495e,
            0 10px 0 #000,
            0 10px 30px rgba(0,0,0,0.7);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.2em; /* Increased from 1.8em */
    color: #f39c12;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 40px;
    text-shadow:
            3px 3px 0 #000,
            4px 4px 0 rgba(0,0,0,0.5);
    padding-bottom: 20px;
    border-bottom: 4px solid #f39c12;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: #e74c3c;
    animation: titleUnderline 2s infinite;
}

@keyframes titleUnderline {
    0%, 100% { width: 200px; }
    50% { width: 300px; }
}

.distribution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.distribution-card {
    background: #1a252f;
    border: 4px solid #000;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
    box-shadow:
            inset 0 0 10px rgba(0,0,0,0.5),
            0 4px 0 #000;
}

.distribution-card:hover {
    transform: translateY(-5px);
    box-shadow:
            inset 0 0 10px rgba(0,0,0,0.5),
            0 8px 0 #000,
            0 8px 20px rgba(243, 156, 18, 0.6);
}

.distribution-card.highlight {
    border-color: #f39c12;
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
}

.distribution-icon {
    font-size: 5em; /* Increased from 4em */
    margin-bottom: 20px;
    animation: float 3s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.distribution-percentage {
    font-size: 3.5em; /* Increased from 3em */
    font-weight: bold;
    color: #2ecc71;
    text-shadow:
            0 0 10px #2ecc71,
            3px 3px 0 #000;
    margin-bottom: 15px;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px #2ecc71, 3px 3px 0 #000; }
    to { text-shadow: 0 0 20px #2ecc71, 3px 3px 0 #000; }
}

.distribution-label {
    font-size: 1.1em; /* Increased from 1em */
    color: #f39c12;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0 #000;
}

.distribution-description {
    font-size: 0.75em; /* Increased from 0.6em */
    color: #95a5a6;
    line-height: 1.6;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #34495e;
}

/* Leaderboard Section */
.leaderboard-section {
    margin-top: 50px;
    padding: 40px;
    background: #2c3e50;
    border: 6px solid #000;
    border-radius: 0;
    box-shadow:
            inset 0 0 0 4px #34495e,
            0 10px 0 #000,
            0 10px 30px rgba(0,0,0,0.7);
    position: relative;
}

.leaderboard-search {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: #1a252f;
    padding: 20px;
    border: 4px solid #000;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.search-input {
    flex: 1;
    padding: 15px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75em; /* Increased from 0.6em */
    background: #0f1419;
    color: #3498db;
    border: 3px solid #000;
    border-left: 6px solid #3498db;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
    outline: none;
    transition: all 0.3s;
}

.search-input:focus {
    border-left-color: #2ecc71;
    color: #2ecc71;
    box-shadow:
            inset 0 2px 5px rgba(0,0,0,0.5),
            0 0 10px rgba(46, 204, 113, 0.5);
}

.search-input::placeholder {
    color: #7f8c8d;
}

.search-button,
.clear-button {
    padding: 15px 25px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75em; /* Increased from 0.6em */
    cursor: pointer;
    border: 4px solid #000;
    text-transform: uppercase;
    transition: all 0.2s;
    white-space: nowrap;
}

.search-button {
    background: #2ecc71;
    color: #000;
    box-shadow: 0 4px 0 #27ae60;
}

.search-button:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #1e8449;
}

.search-button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #1e8449;
}

.clear-button {
    background: #e74c3c;
    color: #fff;
    box-shadow: 0 4px 0 #c0392b;
}

.clear-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #a93226;
}

.clear-button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #a93226;
}

.search-result {
    margin-bottom: 20px;
    padding: 20px;
    background: #1a252f;
    border: 4px solid #000;
    border-left: 6px solid #f39c12;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
    display: none;
}

.search-result.active {
    display: block;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.search-result-title {
    font-size: 0.85em; /* Increased from 0.7em */
    color: #f39c12;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0 #000;
}

.search-result-content {
    font-size: 0.75em; /* Increased from 0.6em */
    color: #95a5a6;
    line-height: 1.8;
}

.search-result-content strong {
    color: #2ecc71;
    text-shadow: 0 0 5px rgba(46, 204, 113, 0.5);
}

/* Scrollable Leaderboard Container */
.leaderboard-container {
    background: #1a252f;
    border: 4px solid #000;
    padding: 0;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
}

/* Wrapper for scrollable table */
.leaderboard-wrapper {
    max-height: 650px; /* Increased from 600px to accommodate larger fonts */
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar styling */
.leaderboard-wrapper::-webkit-scrollbar {
    width: 14px; /* Increased from 12px */
}

.leaderboard-wrapper::-webkit-scrollbar-track {
    background: #0f1419;
    border-left: 2px solid #000;
}

.leaderboard-wrapper::-webkit-scrollbar-thumb {
    background: #f39c12;
    border: 2px solid #000;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

.leaderboard-wrapper::-webkit-scrollbar-thumb:hover {
    background: #e67e22;
}

/* Firefox scrollbar */
.leaderboard-wrapper {
    scrollbar-width: thin;
    scrollbar-color: #f39c12 #0f1419;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8em; /* Increased from 0.6em */
}

/* Sticky header */
.leaderboard-table thead {
    background: #0f1419;
    border-bottom: 4px solid #f39c12;
    position: sticky;
    top: 0;
    z-index: 10;
}

.leaderboard-table th {
    padding: 18px 12px; /* Increased from 15px 10px */
    text-align: left;
    color: #f39c12;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 #000;
    border-right: 2px solid #2c3e50;
    background: #0f1419;
}

.leaderboard-table th:last-child {
    border-right: none;
}

.leaderboard-table tbody tr {
    border-bottom: 2px solid #2c3e50;
    transition: all 0.3s;
}

.leaderboard-table tbody tr:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateX(5px);
}

.leaderboard-table tbody tr.highlighted {
    background: rgba(243, 156, 18, 0.2);
    border-left: 6px solid #f39c12;
}

.leaderboard-table td {
    padding: 18px 12px; /* Increased from 15px 10px */
    color: #95a5a6;
    font-family: 'Courier New', monospace;
}

.leaderboard-rank {
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
}

.leaderboard-rank.top-1 {
    color: #f1c40f;
    text-shadow: 0 0 10px #f1c40f, 2px 2px 0 #000;
    font-size: 1.3em; /* Increased from 1.2em */
}

.leaderboard-rank.top-2 {
    color: #c0c0c0;
    text-shadow: 0 0 8px #c0c0c0, 2px 2px 0 #000;
    font-size: 1.1em; /* Added for emphasis */
}

.leaderboard-rank.top-3 {
    color: #cd7f32;
    text-shadow: 0 0 8px #cd7f32, 2px 2px 0 #000;
    font-size: 1.1em; /* Added for emphasis */
}

.leaderboard-wallet {
    color: #3498db;
    text-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
    word-break: break-all;
}

.leaderboard-stat {
    font-weight: bold;
    color: #2ecc71;
    text-shadow: 0 0 5px rgba(46, 204, 113, 0.3);
}

.leaderboard-winrate {
    font-weight: bold;
}

.leaderboard-winrate.excellent {
    color: #2ecc71;
    text-shadow: 0 0 8px #2ecc71;
}

.leaderboard-winrate.good {
    color: #f39c12;
    text-shadow: 0 0 8px #f39c12;
}

.leaderboard-winrate.poor {
    color: #e74c3c;
}

.empty-leaderboard {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-size: 0.85em; /* Increased from 0.7em */
}

/* Roadmap Section */
.roadmap-section {
    margin-top: 50px;
    padding: 40px;
    background: #2c3e50;
    border: 6px solid #000;
    border-radius: 0;
    box-shadow: inset 0 0 0 4px #34495e, 0 10px 0 #000, 0 10px 30px rgba(0,0,0,0.7);
    position: relative;
}

.roadmap-container {
    margin-top: 30px;
}

.roadmap-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* Timeline line */
.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #f39c12 0%, #e74c3c 100%);
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}

.roadmap-item {
    position: relative;
    padding-left: 80px;
    padding-bottom: 40px;
    display: flex;
    align-items: flex-start;
}

.roadmap-item:last-child {
    padding-bottom: 0;
}

.roadmap-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: #f39c12;
    border: 4px solid #000;
    box-shadow: 0 4px 0 #e67e22, 0 4px 10px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    color: #000;
    text-shadow: 2px 2px 0 rgba(255,255,255,0.3);
    z-index: 2;
    animation: markerPulse 2s infinite;
}

@keyframes markerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.roadmap-content {
    flex: 1;
    background: #1a252f;
    border: 4px solid #000;
    padding: 25px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5), 0 4px 0 #000;
    position: relative;
    transition: all 0.3s;
}

.roadmap-content:hover {
    transform: translateX(10px);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5), 0 6px 0 #000, 0 6px 20px rgba(243, 156, 18, 0.4);
}

/* Arrow pointing from marker to content */
.roadmap-content::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 15px solid #000;
}

.roadmap-content::after {
    content: '';
    position: absolute;
    left: -11px;
    top: 22px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 11px solid #1a252f;
}

.roadmap-title {
    font-size: 1.1em;
    color: #f39c12;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 0 #000;
    letter-spacing: 1px;
}

.roadmap-description {
    font-size: 0.75em;
    color: #95a5a6;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.roadmap-status {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.65em;
    font-weight: bold;
    border: 3px solid #000;
    box-shadow: 2px 2px 0 #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-progress {
    background: #2ecc71;
    color: #000;
    animation: statusBlink 1.5s infinite;
}

.status-planned {
    background: #3498db;
    color: #fff;
}

.status-future {
    background: #9b59b6;
    color: #fff;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .roadmap-timeline::before {
        left: 20px;
    }

    .roadmap-item {
        padding-left: 60px;
    }

    .roadmap-marker {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }

    .roadmap-content {
        padding: 20px;
    }

    .roadmap-title {
        font-size: 0.9em;
    }

    .roadmap-description {
        font-size: 0.65em;
    }
}


/* Responsive adjustments */
@media (max-width: 1200px) {
    .distribution-grid {
        grid-template-columns: 1fr;
    }

    .leaderboard-search {
        flex-direction: column;
    }

    .search-button,
    .clear-button {
        width: 100%;
    }

    .leaderboard-wrapper {
        max-height: 550px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5em; /* Increased from 1.2em */
    }

    .distribution-card {
        padding: 20px;
    }

    .distribution-icon {
        font-size: 3.5em; /* Increased from 3em */
    }

    .distribution-percentage {
        font-size: 2.5em; /* Increased from 2em */
    }

    .distribution-label {
        font-size: 0.9em;
    }

    .distribution-description {
        font-size: 0.65em;
    }

    .leaderboard-table {
        font-size: 0.65em; /* Increased from 0.5em */
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 12px 7px; /* Increased from 10px 5px */
    }

    .search-input,
    .search-button,
    .clear-button {
        font-size: 0.65em;
    }

    .leaderboard-wrapper {
        max-height: 450px;
    }
}
