/* Hero Section */

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark-main);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

h1,
h2,
h3,
h4 {
    color: var(--text-light);
    margin-bottom: 0.5em;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1em;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1em;
    color: var(--text-secondary);
}

.hero {
    padding: 80px 0;
    text-align: center;
    background: radial-gradient(ellipse at center, #3A3A8A 0%, #10142C 70%);
}

.hero h1 .ai-text {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 20px auto 30px;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-buttons .btn svg {
    vertical-align: middle;
}

/* Search Filter Bar */

.filters {
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media only screen and (max-width:800px) {
    .filters {
        padding: 1rem;
    }
}

.search-filter-bar {
    padding: 30px 0;
    background-color: var(--bg-dark-main);
}

.search-filter-bar .container {
    display: flex;
    align-items: center;
    background-color: var(--bg-dark-card);
    padding: 15px 20px;
    border-radius: 10px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1;
    color: var(--text-muted);
}

.search-input-wrapper svg {
    margin-right: 10px;
}

.search-input-wrapper input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    width: 100%;
}

.search-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.filter-tags {
    max-width: 100%;
    overflow: scroll;
    white-space: nowrap;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    /* justify-content: center; */
}

.filter-tags::-webkit-scrollbar {
    display: none;
}

.filter-tags span {
    background-color: var(--bg-dark-main);
    color: var(--text-secondary);
    padding: 6px 12px;
    /* margin-left: 10px; */
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-tags span.active,
.filter-tags span:hover {
    background-color: var(--accent-blue);
    color: var(--text-light);
    /* color: black; */
}

/* Editor's Picks */
.editors-picks,
.explore-categories,
.trending-week,
.perfect-professional,
.faq-section {
    padding: 60px 0;
}

.editors-picks h2+p {
    text-align: center;
    margin-top: -1em;
    margin-bottom: 2em;
    color: var(--text-secondary);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media only screen and (max-width:768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width:600px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

.tool-card {
    background-color: var(--bg-dark-card) !important;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.tool-card:hover {
    /* transform: translateY(-5px); */
    box-shadow: 0px 3px 2px 2px var(--accent-blue-darker);
}

.tool-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.tool-card-header img,
.tool-card-header .icon-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    margin-right: 15px;
    background-color: #333A5E;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-card h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--text-light);
}

.tool-card p.tagline {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.display-none {
    display: none;
}

.tool-card p.description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.rating,
.users {
    display: flex;
    align-items: center;
}

.rating svg {
    color: #FFD700;
    margin-right: 5px;
}

.users svg {
    margin-right: 5px;
}

/* Placeholder for users icon */
.tool-category-tag {
    background-color: var(--bg-dark-main);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-top: 10px;
    display: inline-block;
}

span.tool-category-tag a {
    color: rgba(255, 255, 255, 0.8);
}

.trending-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #FFA500, #FF8C00);
    color: white;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 15px;
}


/* Explore Categories */
.explore-categories h2+p {
    text-align: center;
    margin-top: -1em;
    margin-bottom: 2em;
    color: var(--text-secondary);
}

.category-card {
    background-color: var(--bg-dark-card);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 2px 1px 1px var(--accent-blue-darker);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.category-icon.chatbots {
    background-color: #4A90E2;
    color: white;
}

.category-icon.image-gen {
    background-color: #BD10E0;
    color: white;
}

.category-icon.data-analytics {
    background-color: #50E3C2;
    color: white;
}

.category-icon.code-assist {
    background-color: #F5A623;
    color: white;
}

.category-icon.design-tools {
    background-color: #D0021B;
    color: white;
}

.category-icon.voice-ai {
    background-color: #7ED321;
    color: white;
}

.category-icon.video-tools {
    background-color: #4A4A4A;
    color: white;
}

.category-icon.writing {
    background-color: #9013FE;
    color: white;
}

.category-card h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-light);
}

.category-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Trending This Week */
.trending-week h2+p {
    text-align: center;
    margin-top: -1em;
    margin-bottom: 2em;
    color: var(--text-secondary);
}

.trending-list {
    list-style: none;
}

.trending-item {
    background-color: var(--bg-dark-card);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-color);
}

.trending-info {
    display: flex;
    align-items: center;
}

.trending-rank {
    width: 30px;
    height: 30px;
    background-color: var(--bg-dark-main);
    color: var(--text-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}

.trending-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0;
    color: var(--text-light);
}

.trending-details p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.trending-growth {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 1rem;
    font-weight: bold;
    color: var(--accent-green);
}

.trending-growth svg {
    vertical-align: middle;
    margin-right: 3px;
}

/* Perfect for Every Professional */
.perfect-professional h2+p {
    text-align: center;
    margin-top: -1em;
    margin-bottom: 2em;
    color: var(--text-secondary);
}

.professional-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media only screen and (max-width:768px) {
    .professional-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width:600px) {
    .professional-cards-grid {
        grid-template-columns: 1fr;
    }
}

.professional-card a {
    color: white;
}

.menu-container {
    padding: 1rem 2rem;
}

.menu-img-c {
    margin-block: 0.5rem;
}

.menu-list {
    padding-block: 1rem;
}

.menu-list .anchor {
    color: white;
}

.professional-card {
    background-color: var(--bg-dark-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.professional-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.professional-card p.description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.professional-card ul {
    list-style: none;
}

.professional-card li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-primary);
}

.professional-card li svg {
    color: var(--accent-blue);
    margin-right: 8px;
    vertical-align: middle;
}

/* Stay Ahead */
.stay-ahead {
    background-color: var(--bg-dark-card);
    /* Section specific background */
    padding: 60px 10px;
    border-radius: 12px;
    /* If container-wrapped */
    margin: 0 auto;
    max-width: 98%;
    /* If container-wrapped */
}

.stay-ahead .container {
    background-color: var(--bg-dark-card);
    /* Applied to container content if section is full-width */
    padding: 40px;
    border-radius: 12px;
}

.stay-ahead h2 {
    text-align: center;
    margin-bottom: 0.5em;
}

.stay-ahead p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--text-secondary);
}

.subscribe-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto 15px;
}

.subscribe-form input[type="email"] {
    flex-grow: 1;
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-dark-main);
    color: var(--text-primary);
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    outline: none;
}

.btn-primary {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.subscribe-form .btn-primary {
    border-radius: 0 8px 8px 0;
    white-space: nowrap;
}

.subscribe-form .btn-primary svg {
    vertical-align: middle;
    margin-right: 8px;
}

.subscribe-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media only screen and (max-width:600px) {
    .subscribe-form {
        flex-direction: col;
        gap: 0.5rem;
    }

    .subscribe-form .btn-primary {
        border-radius: 5px;
        white-space: nowrap;
    }

    .subscribe-form input[type="email"] {
        border-radius: 5px;
    }
}

/* FAQ Section */
.faq-item {
    background-color: var(--bg-dark-card);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.faq-item h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-light);
}

.faq-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

a {
    color: var(--accent-blue);
}