/* Index Page Styles */

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        padding: 40px 16px;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

/* Mobilde animasyonları azalt */
@media (max-width: 768px) {
    .gradient-orb {
        animation: none;
        opacity: 0.3;
        filter: blur(40px);
    }
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.8), transparent);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.8), transparent);
    bottom: -150px;
    right: -100px;
    animation-delay: 7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(11, 11, 12, 0.8), transparent);
    top: 50%;
    right: 10%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% { 
        transform: translate3d(0, 0, 0) scale(1); 
        will-change: transform;
    }
    33% { 
        transform: translate3d(30px, -30px, 0) scale(1.1); 
        will-change: transform;
    }
    66% { 
        transform: translate3d(-20px, 20px, 0) scale(0.9); 
        will-change: transform;
    }
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    text-align: center;
    color: white;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    animation: fadeInDown 1s ease-out;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-badge {
        padding: 5px 14px;
        font-size: 12px;
        margin-bottom: 20px;
        gap: 5px;
    }
}

.hero-badge svg {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale3d(1, 1, 1); 
        will-change: transform;
    }
    50% { 
        transform: scale3d(1.1, 1.1, 1); 
        will-change: transform;
    }
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 12px;
    }
}

.gradient-text {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.5;
    opacity: 0.95;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-description {
        font-size: 1rem;
        margin-bottom: 24px;
        max-width: 100%;
    }
}

/* Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-stats {
        gap: 16px;
        margin-bottom: 24px;
    }
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: transform 0.3s ease, background 0.3s ease;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .stat-card {
        padding: 12px 16px;
        gap: 10px;
        border-radius: 10px;
    }
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    font-size: 1.8rem;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .stat-icon {
        font-size: 1.5rem;
    }
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    display: block;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

/* Search Box */
.hero-search {
    position: relative;
    margin-bottom: 24px;
    animation: fadeInUp 1s ease-out 0.8s both;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-search {
        margin-bottom: 20px;
    }
}

.search-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .search-wrapper {
        padding: 4px 4px 4px 16px;
        max-width: 100%;
        border-radius: 40px;
        gap: 15px;
    }
}

.search-wrapper:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

.search-icon {
    color: #6366f1;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 16px;
    font-size: 0.95rem;
    color: #1f2937;
    background: transparent;
    min-width: 0;
    width: 100%;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .search-wrapper input {
        padding: 25px 12px;
        font-size: 0.85rem;
        min-width: 0;
    }
    
    #searchInput {
        font-size: 14px;
        padding: 8px 25px;
    }
}

.search-wrapper input::placeholder {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .search-wrapper input::placeholder {
        font-size: 14px;
    }
}

.search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.95rem;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .search-btn {
        padding: 5px 16px;
        font-size: 0.8rem;
        border-radius: 40px;
    }
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Search Results */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-top: 8px;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.search-results.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-results-header {
    padding: 8px 20px 6px;
    border-bottom: 1px solid #e5e7eb;
}

.search-results-header h4 {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
}

.search-results-list {
    max-height: calc(70vh - 40px);
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f9fafb;
    transform: translateX(4px);
}

.result-icon {
    flex-shrink: 0;
}

.result-content {
    flex: 1;
    min-width: 0;
}

.result-title {
    margin: 0 0 2px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
}

.result-description {
    margin: 0 0 4px 0;
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.result-category {
    display: inline-block;
    padding: 2px 8px;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 12px;
}

.result-rating {
    font-size: 0.7rem;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 2px;
}

.result-users {
    font-size: 0.7rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 2px;
}

.result-action {
    flex-shrink: 0;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.search-result-item:hover .result-action {
    color: #667eea;
}

.search-no-results,
.search-error,
.search-loading {
    padding: 20px;
    text-align: center;
    color: #6b7280;
}

.search-no-results i,
.search-error i {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #9ca3af;
}

.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dark Mode Support */
.dark-mode .search-results {
    background: #1f2937;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.dark-mode .search-results-header {
    border-bottom-color: #374151;
}

.dark-mode .search-results-header h4 {
    color: #9ca3af;
}

.dark-mode .search-result-item {
    border-bottom-color: #374151;
}

.dark-mode .search-result-item:hover {
    background: #374151;
}

.dark-mode .result-title {
    color: #f9fafb;
}

.dark-mode .result-description {
    color: #d1d5db;
}

.dark-mode .result-category {
    background: #312e81;
    color: #c7d2fe;
}

.dark-mode .result-rating {
    color: #fbbf24;
}

.dark-mode .result-users {
    color: #9ca3af;
}

.dark-mode .result-action {
    color: #6b7280;
}

.dark-mode .search-result-item:hover .result-action {
    color: #8b5cf6;
}

/* Dark mode rating and user count colors */
.dark-mode .search-result-item span[style*="color: #fbbf24"] {
    color: #fbbf24 !important;
}

.dark-mode .search-result-item span[style*="color: #6b7280"] {
    color: #9ca3af !important;
}

.dark-mode .search-no-results,
.dark-mode .search-error,
.dark-mode .search-loading {
    color: #d1d5db;
}

.dark-mode .search-no-results i,
.dark-mode .search-error i {
    color: #6b7280;
}

.dark-mode .spinner {
    border-color: #374151;
    border-top-color: #8b5cf6;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .search-results {
        border-radius: 12px;
        margin-top: 6px;
        max-height: 75vh;
        z-index: 10000;
        position: absolute;
        left: 16px;
        right: 16px;
        top: 100%;
        max-width: calc(100vw - 32px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .search-results-list {
        max-height: calc(75vh - 30px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .search-results-header {
        padding: 6px 16px 4px;
    }
    
    .search-result-item {
        padding: 4px 16px;
        gap: 8px;
    }
    
    .result-title {
        font-size: 0.85rem;
    }
    
    .result-description {
        font-size: 0.7rem;
    }
    
    .result-category {
        font-size: 0.6rem;
        padding: 1px 6px;
    }
    
    .result-rating {
        font-size: 0.6rem;
    }
    
    .result-users {
        font-size: 0.6rem;
    }
}

/* Features */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 1s both;
    position: relative;
    z-index: 1;
    margin-top: 30px;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.feature-badge i {
    font-size: 1.4rem;
    color: #ffffff;
    margin-right: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.feature-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== CATEGORIES SECTION ===== */
.categories-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #f9fafb 0%, #ffffff 100%);
}

.categories-section .section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.categories-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.categories-section .header-content {
    margin: 0 auto;
    text-align: center;
}

.categories-section .section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.categories-section .section-title svg {
    flex-shrink: 0;
}

.categories-section .section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0 auto;
    text-align: center;
    line-height: 1.5;
    max-width: 100%;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title-icon {
    font-size: 2.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0 auto;
    text-align: center;
    line-height: 1.5;
    max-width: 100%;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.category-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #6366f1;
}

.category-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-bottom: 1px solid #e5e7eb;
}

.category-icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.category-info {
    flex: 1;
}

.category-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 5px 0;
}

.category-count {
    font-size: 0.9rem;
    color: #6b7280;
}

.category-tools {
    padding: 20px;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.tool-item:hover {
    background: #f9fafb;
}

.tool-rank {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.tool-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tool-info {
    flex: 1;
    min-width: 0;
}

.tool-name {
    display: block;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.tool-name:hover {
    color: #6366f1;
}

.tool-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
}

.stars {
    color: #fbbf24;
}

.rating-value {
    color: #6b7280;
    font-weight: 500;
}

.tool-action {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tool-action:hover {
    background: #6366f1;
    color: white;
}

.no-tools {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-style: italic;
}

.category-footer {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.view-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Search Results */
.search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results.active {
    display: block;
}

.hero-search {
    position: relative;
}

/* ===== BLOG SECTION ===== */
.blog-section {
    background: var(--bg-secondary);
    padding: 80px 0;
}

.blog-section .section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-section .section-header {
    text-align: center;
    margin-bottom: 48px;
}

.blog-section .header-content {
    margin: 0 auto;
    text-align: center;
}

.blog-section .section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.blog-section .section-title svg {
    flex-shrink: 0;
}

.blog-section .section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0 auto;
    text-align: center;
    line-height: 1.5;
    max-width: 100%;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.blog-image {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 24px;
}

.blog-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.blog-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: 56px;
}

.blog-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-tertiary);
}

.blog-meta > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== DARK MODE ===== */
.dark-mode .hero-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.dark-mode .gradient-orb {
    opacity: 0.3;
}

.dark-mode .hero-badge {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.dark-mode .hero-title {
    color: #f8fafc;
}

.dark-mode .hero-description {
    color: #cbd5e1;
}

.dark-mode .stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dark-mode .search-wrapper {
    background: #1e293b;
    border: 1px solid #334155;
}

.dark-mode .search-wrapper input {
    color: #f8fafc;
}

.dark-mode .search-wrapper input::placeholder {
    color: #64748b;
}

.dark-mode .search-icon {
    color: #818cf8;
}

.dark-mode .feature-badge {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .feature-badge:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Categories Section Dark Mode */
.dark-mode .categories-section {
    background: linear-gradient(to bottom, #0f172a 0%, #1e293b 100%);
}

.dark-mode .section-title {
    color: #f8fafc;
}

.dark-mode .section-subtitle {
    color: #94a3b8;
}

.dark-mode .category-card {
    background: #1e293b;
    border-color: #334155;
}

.dark-mode .category-card:hover {
    border-color: #818cf8;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.dark-mode .category-card-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-bottom-color: #334155;
}

.dark-mode .category-name {
    color: #f8fafc;
}

.dark-mode .category-count {
    color: #94a3b8;
}

.dark-mode .category-tools {
    background: transparent;
}

.dark-mode .tool-item:hover {
    background: #0f172a;
}

.dark-mode .tool-rank {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.dark-mode .tool-name {
    color: #f8fafc;
}

.dark-mode .tool-name:hover {
    color: #818cf8;
}

.dark-mode .rating-value {
    color: #94a3b8;
}

.dark-mode .tool-action {
    background: #0f172a;
    color: #94a3b8;
}

.dark-mode .tool-action:hover {
    background: #6366f1;
    color: white;
}

.dark-mode .no-tools {
    color: #64748b;
}

.dark-mode .category-footer {
    background: #0f172a;
    border-top-color: #334155;
}

.dark-mode .view-all-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.dark-mode .view-all-btn:hover {
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.dark-mode .search-results {
    background: #1e293b;
    border: 1px solid #334155;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 40px 20px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px 20px;
    }
    
    .stat-icon {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ===== FEATURED TOOLS SECTION ===== */
/* Featured Tools Section - Modern Compact Design */
.featured-tools-section {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.dark-mode .featured-tools-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.featured-tools-section .section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.featured-tools-section .section-header {
    text-align: center;
    margin-bottom: 48px;
}

.featured-tools-section .header-content {
    margin: 0 auto;
    text-align: center;
}

.featured-tools-section .section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.featured-tools-section .section-title svg {
    flex-shrink: 0;
}

.featured-tools-section .section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0 auto;
    text-align: center;
    line-height: 1.5;
    max-width: 100%;
}


.featured-tools-container {
    position: relative;
    overflow: hidden;
    padding: 4px 0;
}

.featured-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    animation: none;
}

/* Eğer 8'den fazla araç varsa carousel moduna geç */
.featured-tools-grid.carousel-mode {
    display: flex;
    gap: 20px;
    animation: scrollCarousel 30s linear infinite;
    will-change: transform;
    cursor: grab;
    user-select: none;
}

.featured-tools-grid.carousel-mode:active {
    cursor: grabbing;
}

.featured-tools-grid.carousel-mode:hover {
    animation-play-state: paused;
}

.featured-tools-grid.carousel-mode.dragging {
    animation-play-state: paused;
    cursor: grabbing;
}

.featured-tools-grid.carousel-mode.dragging * {
    pointer-events: none !important;
}

.featured-tools-grid.carousel-mode .featured-tool-card {
    flex: 0 0 280px;
    min-width: 280px;
    touch-action: pan-y;
}

.featured-tools-grid.carousel-mode .featured-tool-card a {
    pointer-events: auto;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

@keyframes scrollCarousel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-280px * var(--card-count) - 20px * var(--card-count)));
    }
}

.featured-tool-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 2px solid transparent;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.featured-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.dark-mode .featured-tool-card {
    background: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .featured-tool-card:hover {
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.3);
}

.featured-card-link {
    display: block;
    padding: 20px;
    padding-top: 36px;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
    line-height: 1;
}

.featured-badge svg {
    width: 10px;
    height: 10px;
}

.featured-tool-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.featured-tool-avatar {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-tool-info {
    flex: 1;
    min-width: 0;
}

.featured-tool-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-tool-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #f59e0b;
}

.featured-tool-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-tool-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.featured-users {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.pricing-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pricing-badge.free {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.pricing-badge.freemium {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.pricing-badge.paid {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.dark-mode .pricing-badge.free {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.dark-mode .pricing-badge.freemium {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.dark-mode .pricing-badge.paid {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

@media (max-width: 1024px) {
    .featured-tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 968px) {
    .featured-tools-section .section-header,
    .categories-section .section-header,
    .blog-section .section-header {
        margin-bottom: 32px;
    }
    
    .featured-tools-section .section-title,
    .categories-section .section-title,
    .blog-section .section-title {
        font-size: 28px;
    }
    
    .featured-tools-section .section-subtitle,
    .categories-section .section-subtitle,
    .blog-section .section-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .featured-tools-section {
        padding: 48px 0;
    }
    
    .featured-tools-section .section-header,
    .categories-section .section-header,
    .blog-section .section-header {
        margin-bottom: 32px;
    }
    
    .featured-tools-section .section-title,
    .categories-section .section-title,
    .blog-section .section-title {
        font-size: 24px;
        gap: 8px;
    }
    
    .featured-tools-section .section-title svg,
    .categories-section .section-title svg,
    .blog-section .section-title svg {
        width: 32px;
        height: 32px;
    }
    
    .featured-tools-section .section-subtitle,
    .categories-section .section-subtitle,
    .blog-section .section-subtitle {
        font-size: 14px;
    }
    
    .featured-tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
    
    /* Carousel mode için mobile'da kart boyutu */
    .featured-tools-grid.carousel-mode .featured-tool-card {
        flex: 0 0 240px;
        min-width: 240px;
    }
    
    @keyframes scrollCarousel {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-240px * var(--card-count) - 20px * var(--card-count)));
        }
    }
    
    .featured-card-link {
        padding: 14px;
        padding-top: 32px;
    }
    
    .featured-badge {
        padding: 4px 8px;
        font-size: 9px;
        top: 10px;
        right: 10px;
        border-radius: 10px;
    }
    
    .featured-badge svg {
        width: 8px;
        height: 8px;
    }
    
    .featured-tool-header {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .featured-tool-avatar {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }
    
    .featured-tool-name {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .featured-tool-rating {
        font-size: 12px;
    }
    
    .featured-tool-rating svg {
        width: 12px;
        height: 12px;
    }
    
    .featured-tool-desc {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .featured-tool-footer {
        padding-top: 12px;
    }
    
    .featured-users {
        font-size: 11px;
    }
    
    .featured-users svg {
        width: 12px;
        height: 12px;
    }
    
    .pricing-badge {
        padding: 3px 8px;
        font-size: 10px;
    }
}
