/* ========================================= */
/* Homepage Specific Styles (assets/docs/css/homepage.css)
/* ========================================= */

.homepage-content {
    /* General padding and max-width for the main content area of the homepage */
    max-width: 1000px; /* Adjust as needed */
    margin: 0 auto;
    padding: 2rem 1.5rem; /* Top/bottom, left/right padding */
}

/* --- Section Titles & Descriptions --- */
.content-section {
    margin-bottom: 4rem; /* Space between sections */
    padding: 2rem 0; /* Internal padding for sections */
    border-bottom: 1px solid var(--border-color-subtle); /* Subtle separator */
}

.content-section:last-child {
    border-bottom: none; /* No border on the last section */
}

.section-title {
    font-size: 2.5rem; /* Larger section titles */
    font-weight: 700;
    color: var(--text-heading);
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-description {
    font-size: 1.15rem; /* Slightly larger, more readable description */
    color: var(--text-muted);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto; /* Center and add space below */
}

/* --- Hero Section --- */
.hero-section {
    text-align: center;
    padding: 6rem 1.5rem; /* More vertical padding for hero */
    background: linear-gradient(180deg, var(--bg-dark), var(--bg-dark-2)); /* Subtle gradient */
    border-radius: var(--border-radius-lg); /* Rounded corners for the section itself */
    margin-bottom: 4rem;
    box-shadow: var(--shadow-xl);
}

.hero-section h1 {
    font-size: 3.5rem; /* Larger hero title */
    font-weight: 800;
    color: var(--color-accent); /* Use your accent color for the main title */
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 5px 15px rgba(var(--color-accent-rgb), 0.2);
}

.hero-section .tagline {
    font-size: 1.5rem; /* Larger, more impactful tagline */
    font-weight: 400;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* Space between buttons */
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Hero CTA Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.2rem;
    border-radius: var(--border-radius-lg);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.cta-button i, .cta-button .fa-brands {
    font-size: 1.3rem; /* Slightly larger icons for buttons */
}

.primary-cta {
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent)); /* Gradient button */
    color: var(--text-dark); /* Dark text on light gradient */
    border: none;
}

.primary-cta:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    opacity: 0.9;
}

.secondary-cta {
    background-color: var(--bg-dark-3); /* Darker background for secondary */
    color: var(--text-light);
    border: 1px solid var(--border-color-light);
}

.secondary-cta:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-dark-4);
    color: var(--color-primary); /* Change text color on hover */
}

/* --- Callout Grid (What You'll Find Here) --- */
.callout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem; /* Adjust padding for cards */
}

.callout-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-base);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 1px solid var(--border-color-subtle);
}

.callout-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-card-hover); /* A slightly lighter background on hover */
}

.callout-card i, .callout-card .fa-brands {
    font-size: 3rem; /* Larger icons for callouts */
    color: var(--color-primary); /* Primary color for icons */
    margin-bottom: 1rem;
}

.callout-card h3 {
    font-size: 1.4rem;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
}

.callout-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}


.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem; /* Adjust padding for cards */
}

.category-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-base);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    text-decoration: none; /* Remove underline for links */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push bottom content down */
    align-items: center;
    border: 1px solid var(--border-color-subtle);
    position: relative; /* For coming soon badge */
    overflow: hidden; /* For coming soon badge */
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-card-hover);
}

.category-card i, .category-card .fa-brands {
    font-size: 3rem;
    color: var(--color-accent); /* Accent color for categories */
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.5rem;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
}

.category-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1; /* Allows text to take up available space */
}

/* In assets/docs/css/homepage.css */

/* ... (previous styles) ... */

/* Specific styling for coming soon badge */
.category-card.coming-soon-wrapper {
    opacity: 0.7; /* Keep the card slightly dimmed */
    filter: grayscale(80%); /* Keep the card desaturated */
    pointer-events: none; /* Make card unclickable */
    cursor: default;
    /* Ensure no hover effects apply */
    transform: none !important;
    box-shadow: var(--shadow-card) !important;
    background-color: var(--bg-card) !important;
}

.category-card.coming-soon-wrapper:hover {
    transform: none !important;
    box-shadow: var(--shadow-card) !important;
    background-color: var(--bg-card) !important;
}

.category-card.coming-soon-wrapper .coming-soon-badge {
    position: absolute;
    top: 0; /* Position at the very top */
    right: 0; /* Position at the very right */
    transform: none; /* Remove any rotation or translation */
    background: linear-gradient(90deg, var(--color-warning), #ffed87); /* Use your warning color gradient */
    color: #333;
    font-size: 0.75rem; /* Slightly larger for readability if not rotated */
    font-weight: 700;
    padding: 0.3em 0.8em; /* Adjusted padding */
    border-bottom-left-radius: var(--border-radius-sm); /* Round the bottom-left corner */
    border-top-right-radius: var(--border-radius-base); /* Keep top-right sharp or slightly rounded to match card */
    border-top-left-radius: 0; /* No radius on top-left */
    border-bottom-right-radius: 0; /* No radius on bottom-right */
    box-shadow: 0 2px 10px rgba(255, 183, 13, 0.4);
    z-index: 11; /* Ensure it's above other elements in the card */
    white-space: nowrap;
    /* Optional: Small border on the bottom-left to give it a "folded corner" look */
    /* border-left: 1px solid rgba(0,0,0,0.1); */
    /* border-bottom: 1px solid rgba(0,0,0,0.1); */
}

body::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
}

body::-webkit-scrollbar-track {
    background: var(--bg-dark-1); /* Color of the scrollbar track */
}

body::-webkit-scrollbar-thumb {
    background: var(--color-primary); /* Color of the scrollbar thumb */
    border-radius: 10px; /* Rounded corners for the thumb */
    border: 2px solid var(--bg-dark-1); /* Border around the thumb, matching track background */
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-light); /* Color of the thumb on hover */
}

/* ... (rest of your homepage.css) ... */

/* --- Quick API Example Section --- */
.quick-api-example .section-description {
    margin-bottom: 2rem; /* Less space if it's a short example */
}

.quick-api-example pre {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Community Section --- */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.community-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-base);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 1px solid var(--border-color-subtle);
    display: flex; /* For vertical alignment */
    flex-direction: column;
    justify-content: space-between; /* Push link to bottom */
}

.community-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-card-hover);
}

.community-card i, .community-card .fa-brands {
    font-size: 3rem;
    color: var(--color-secondary); /* Use a secondary color for community icons */
    margin-bottom: 1rem;
}

.community-card h3 {
    font-size: 1.4rem;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
}

.community-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1; /* Allow text to grow */
    margin-bottom: 1.5rem; /* Space before link */
}

.community-card a {
    display: inline-block; /* Make link clickable area better */
    background-color: var(--color-primary-dark);
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-top: auto; /* Push to bottom */
}

.community-card a:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
}


/* --- Animations (for a smoother entrance) --- */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in.delay-1 {
    animation-delay: 0.2s;
}

.animate-fade-in.delay-2 {
    animation-delay: 0.4s;
}

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


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

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

    .hero-section {
        padding: 4rem 1rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .tagline {
        font-size: 1.2rem;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-button {
        width: 80%; /* Make buttons wider on small screens */
        max-width: 300px;
        margin: 0 auto;
    }

    .callout-grid,
    .categories-grid,
    .community-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
        padding: 0 0.5rem;
    }
}