/* Tools Index Page Styles */

/* Hero Section */
.tools-hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    color: white;
    padding: 10rem 0 8rem;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.tools-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 75% 75%, rgba(96, 165, 250, 0.2) 0%, transparent 60%);
    animation: pulse-glow 6s ease-in-out infinite alternate;
}

.tools-hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero-content h1 i {
    color: #dbeafe;
    filter: drop-shadow(0 0 20px rgba(219, 234, 254, 0.5));
}

.hero-content p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Filter Section */
.tools-filter {
    padding: 2rem 0;
    background: white;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    /* position: sticky;
    top: 80px; */
    z-index: 100;
    backdrop-filter: blur(10px);
}

.filter-controls {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.search-box {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 1.2rem;
}

.search-box input {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 4rem;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    font-size: 1.1rem;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.search-box input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.2);
}

.filter-categories {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: 2px solid rgba(59, 130, 246, 0.2);
    background: white;
    color: #6b7280;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.filter-btn i {
    font-size: 1.1rem;
}

/* Tools Grid */
.tools-main {
    padding: 6rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.tools-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(147, 197, 253, 0.05) 0%, transparent 50%);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.tool-card {
    background: white;
    border-radius: 24px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
    display: flex;
    flex-direction: column;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 
        0 25px 50px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.tool-card.featured {
    border: 2px solid #3b82f6;
    background: linear-gradient(135deg, #f0f9ff, #ffffff);
}

.tool-card.featured::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #93c5fd, #3b82f6, #1d4ed8);
    border-radius: 26px;
    z-index: -1;
    animation: glow-border 3s ease-in-out infinite alternate;
}

.tool-card.coming-soon {
    opacity: 0.8;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
}

.tool-card.coming-soon:hover {
    transform: translateY(-8px) scale(1.01);
}

/* Tool Header */
.tool-header {
    padding: 2rem 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.tool-badge {
    position: absolute;
    top: 0.2rem;
    right: 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    z-index: 2;
}

.tool-badge:has-text("Coming Soon") {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 
        0 10px 25px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.tool-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #93c5fd, #3b82f6, #1d4ed8);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover .tool-icon::before {
    opacity: 1;
}

.tool-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.tool-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tool-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 600;
}

.tool-stats .stat i {
    color: #3b82f6;
}

.coming-soon-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(107, 114, 128, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(107, 114, 128, 0.2);
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 600;
}

.coming-soon-label i {
    color: #6b7280;
}

.tool-content {
    padding: 0 2rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tool-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
}

.tool-content p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    flex: 1;
}

.tool-features {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feature-pill {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.feature-pill:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 2rem;
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    transition: all 0.3s ease;
    text-align: center;
    justify-content: center;
}

.tool-link:hover {
    background: #3b82f6;
    color: white !important;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.tool-link i {
    transition: transform 0.3s ease;
}

.tool-link:hover i {
    transform: translateX(3px);
}

.coming-soon-notice {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 2rem;
    background: rgba(107, 114, 128, 0.1);
    border: 2px solid rgba(107, 114, 128, 0.2);
    border-radius: 50px;
    transition: all 0.3s ease;
    text-align: center;
    justify-content: center;
    cursor: pointer;
}

.coming-soon-notice:hover {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.3);
}
    /* text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 2rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    width: 100%;
    justify-content: center;
} */

.tool-link:hover {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.tool-link i {
    transition: transform 0.3s ease;
}

.tool-link:hover i {
    transform: translateX(3px);
}

.coming-soon-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #6b7280;
    font-weight: 600;
    padding: 1rem 2rem;
    background: rgba(107, 114, 128, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(107, 114, 128, 0.2);
}

.coming-soon-notice i {
    color: #9ca3af;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-content i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 2rem;
}

.no-results-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 1rem;
}

.no-results-content p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* CTA Section */
.tools-cta {
    padding: 8rem 0;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tools-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse-glow 4s ease-in-out infinite alternate;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: white;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    color: #1d4ed8;
    box-shadow: 
        0 12px 40px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 20px 50px rgba(255, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px) scale(1.02);
}

/* Animations */
@keyframes pulse-glow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes glow-border {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .hero-stats {
        gap: 2rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .tools-hero {
        padding: 8rem 0 6rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .filter-controls {
        gap: 1.5rem;
    }
    
    .filter-categories {
        gap: 0.75rem;
    }
    
    .filter-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tool-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .cta-content h2 {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .tools-hero {
        padding: 6rem 0 4rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .tools-main {
        padding: 4rem 0;
    }
    
    .tools-cta {
        padding: 6rem 0;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .tool-content {
        padding: 1.5rem;
    }
    
    .search-box input {
        padding: 1rem 1rem 1rem 3.5rem;
        font-size: 1rem;
    }
    
    .search-box i {
        left: 1rem;
        font-size: 1.1rem;
    }
}

/* Animations */
@keyframes glow-border {
    0% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }
    100% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.tool-card.featured .tool-icon {
    animation: float 3s ease-in-out infinite;
}

/* Different icon colors for different categories */
.tool-card[data-category="calculator"] .tool-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.tool-card[data-category="timer"] .tool-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.tool-card[data-category="planner"] .tool-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.tool-card[data-category="converter"] .tool-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.tool-card.coming-soon .tool-icon {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

/* Feature pills color variations */
.tool-card[data-category="calculator"] .feature-pill {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
}

.tool-card[data-category="timer"] .feature-pill {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.2);
}

.tool-card[data-category="planner"] .feature-pill {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.tool-card[data-category="converter"] .feature-pill {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.2);
}

.tool-card.coming-soon .feature-pill {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border-color: rgba(107, 114, 128, 0.2);
}

/* Tool link color variations */
.tool-card[data-category="calculator"] .tool-link {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.tool-card[data-category="calculator"] .tool-link:hover {
    background: #3b82f6;
    border-color: #3b82f6;
}

.tool-card[data-category="timer"] .tool-link {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
}

.tool-card[data-category="timer"] .tool-link:hover {
    background: #f59e0b;
    border-color: #f59e0b;
}

.tool-card[data-category="planner"] .tool-link {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.tool-card[data-category="planner"] .tool-link:hover {
    background: #10b981;
    border-color: #10b981;
}

.tool-card[data-category="converter"] .tool-link {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
}

.tool-card[data-category="converter"] .tool-link:hover {
    background: #8b5cf6;
    border-color: #8b5cf6;
}

/* Stats color variations */
.tool-card[data-category="calculator"] .tool-stats .stat {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.tool-card[data-category="calculator"] .tool-stats .stat i {
    color: #3b82f6;
}

.tool-card[data-category="timer"] .tool-stats .stat {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
}

.tool-card[data-category="timer"] .tool-stats .stat i {
    color: #f59e0b;
}

.tool-card[data-category="planner"] .tool-stats .stat {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.tool-card[data-category="planner"] .tool-stats .stat i {
    color: #10b981;
}

.tool-card[data-category="converter"] .tool-stats .stat {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
}

.tool-card[data-category="converter"] .tool-stats .stat i {
    color: #8b5cf6;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tool-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .tool-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .tool-content {
        padding: 0 1.5rem 1.5rem;
    }
    
    .tool-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tool-stats .stat {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .tool-header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }
    
    .tool-meta {
        align-items: center;
    }
    
    .tool-badge {
        position: static;
        margin-bottom: 1rem;
    }
}