:root {
    --primary: #F4D0A2;
    --primary-dark: #daaa6b;
    --secondary: #43b581;
    --dark: #23272a;
    --darker: #1a1d20;
    --light: #f6f6f7;
    --accent: #ff5757;
    --text: #dcddde;
    --text-dark: #99aab5;
    --font-primary: "Polymath";
    --font-secondary: "Polymath";
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.highlight {
    color: var(--primary);
    font-weight: 700;
}

img {
    max-width: 100%;
}

/* Button Styles */
.btn-primary {
    display: inline-block;
    background-color: var(--primary);
    color: #1D2124;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
}

.btn-join {
    background-color: var(--secondary);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-join:hover {
    background-color: #3aa876;
    color: white;
}

.pulse {
    animation: pulse 2s infinite;
}

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

/* Header Styles */
header {
    background-color: var(--darker);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--light);
}

.logo span {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--text);
    font-weight: 600;
}

nav ul li a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/pattern.png');
    opacity: 0.05;
    pointer-events: none;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.hero-image img {
    max-width: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: perspective(500px) rotateY(-5deg);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--darker);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(114, 137, 218, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-dark);
}

/* Tools Section */
.tools {
    padding: 5rem 0;
    background-color: var(--dark);
}

.tools h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.tools-showcase {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.tool-preview {
    flex: 1;
}

.tool-preview img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(114, 137, 218, 0.3);
}

.tool-description {
    flex: 1;
}

.tool-description h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.tool-description p {
    margin-bottom: 1.5rem;
    color: white;
}

.tool-features {
    margin-bottom: 1.5rem;
    list-style: none;
}

.tool-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.tool-features i {
    color: var(--secondary);
    margin-right: 0.5rem;
}

.exclusive {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Community Section */
.community {
    padding: 5rem 0;
    background-color: var(--darker);
    text-align: center;
}

.community h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.discord-widget {
    margin-bottom: 3rem;
}

.discord-widget iframe {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(114, 137, 218, 0.3);
}

.community-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-dark) 100%);
    text-align: center;
    background-size: 200% 200%;
    animation: gradientFlow 8s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shineSweep 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shineSweep {
    0% {
        transform: rotate(30deg) translateX(-100%);
    }
    100% {
        transform: rotate(30deg) translateX(100%);
    }
}

/* Keep the rest of your CTA styles the same */
.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.cta .highlight {
    color: var(--darker);
}

.cta p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-primary {
    background-color: white;
    color: var(--primary);
    font-size: 1.2rem;
    padding: 15px 30px;
}

.cta .btn-primary:hover {
    background-color: var(--darker);
    color: white;
}

.cta .btn-primary i {
    margin-left: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--darker);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--primary);
}

.footer-logo p {
    color: var(--text-dark);
}

.footer-links h4, .footer-social h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: var(--text-dark);
}

.footer-links ul li a:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.inline-emoji {
    height: 2.5em;
    width: auto;
    vertical-align: middle;
    margin: 0 0.1em;
  }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero .container,
    .tools-showcase {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .tool-preview {
        margin-bottom: 2rem;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 70px);
        background-color: var(--darker);
        transition: var(--transition);
        z-index: 100;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 2rem;
    }
    
    nav ul li {
        margin: 1rem 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .community-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}


/* Statistics Page Styling */
.stats-hero {
    background: linear-gradient(135deg, #1a1c20 0%, #2c2e35 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
}

.stats-hero h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.stats-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.stats-section {
    margin-bottom: 50px;
    background: var(--darker);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.stats-section h2 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #F4D0A2;
    padding-bottom: 15px;
}

.stats-section h2 i {
    margin-right: 12px;
    color: #F4D0A2;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(244, 208, 162, 0.3);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 15px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--light);
}

.card-icon {
    display: block;
    font-size: 2rem;
    color: #F4D0A2;
    margin-bottom: 15px;
}

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

.chart-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid rgba(244, 208, 162, 0.2);
}

.chart-container h3 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--text);
    font-size: 1.2rem;
}

.full-width {
    grid-column: 1 / -1;
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.table-search {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.table-search i {
    color: #999;
    margin-right: 10px;
}

.table-search input {
    border: none;
    font-size: 1rem;
    padding: 8px;
    width: 100%;
    outline: none;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background-color: #f9f9f9;
    color: #444;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.data-table th:hover {
    background-color: #f0f0f0;
}

.data-table th i {
    margin-left: 5px;
    font-size: 0.8rem;
    opacity: 0.5;
}

.data-table td {
    padding: 15px;
    border-top: 1px solid #eee;
    color: #333;
}

.data-table tbody tr:hover {
    background-color: rgba(244, 208, 162, 0.1);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .stats-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .stats-section {
        padding: 20px 15px;
    }
    
    .stats-hero h2 {
        font-size: 2.2rem;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-value {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .stats-hero {
        padding: 40px 0;
    }
    
    .stats-hero h2 {
        font-size: 1.8rem;
    }
    
    .stats-section h2 {
        font-size: 1.5rem;
    }
}

/* Item rarity classes */
.rarity-common {
    color: #b0b0b0;
}
.rarity-uncommon {
    color: #4bc94b;
}
.rarity-rare {
    color: #4b6ec9;
}
.rarity-very-rare {
    color: #9b4bc9;
}
.rarity-extremely-rare {
    color: #c94b4b;
}
.rarity-unknown {
    color: #c9c94b;
}

.stat-subvalue {
    font-size: 0.9rem;
    color: #d6a856;
    margin-top: -8px;
}

/* Event Timeline enhancements */
.event-marker {
    cursor: pointer;
    position: relative;
}

.event-marker:hover::after {
    content: attr(data-description);
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
}