/* Category Page Styles */

/* Category Hero Section - Modern Style matching home page */
.category-hero {
    position: relative;
    min-height: 160px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 25%, #f1f5f9 50%, #e0f2fe 75%, #f8fafc 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 1rem 0;
}

/* Animated Background Elements for Category Pages */
.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Add floating shapes to category hero */
.category-hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: 50%;
    animation: float-gentle 6s ease-in-out infinite;
    z-index: 1;
}

/* Gentle floating animation */
@keyframes float-gentle {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(180deg); }
}

/* Add gradient orbs */
.category-hero-content::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 214, 160, 0.1));
    border-radius: 50%;
    filter: blur(40px);
    animation: pulse-gentle 8s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes pulse-gentle {
    0% { opacity: 0.1; transform: scale(1); }
    100% { opacity: 0.2; transform: scale(1.1); }
}

.category-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Breadcrumb - Modern Style */
.breadcrumb {
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 2rem;
    display: inline-flex;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "→";
    color: #64748b;
    margin: 0 0.75rem;
    font-weight: 500;
}

.breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
}

.breadcrumb a:hover {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.1);
}

.breadcrumb-item.active {
    color: #1e293b;
    font-weight: 600;
}

/* Category Header - Modern Style */
.category-header {
    animation: fadeInUp 0.8s ease-out;
}

.category-icon-large {
    display: none; /* Hidden as requested */
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.category-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.category-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #3b82f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.category-stats span:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.tools-count {
    background: linear-gradient(135deg, #3b82f6, #06b6d4) !important;
    color: white !important;
    border: none !important;
}

.tools-free {
    background: linear-gradient(135deg, #10b981, #06d6a0) !important;
    color: white !important;
    border: none !important;
}

.tools-registration {
    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
    color: white !important;
    border: none !important;
}

/* Hero Filter Controls - Minimal and Compact Design */
.hero-filter-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-filter-controls .search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.hero-filter-controls .search-box input {
    width: 100%;
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hero-filter-controls .search-box input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.hero-filter-controls .search-box input::placeholder {
    color: #94a3b8;
    font-size: 0.875rem;
}

.hero-filter-controls .search-box .search-icon {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    font-size: 0.875rem;
}

.hero-filter-controls .sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.hero-filter-controls .sort-controls label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
}

.hero-filter-controls .sort-controls select {
    padding: 0.625rem 1.75rem 0.625rem 0.75rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    font-size: 0.75rem;
    font-weight: 500;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    min-width: 100px;
}

.hero-filter-controls .sort-controls select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.hero-filter-controls .sort-controls select:hover {
    border-color: rgba(59, 130, 246, 0.4);
}

/* Tools Filter Section - Modern Style */
.tools-filter-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8), rgba(241, 245, 249, 0.8));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.search-box input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 1.25rem;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #1e293b;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.search-box input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.search-box input::placeholder {
    color: #94a3b8;
}

.search-box .search-icon {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #3b82f6;
    pointer-events: none;
    font-size: 1.1rem;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-controls label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.sort-controls select {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #1e293b;
    font-size: 0.875rem;
    font-weight: 500;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.sort-controls select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.sort-controls select:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

/* Category Tools Section */
.category-tools-section {
    padding: 4rem 0;
    min-height: 400px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(248, 250, 252, 0.8));
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 3rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

/* Tool Badges */
.tool-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tool-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tool-badge.new {
    background: rgba(34, 197, 94, 0.1);
    color: #059669;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.tool-badge.popular {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Tool Footer */
.tool-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
}

.tool-arrow {
    font-size: var(--font-size-lg);
    color: var(--color-primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.tool-card:hover .tool-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* SEO Content Section - Modern Style */
.seo-content-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.8), rgba(248, 250, 252, 0.9));
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.seo-content-section h2 {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.seo-content-section h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    color: #334155;
    margin: 2rem 0 1rem 0;
}

.seo-content-section p {
    color: #64748b;
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.seo-content-section ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.seo-content-section li {
    padding: 0.75rem 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.seo-content-section li:last-child {
    border-bottom: none;
}

.quick-tips-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 2rem;
}

.quick-tips-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-tips-card ul {
    list-style: none;
    padding: 0;
}

.quick-tips-card li {
    padding: 0.75rem 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    position: relative;
    padding-left: 1.5rem;
}

.quick-tips-card li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 600;
}

.quick-tips-card li:last-child {
    border-bottom: none;
}

/* Other Categories Section - Enhanced */
.other-categories-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.other-categories-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.other-categories-section .section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.other-categories-section .section-header p {
    color: #64748b;
    font-size: 1.25rem;
    line-height: 1.6;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-btn-primary-text);
    border: none;
    border-radius: 50%;
    font-size: var(--font-size-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive Design - Enhanced for Mobile */
@media (max-width: 768px) {
    .category-hero {
        min-height: 140px;
        padding: 0.75rem 0;
    }
    
    .category-hero-content {
        padding: 0 0.75rem;
    }
    
    .category-icon-large {
        font-size: 3.5rem;
        margin-bottom: 1rem;
    }
    
    .category-title {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
        margin-bottom: 0.75rem;
    }
    
    .category-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    .category-stats {
        gap: 0.5rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        margin-bottom: 1.5rem;
    }
    
    .category-stats span {
        font-size: 0.7rem;
        padding: 0.375rem 0.75rem;
        min-width: auto;
        justify-content: center;
    }
    
    /* Hero Filter Controls Mobile Styles - Minimal */
    .hero-filter-controls {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 0.75rem;
    }
    
    .hero-filter-controls .search-box {
        max-width: none;
    }
    
    .hero-filter-controls .search-box input {
        padding: 0.5rem 2rem 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .hero-filter-controls .search-box .search-icon {
        right: 0.75rem;
        font-size: 0.875rem;
    }
    
    .hero-filter-controls .sort-controls {
        align-self: center;
        justify-content: center;
    }
    
    .hero-filter-controls .sort-controls label {
        font-size: 0.75rem;
    }
    
    .hero-filter-controls .sort-controls select {
        padding: 0.5rem 1.5rem 0.5rem 0.625rem;
        font-size: 0.75rem;
        min-width: 90px;
    }
    
    .tools-filter-section {
        padding: 1.5rem 0;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 0.75rem;
    }
    
    .search-box {
        max-width: none;
    }
    
    .search-box input {
        padding: 0.875rem 3rem 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .sort-controls {
        align-self: stretch;
        justify-content: space-between;
    }
    
    .sort-controls select {
        padding: 0.625rem 2rem 0.625rem 0.875rem;
        font-size: 0.8rem;
    }
    
    .category-tools-section {
        padding: 2.5rem 0;
    }
    
    .seo-content-section {
        padding: 3rem 0;
    }
    
    .seo-content-section h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .seo-content-section h3 {
        font-size: 1.25rem;
        margin: 1.5rem 0 0.75rem 0;
    }
    
    .seo-content-section p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .quick-tips-card {
        padding: 1.5rem;
        position: static;
        margin-top: 2rem;
    }
    
    .other-categories-section {
        padding: 3rem 0;
    }
    
    .other-categories-section .section-header {
        margin-bottom: 2.5rem;
    }
    
    .other-categories-section .section-header h2 {
        font-size: 2rem;
    }
    
    .other-categories-section .section-header p {
        font-size: 1rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .category-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .breadcrumb {
        font-size: var(--font-size-sm);
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}