/* ============================================
   HOMEPAGE - AI TOOLS DIRECTORY STYLES
   ============================================ */

/* Hero Section */
.hp-hero {
    background: linear-gradient(180deg, #F3EAFF 0%, #FFFFFF 100%);
    padding: 60px 0 40px;
}
.hp-hero__inner {
    max-width: 720px;
    margin: 0 auto;
}
.hp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 24px;
}
.hp-hero__badge i {
    color: #7C3AED;
}
.hp-hero__badge strong {
    color: #7C3AED;
}
.hp-hero__title {
    font-size: 2.8rem;
    line-height: 1.15;
    margin-bottom: 16px;
    color: #111827;
}
.hp-hero__highlight {
    color: #7C3AED;
}
.hp-hero__desc {
    font-size: 1.05rem;
    color: #6B7280;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Search */
.hp-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}
.hp-search__form {
    position: relative;
}
.hp-search__input-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 4px 4px 4px 16px;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.06);
    transition: border-color 0.2s;
}
.hp-search__input-wrap:focus-within {
    border-color: #7C3AED;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.12);
}
.hp-search__icon {
    color: #9CA3AF;
    font-size: 16px;
    margin-right: 10px;
    flex-shrink: 0;
}
.hp-search__input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #111827;
    background: transparent;
    padding: 10px 0;
    font-family: 'fontregular', Verdana;
}
.hp-search__input::placeholder {
    color: #9CA3AF;
}
.hp-search__btn {
    background: #7C3AED;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'fontbold', Verdana;
    white-space: nowrap;
}
.hp-search__btn:hover {
    background: #6D28D9;
}
.hp-search__results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    z-index: 100;
    max-height: 420px;
    overflow-y: auto;
    padding: 8px;
}
.hp-search__result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #111827;
    transition: background 0.15s;
}
.hp-search__result-item:hover {
    background: #F3F4F6;
    text-decoration: none;
    color: #111827;
}
.hp-search__result-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.hp-search__result-info {
    flex: 1;
    min-width: 0;
}
.hp-search__result-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hp-search__result-desc {
    font-size: 12px;
    color: #6B7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hp-search__result-rating {
    color: #F59E0B;
    font-size: 13px;
    flex-shrink: 0;
}
.hp-search__no-results {
    text-align: center;
    padding: 20px;
    color: #6B7280;
    font-size: 14px;
}
.hp-search__loading {
    text-align: center;
    padding: 20px;
    color: #9CA3AF;
}

/* Popular tags */
.hp-search__tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.hp-search__tags-label {
    font-size: 13px;
    color: #9CA3AF;
}
.hp-search__tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    background: #fff;
    border: 1px solid #E5E7EB;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
}
.hp-search__tag:hover {
    background: #7C3AED;
    color: #fff;
    border-color: #7C3AED;
    text-decoration: none;
}

/* Stats Section */
.hp-stats {
    padding: 48px 0;
    border-bottom: 1px solid #F3F4F6;
}
.hp-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}
.hp-stats__icon {
    font-size: 24px;
    color: #7C3AED;
    margin-bottom: 8px;
}
.hp-stats__number {
    font-size: 2rem;
    font-family: 'fontbold', Verdana;
    color: #111827;
    line-height: 1.2;
}
.hp-stats__label {
    font-size: 13px;
    color: #6B7280;
    margin-top: 2px;
}

/* Featured Tools Section */
.hp-featured {
    padding: 48px 0;
}
.hp-featured__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
}
.hp-featured__title {
    font-size: 1.6rem;
    margin-bottom: 4px;
    color: #111827;
}
.hp-featured__subtitle {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 0;
}
.hp-featured__viewall {
    font-size: 14px;
    color: #7C3AED;
    text-decoration: none;
    white-space: nowrap;
    margin-top: 4px;
}
.hp-featured__viewall:hover {
    color: #6D28D9;
    text-decoration: none;
}

/* Tool Card */
.hp-tool-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px;
    height: 100%;
    text-decoration: none;
    color: #111827;
    transition: all 0.2s;
}
.hp-tool-card:hover {
    border-color: #7C3AED;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.1);
    text-decoration: none;
    color: #111827;
    transform: translateY(-2px);
}
.hp-tool-card__top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.hp-tool-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    font-family: 'fontbold', Verdana;
}
.hp-tool-card__info {
    flex: 1;
    min-width: 0;
}
.hp-tool-card__name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #111827;
    font-family: 'fontbold', Verdana;
}
.hp-tool-card__desc {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hp-tool-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #6B7280;
}
.hp-tool-card__rating {
    color: #111827;
    font-weight: 600;
}
.hp-tool-card__rating i {
    color: #F59E0B;
    font-size: 11px;
}
.hp-tool-card__traffic {
    color: #6B7280;
    font-size: 12px;
}
.hp-tool-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}
.hp-tool-card__tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    background: #F3F4F6;
    font-size: 11px;
    color: #374151;
    font-weight: 500;
}
.hp-tool-card__trending {
    font-size: 11px;
    color: #10B981;
    display: flex;
    align-items: center;
    gap: 4px;
}
.hp-tool-card__trending i {
    font-size: 10px;
}

/* Data and Guides Section */
.hp-data-guides {
    background: #F9FAFB;
    border-top: 1px solid #F3F4F6;
}
.dark-theme .hp-data-guides {
    background: #0F172A;
    border-color: #1E293B;
}

/* Submit Your Tool Section */
.hp-submit-tool {
    padding: 48px 0;
}
.hp-submit-tool__inner {
    background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
    border-radius: 16px;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    position: relative;
}
.hp-submit-tool__content {
    flex: 1;
    position: relative;
    z-index: 1;
}
.hp-submit-tool__title {
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 12px;
}
.hp-submit-tool__desc {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 540px;
}
.hp-submit-tool__features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}
.hp-submit-tool__features span {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hp-submit-tool__features i {
    color: #A5F3FC;
    font-size: 15px;
}
.hp-submit-tool__btn {
    display: inline-block;
    background: #fff;
    color: #7C3AED;
    font-family: 'fontbold', Verdana;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}
.hp-submit-tool__btn:hover {
    background: #F3F4F6;
    color: #6D28D9;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.hp-submit-tool__icon-side {
    flex-shrink: 0;
    font-size: 80px;
    color: rgba(255,255,255,0.15);
    position: relative;
    z-index: 1;
}
@media (max-width: 767px) {
    .hp-submit-tool__inner {
        flex-direction: column;
        padding: 32px 24px;
        text-align: center;
        gap: 20px;
    }
    .hp-submit-tool__features {
        justify-content: center;
    }
    .hp-submit-tool__icon-side {
        font-size: 48px;
    }
}

/* Trending Section */
.hp-trending {
    padding: 48px 0;
    background: #FAFAFA;
}
.hp-trending__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
}
.hp-trending__title {
    font-size: 1.6rem;
    margin-bottom: 4px;
    color: #111827;
}
.hp-trending__subtitle {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 0;
}
.hp-trending__viewall {
    font-size: 14px;
    color: #7C3AED;
    text-decoration: none;
    white-space: nowrap;
    margin-top: 4px;
}
.hp-trending__viewall:hover {
    color: #6D28D9;
    text-decoration: none;
}
.hp-trending__table-wrap {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    overflow: hidden;
}
.hp-trending__table {
    width: 100%;
    border-collapse: collapse;
}
.hp-trending__table thead th {
    background: #F9FAFB;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #E5E7EB;
    text-align: left;
}
.hp-trending__table tbody tr {
    border-bottom: 1px solid #F3F4F6;
    transition: background 0.15s;
}
.hp-trending__table tbody tr:last-child {
    border-bottom: none;
}
.hp-trending__table tbody tr:hover {
    background: #F9FAFB;
}
.hp-trending__table tbody td {
    padding: 14px 16px;
    font-size: 14px;
    color: #374151;
    vertical-align: middle;
}
.hp-trending__rank {
    font-weight: 600;
    color: #9CA3AF;
    width: 40px;
}
.hp-trending__tool {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #111827;
}
.hp-trending__tool:hover {
    color: #7C3AED;
    text-decoration: none;
}
.hp-trending__tool-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.hp-trending__tool-name {
    font-weight: 600;
    font-size: 14px;
}
.hp-trending__growth {
    color: #10B981;
    font-weight: 500;
}
.hp-trending__growth i {
    font-size: 12px;
}

/* Browse by Category */
.hp-categories {
    padding: 48px 0;
}
.hp-categories__title {
    font-size: 1.6rem;
    margin-bottom: 4px;
    color: #111827;
}
.hp-categories__subtitle {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 0;
}
.hp-categories__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}
.hp-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    text-decoration: none;
    color: #111827;
    transition: all 0.2s;
    width: 160px;
}
.hp-cat-card:hover {
    border-color: #7C3AED;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.1);
    text-decoration: none;
    color: #111827;
    transform: translateY(-2px);
}
.hp-cat-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 10px;
}
.hp-cat-card__name {
    font-size: 13px;
    font-weight: 600;
    font-family: 'fontbold', Verdana;
    margin-bottom: 2px;
}
.hp-cat-card__count {
    font-size: 12px;
    color: #9CA3AF;
}
.hp-categories__viewall {
    font-size: 14px;
    color: #7C3AED;
    text-decoration: none;
}
.hp-categories__viewall:hover {
    color: #6D28D9;
    text-decoration: none;
}

/* WP Content Section */
.hp-content {
    padding: 48px 0;
}

/* Dark Theme Overrides */
.dark-theme .hp-hero {
    background: linear-gradient(180deg, #1a0a2e 0%, #111827 100%);
}
.dark-theme .hp-hero__title,
.dark-theme .hp-featured__title,
.dark-theme .hp-trending__title,
.dark-theme .hp-categories__title {
    color: #F9FAFB;
}
.dark-theme .hp-hero__desc,
.dark-theme .hp-featured__subtitle,
.dark-theme .hp-trending__subtitle,
.dark-theme .hp-categories__subtitle {
    color: #9CA3AF;
}
.dark-theme .hp-hero__badge {
    background: #1F2937;
    border-color: #374151;
    color: #9CA3AF;
}
.dark-theme .hp-search__input-wrap {
    background: #1F2937;
    border-color: #374151;
}
.dark-theme .hp-search__input {
    color: #F9FAFB;
}
.dark-theme .hp-search__results {
    background: #1F2937;
    border-color: #374151;
}
.dark-theme .hp-search__result-item:hover {
    background: #374151;
}
.dark-theme .hp-search__result-name {
    color: #F9FAFB;
}
.dark-theme .hp-search__tag {
    background: #1F2937;
    border-color: #374151;
    color: #D1D5DB;
}
.dark-theme .hp-stats {
    border-color: #374151;
}
.dark-theme .hp-stats__number {
    color: #F9FAFB;
}
.dark-theme .hp-tool-card {
    background: #1F2937;
    border-color: #374151;
}
.dark-theme .hp-tool-card:hover {
    border-color: #7C3AED;
}
.dark-theme .hp-tool-card__name {
    color: #F9FAFB;
}
.dark-theme .hp-tool-card__rating {
    color: #F9FAFB;
}
.dark-theme .hp-tool-card__tag {
    background: #374151;
    color: #D1D5DB;
}
.dark-theme .hp-trending {
    background: #0F172A;
}
.dark-theme .hp-trending__table-wrap {
    background: #1F2937;
    border-color: #374151;
}
.dark-theme .hp-trending__table thead th {
    background: #111827;
    border-color: #374151;
    color: #9CA3AF;
}
.dark-theme .hp-trending__table tbody tr {
    border-color: #374151;
}
.dark-theme .hp-trending__table tbody tr:hover {
    background: #111827;
}
.dark-theme .hp-trending__table tbody td {
    color: #D1D5DB;
}
.dark-theme .hp-trending__tool {
    color: #F9FAFB;
}
.dark-theme .hp-cat-card {
    background: #1F2937;
    border-color: #374151;
}
.dark-theme .hp-cat-card:hover {
    border-color: #7C3AED;
}
.dark-theme .hp-cat-card__name {
    color: #F9FAFB;
}

/* Responsive */
@media (max-width: 991px) {
    .hp-hero__title {
        font-size: 2.2rem;
    }
    .hp-stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .hp-categories__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 767px) {
    .hp-hero {
        padding: 40px 0 24px;
    }
    .hp-hero__title {
        font-size: 1.75rem;
    }
    .hp-hero__desc {
        font-size: 0.95rem;
    }
    .hp-featured__header,
    .hp-trending__header {
        flex-direction: column;
        gap: 8px;
    }
    .hp-categories__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .hp-trending__table-wrap {
        overflow-x: auto;
    }
    .hp-trending__table {
        min-width: 560px;
    }
    .hp-search__tags {
        gap: 6px;
    }
}
@media (max-width: 575px) {
    .hp-stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .hp-stats__number {
        font-size: 1.5rem;
    }
    .hp-hero__title {
        font-size: 1.5rem;
    }
}
