/* Ensure tool card links keep original text color and no underline */
.tool-card-link {
    color: inherit;
    text-decoration: none;
}
.tool-card-link * {
    color: inherit;
}
/* All Tools CSS - Exact Match Design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
    --space-3xl: 3rem;
    --space-4xl: 4rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    --text-primary-color: #ffffff;
    --background-color: #000000;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/desktop Bg image.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    color: white;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
}

/* Mobile background */
@media (max-width: 768px) {
    body {
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/mobile Bg image.webp');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.page-header {
    text-align: center;
    padding: 80px 0 60px;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.back-button {
    position: absolute;
    top: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: #4ade80;
    text-decoration: none;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

/* Search and Filter Section */
.search-filter-section {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-box input:focus {
    outline: none;
    border-color: #4ade80;
    background: rgba(255, 255, 255, 0.15);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-height: 44px;
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: black;
    transform: translateY(-2px);
}

.tools-counter {
    margin-top: 20px;
    font-size: 1.1rem;
    opacity: 0.8;
    font-weight: 500;
}

.tools-counter span {
    color: #4ade80;
    font-weight: 700;
}

/* Tools Grid */
.all-tools-section {
    margin-bottom: 80px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.tool-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    -webkit-tap-highlight-color: transparent;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4ade80, #22c55e, #16a34a);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(74, 222, 128, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(74, 222, 128, 0.3);
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-badge.seo {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.category-badge.text {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.category-badge.tracking {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.category-badge.general {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.category-badge.fun {
    background: rgba(236, 72, 153, 0.2);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.tool-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    line-height: 1.3;
    padding-right: 80px; /* Space for category badge */
}

.tool-card:hover .tool-name {
    color: rgba(74, 222, 128, 1);
    text-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
}

.tool-description {
    opacity: 0.8;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
    font-size: 0.95rem;
}

.tool-card:hover .tool-description {
    opacity: 0.95;
}

.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.feature-tag {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.tool-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.tool-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tool-usage {
    opacity: 0.7;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    opacity: 0.8;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.no-results p {
    font-size: 1rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .page-header {
        padding: 60px 0 40px;
    }

    .page-header h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .page-header p {
        font-size: 1rem;
        margin: 0 auto 25px;
        padding: 0 10px;
    }

    .search-filter-section {
        margin: 25px 0;
        gap: 15px;
    }

    .search-box {
        max-width: 100%;
    }

    .filter-buttons {
        gap: 8px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .tool-card {
        padding: 20px;
    }

    .tool-name {
        font-size: 1.2rem;
        padding-right: 70px;
    }

    .tool-icon {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }

    .back-button {
        top: 15px;
        left: 15px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .category-badge {
        top: 12px;
        right: 12px;
        padding: 3px 8px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 50px 0 30px;
    }

    .page-header h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .search-box input {
        padding: 10px 18px 10px 40px;
        font-size: 0.9rem;
    }

    .filter-buttons {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        width: 100%;
    }

    .filter-btn {
        padding: 8px 10px;
        font-size: 0.85rem;
        justify-content: center;
    }

    .tool-card {
        padding: 18px 15px;
    }

    .tool-card:hover {
        transform: translateY(-5px) scale(1.01);
    }

    .tool-name {
        font-size: 1.1rem;
        padding-right: 60px;
    }

    .tool-description {
        font-size: 0.9rem;
    }

    .tool-stats {
        flex-direction: column;
        gap: 5px;
        text-align: center;
        font-size: 0.8rem;
    }
}

/* Tablet specific styles */
@media (min-width: 481px) and (max-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* FAQ Section */
.faq {
    padding: var(--space-5xl) 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.faq-header .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-md);
}

.faq-header .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-bottom: var(--space-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xl);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary-color);
    margin: 0;
    line-height: 1.4;
    flex-grow: 1;
    margin-right: var(--space-md);
}

.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 300;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    background: var(--primary-color);
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 var(--space-xl) var(--space-xl);
}

.faq-answer p {
    color: var(--text-secondary-color);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Mobile Responsive FAQ */
@media (max-width: 768px) {
    .faq-header .section-title {
        font-size: 2rem;
    }
    
    .faq-question {
        padding: var(--space-lg);
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 var(--space-lg) var(--space-lg);
    }
}