@import url('colors.css');
@import url('fonts.css');
@import url('header.css');
@import url('auth.css');
@import url('dashboard.css');
@import url('footer.css');
@import url('terms.css');
@import url('pricing.css');

/* Base Styles */
html {
    font-size: var(--font-base-size);
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: bold;
    margin-top: 0;
    line-height: 1.2;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, var(--primary-500), var(--primary-700));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Buttons */
.gradient-button {
    font-family: var(--font-primary);
    background: linear-gradient(90deg, var(--primary-500), var(--primary-700));
    color: var(--text-inverse);
    border: none;
    padding: 16px 32px;
    font-size: var(--font-medium);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

.gradient-button:hover {
    background: linear-gradient(90deg, var(--primary-600), var(--primary-800));
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    position: relative;
    padding: 3rem 0;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
}

.hero-title {
    font-size: var(--font-3xl);
    font-weight: bold;
    line-height: 1.2;
    margin-top: 0;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.button-group {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.button-group a {
    margin-bottom: 1rem;
    text-decoration: none;
}

/* Common Section Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-size: var(--font-2xl);
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
}

.section-description {
    text-align: center;
    margin-top: 1.5rem;
    font-size: var(--font-medium);
    color: var(--text-secondary);
}

/* JSON Section */
.json-section {
    padding: 5rem 0;
    transition: background-color 0.5s ease;
}

/* Animation classes for JSON sections */
.animate-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.json-section .section-title,
.json-section .section-description,
.json-section .json-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in .section-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.animate-in .json-container {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.animate-in .section-description {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

/* JSON Section 1 - Player Data */
.json-section-1 {
    background-color: var(--bg-secondary);
}

/* JSON Section 2 - Analytics */
.json-section-2 {
    background-color: var(--bg-primary);
}

/* JSON Section 3 - Integration */
.json-section-3 {
    background-color: var(--bg-tertiary);
}

.json-container {
    background-color: var(--bg-code);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease;
}

/* Different top border colors for each JSON container */
.json-section-1 .json-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-700));
}

.json-section-2 .json-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-500), var(--accent-700));
}

.json-section-3 .json-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-500), var(--secondary-700));
}

.json-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.json-display {
    margin: 0;
    color: var(--text-code);
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: var(--font-sm);
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: var(--font-lg);
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: var(--font-base);
}

/* Why Us Section */
.why-us-section {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

.why-us-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.why-us-text {
    flex: 1;
}

.why-us-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.why-us-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.25rem;
    font-size: var(--font-medium);
}

.why-us-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-500);
    font-weight: bold;
}

.why-us-stats {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

.stat-item {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.stat-number {
    display: block;
    font-size: var(--font-3xl);
    font-weight: bold;
    color: var(--primary-500);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: var(--font-base);
    color: var(--text-secondary);
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 1.5rem;
    font-weight: bold;
    font-size: var(--font-medium);
    cursor: pointer;
    position: relative;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--primary-500);
}

.faq-item.active .faq-question::after {
    content: "−";
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

/* FAQ Animations */
.faq-section.animate-hidden {
    opacity: 0;
    transform: translateY(30px);
}

.faq-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.faq-section .section-title,
.faq-section .faq-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.faq-section.animate-in .section-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.faq-section.animate-in .faq-container {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.faq-section.animate-in .faq-item {
    opacity: 0;
    animation: fadeInUp 0.5s forwards;
}

.faq-section.animate-in .faq-item:nth-child(1) {
    animation-delay: 0.4s;
}

.faq-section.animate-in .faq-item:nth-child(2) {
    animation-delay: 0.5s;
}

.faq-section.animate-in .faq-item:nth-child(3) {
    animation-delay: 0.6s;
}

.faq-section.animate-in .faq-item:nth-child(4) {
    animation-delay: 0.7s;
}

.faq-section.animate-in .faq-item:nth-child(5) {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Get Started Section */
.get-started-section {
    padding: 6rem 0;
    background-color: var(--bg-primary);
    text-align: center;
}

.get-started-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.get-started-title {
    font-size: var(--font-3xl);
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.get-started-description {
    font-size: var(--font-lg);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
}

.get-started-cta .gradient-button {
    padding: 18px 36px;
    font-size: var(--font-medium);
}

/* Make sure the Get Started section also gets the scroll animation */
.get-started-section.animate-hidden {
    opacity: 0;
    transform: translateY(30px);
}

.get-started-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.get-started-section .get-started-title,
.get-started-section .get-started-description,
.get-started-section .get-started-cta {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.get-started-section.animate-in .get-started-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.get-started-section.animate-in .get-started-description {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.get-started-section.animate-in .get-started-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

/* Responsive */
@media (min-width: 640px) {
    .hero-title {
        font-size: var(--font-4xl);
    }
    
    .main-content {
        padding: 0 5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-us-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .why-us-content {
        flex-direction: row;
    }
    
    .why-us-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* And More Section */
.and-more-section {
    padding: 5rem 0;
    background-color: var(--bg-primary);
    text-align: center;
}

.and-more-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.and-more-dots {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-700));
    border-radius: 50%;
    margin: 0 8px;
    opacity: 0;
    animation: appear 1.5s infinite alternate;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.5s;
}

.dot:nth-child(3) {
    animation-delay: 1s;
}

@keyframes appear {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.and-more-description {
    font-size: var(--font-lg);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.and-more-cta {
    margin-top: 1rem;
}

/* Make sure the "And More" section also gets the scroll animation */
.and-more-section.animate-hidden {
    opacity: 0;
    transform: translateY(30px);
}

.and-more-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.and-more-section .section-title,
.and-more-section .and-more-dots,
.and-more-section .and-more-description,
.and-more-section .and-more-cta {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.and-more-section.animate-in .section-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.and-more-section.animate-in .and-more-dots {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.and-more-section.animate-in .and-more-description {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.and-more-section.animate-in .and-more-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.api-display {
    background: #1a1a2e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.endpoint-header {
    background: #222236;
    padding: 12px 20px;
    border-bottom: 1px solid #333350;
    font-family: monospace;
}
.method {
    background: #10b981;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}
.endpoint {
    color: #e2e2ff;
    margin-left: 8px;
}
.json-result {
    background-color: var(--bg-code);
    border-radius: 8px;
    padding: 20px;
    font-family: monospace;
    white-space: pre;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 500px;
    color: var(--text-code);
    font-size: 14px;
    line-height: 1.5;
}

/* Live Badge and Live Data Styles */
.live-badge {
    background-color: var(--primary-600);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: 10px;
    animation: pulse 2s infinite;
    font-weight: bold;
}

.example-badge {
    background-color: var(--gray-600);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: 10px;
    font-weight: bold;
}

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

.json-result.live-data {
    border-left: 4px solid var(--primary-600);
    transition: all 0.5s ease;
}

.api-timestamp {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
    margin-top: 8px;
    font-style: italic;
}

/* Add a custom scrollbar style for the JSON result */
.json-result::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.json-result::-webkit-scrollbar-track {
    background: var(--bg-code);
    border-radius: 4px;
}

.json-result::-webkit-scrollbar-thumb {
    background: var(--primary-700);
    border-radius: 4px;
}

.json-result::-webkit-scrollbar-thumb:hover {
    background: var(--primary-600);
}
