/* Home Page Styles */

/* Hero Search Section */
.home-hero {
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.03) 0%, 
        rgba(139, 92, 246, 0.05) 50%, 
        rgba(37, 99, 235, 0.02) 100%);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(37, 99, 235, 0.08);
}

body.dark .home-hero {
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.05) 0%, 
        rgba(139, 92, 246, 0.08) 50%, 
        rgba(37, 99, 235, 0.03) 100%);
    border-bottom: 1px solid rgba(37, 99, 235, 0.12);
}

.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.home-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.home-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: none;
}

body.dark .home-title {
    color: #ffffff;
}

.home-subtitle {
    font-size: 1.375rem;
    color: var(--gray-600);
    margin-bottom: 3rem;
    line-height: 1.6;
}

body.dark .home-subtitle {
    color: #e5e5e5;
}

/* Search Box */
.home-search-box {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 0.75rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    backdrop-filter: blur(10px);
}

body.dark .home-search-box {
    background: #111111;
    border-color: #1a1a1a;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.home-search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    font-size: 1.125rem;
    color: var(--gray-900);
    outline: none;
}

body.dark .home-search-input {
    color: #ffffff;
}

.home-search-input::placeholder {
    color: var(--gray-400);
}

body.dark .home-search-input::placeholder {
    color: #a3a3a3;
}

.home-search-btn {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.home-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    color: var(--gray-700);
}

body.dark .home-stats {
    color: #e5e5e5;
}

.home-stat {
    text-align: center;
}

.home-stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.home-stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Section Styles */
.home-section {
    padding: 4rem 0;
}

.home-section:nth-child(even) {
    background: var(--gray-50);
}

body.dark .home-section:nth-child(even) {
    background: #0a0a0a;
}

.section-header-home {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title-home {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

body.dark .section-title-home {
    color: #ffffff;
}

.section-title-home::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 2px;
}

.section-subtitle-home {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

body.dark .section-subtitle-home {
    color: #e5e5e5;
}

/* Latest Websites Grid */
.latest-websites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

/* Ultra Minimal Website Cards */
.website-card-home {
    display: block;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.website-card-home:hover {
    border-color: var(--primary);
    text-decoration: none;
    color: inherit;
}

.website-card-screenshot {
    height: 140px;
    overflow: hidden;
    background: var(--gray-50);
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    color: var(--gray-400);
}

.screenshot-placeholder i {
    font-size: 1.5rem;
}

.website-card-content {
    padding: 1rem;
}

.website-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.website-card-domain {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.website-card-description {
    color: var(--gray-600);
    line-height: 1.4;
    font-size: 0.8rem;
    margin: 0 0 0.75rem 0;
}

.website-card-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--gray-100);
}

.website-card-stats {
    display: flex;
    gap: 0.75rem;
}

.website-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: var(--gray-500);
}

.website-stat i {
    font-size: 0.65rem;
}

.website-category {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .latest-websites-grid {
        grid-template-columns: 1fr;
    }
    
    .website-card-screenshot {
        height: 120px;
    }
}

/* Featured Categories */
.featured-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .featured-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .featured-categories-grid {
        grid-template-columns: 1fr;
    }
}

.category-card-home {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.category-card-home:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--gray-300);
}

body.dark .category-card-home {
    background: #111111;
    border-color: #1a1a1a;
}

body.dark .category-card-home:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #2a2a2a;
}

.category-card-icon-home {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.category-card-home:hover .category-card-icon-home {
    transform: scale(1.1) rotate(5deg);
}

.category-card-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

body.dark .category-card-name {
    color: #ffffff;
}

.category-card-count {
    color: var(--gray-500);
    font-size: 0.875rem;
}

body.dark .category-card-count {
    color: #a3a3a3;
}

/* Recent Reviews */
.recent-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.review-card-home {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.review-card-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.review-card-home:hover::before {
    transform: scaleX(1);
}

.review-card-home:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--gray-300);
}

body.dark .review-card-home {
    background: #111111;
    border-color: #1a1a1a;
}

body.dark .review-card-home:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: #2a2a2a;
}

.review-card-header-home {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar-home {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.review-info-home {
    flex: 1;
}

.review-name-home {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

body.dark .review-name-home {
    color: #ffffff;
}

.review-stars-home {
    display: flex;
    gap: 0.125rem;
    color: #fbbf24;
    font-size: 0.875rem;
}

.review-content-home {
    color: var(--gray-700);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 1rem;
}

body.dark .review-content-home {
    color: #e5e5e5;
}

.review-website-home {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
}

.review-website-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.review-website-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.05) 0%, 
        rgba(139, 92, 246, 0.08) 50%, 
        rgba(37, 99, 235, 0.03) 100%);
    padding: 4rem 0;
    text-align: center;
    color: var(--gray-900);
    border-top: 1px solid rgba(37, 99, 235, 0.08);
}

body.dark .cta-section {
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.08) 0%, 
        rgba(139, 92, 246, 0.12) 50%, 
        rgba(37, 99, 235, 0.05) 100%);
    color: #ffffff;
    border-top: 1px solid rgba(37, 99, 235, 0.12);
}

.cta-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cta-btn {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-btn-primary {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.cta-btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.cta-btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .home-title {
        font-size: 2.5rem;
    }
    
    .home-subtitle {
        font-size: 1.125rem;
    }
    
    .home-search-box {
        flex-direction: column;
    }
    
    .home-search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .home-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .latest-websites-grid,
    .featured-categories-grid,
    .recent-reviews-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .website-card-home {
        padding: 1.25rem;
    }
    
    .website-card-header {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .website-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .website-card-info h3 {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .website-card-domain {
        font-size: 0.8rem;
    }
    
    .website-card-description {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .website-card-tags {
        gap: 0.375rem;
        margin-bottom: 0.75rem;
    }
    
    .website-card-tag {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
    
    .website-card-footer {
        padding-top: 0.75rem;
    }
    
    .website-card-stats {
        gap: 0.75rem;
    }
    
    .website-card-stat {
        font-size: 0.7rem;
        gap: 0.25rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .home-title {
        font-size: 2rem;
    }
    
    .website-card-home {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .website-card-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .website-card-info h3 {
        font-size: 0.95rem;
    }
    
    .website-card-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    
    .website-card-tag {
        font-size: 0.65rem;
    }
}
/* Category Icons */
.category-card-icon-home.development-tools {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    color: var(--primary);
}

.category-card-icon-home.business-tools {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    color: #059669;
}

.category-card-icon-home.design-tools {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    color: #8b5cf6;
}

.category-card-icon-home.marketing-tools {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    color: #f59e0b;
}

.category-card-icon-home.communication-tools {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: #ef4444;
}

.category-card-icon-home.productivity-tools {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
    color: #a855f7;
}
/* Why Choose Grid */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
}
/* Website Card Meta Information */
.website-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.website-added-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--gray-500);
}

body.dark .website-added-time {
    color: #a3a3a3;
}

.website-added-time i {
    font-size: 0.7rem;
}

/* Review Time Information */
.review-time-home {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

body.dark .review-time-home {
    color: #a3a3a3;
}

.review-time-home i {
    font-size: 0.7rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .website-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .website-added-time {
        font-size: 0.7rem;
    }
    
    .review-time-home {
        font-size: 0.7rem;
    }
}