/* Tools Directory Styles */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.tool-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tool-card-header {
    padding: 24px 24px 0;
}

.tool-name {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tool-card-body {
    padding: 16px 24px;
    flex-grow: 1;
}

.tool-tagline {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.tool-description {
    color: var(--text-secondary);
}

.tool-card-footer {
    padding: 0 24px 24px;
}

.btn-sm {
    padding: 8px 16px;
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* Tool Detail Page */
.tool-header-section {
    background: var(--bg-light);
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
}

.tool-header-main {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex: 1;
}

.tool-logo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.tool-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.tool-header-content {
    flex: 1;
}

.tool-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.tool-tagline-main {
    font-size: 20px;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    font-weight: 500;
}

.tool-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.tool-header-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

.tool-overview-section {
    background: white;
}

.tool-overview {
    max-width: 900px;
    margin: 0 auto;
}

.overview-content h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.overview-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.ideal-for {
    padding: 16px 20px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    margin-bottom: 32px;
    color: var(--text-secondary);
    font-size: 16px;
}

.ideal-for strong {
    color: var(--text-primary);
}

.usp-section {
    margin-top: 32px;
}

.usp-section h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.usp-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.usp-list li {
    padding: 12px 0 12px 32px;
    position: relative;
    color: var(--text-primary);
    font-size: 16px;
}

.usp-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
}

.tool-pricing-section {
    background: var(--bg-light);
}

.pricing-snapshot {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.pricing-snapshot h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 32px;
}

.pricing-info {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.pricing-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.pricing-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-period {
    font-size: 24px;
    color: var(--text-secondary);
}

.pricing-label {
    font-size: 16px;
    color: var(--text-secondary);
    margin-left: 8px;
}

.free-plan-badge {
    margin-bottom: 24px;
}

.free-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.pricing-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.pricing-link:hover {
    color: var(--primary-hover);
}

.tool-features-section {
    background: white;
}

.features-table {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

.feature-row {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 32px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    align-items: start;
}

.feature-name {
    font-size: 18px;
    color: var(--text-primary);
}

.feature-name strong {
    color: var(--primary-color);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Image Gallery Section */
.tool-gallery-section {
    background: var(--bg-light);
}

.tool-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.gallery-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Related Tools Section */
.related-tools-section {
    background: white;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.related-tool-card {
    background: var(--bg-light);
    padding: 32px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.related-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.related-tool-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.related-tool-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.related-tool-name {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.related-tool-tagline {
    color: var(--text-secondary);
    margin: 0 0 20px 0;
    flex-grow: 1;
    font-size: 15px;
}

.related-tool-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    align-self: flex-start;
}

.related-tool-link:hover {
    color: var(--primary-hover);
}

.tool-cta-section {
    background: var(--bg-light);
}

.tool-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.tool-detail {
    max-width: 800px;
    margin: 0 auto;
}

.tool-detail-content {
    background: white;
    padding: 48px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.tool-detail-content h2 {
    margin-bottom: 24px;
    color: var(--text-primary);
}

.tool-detail-content h3 {
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.tool-detail-content p {
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

@media (max-width: 768px) {
    .tool-header {
        flex-direction: column;
    }
    
    .tool-header-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .tool-header-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .tool-header-actions .btn {
        width: 100%;
    }
    
    .tool-title {
        font-size: 28px;
    }
    
    .feature-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .tool-gallery {
        grid-template-columns: 1fr;
    }
    
    .related-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .usp-list {
        grid-template-columns: 1fr;
    }
    
    .pricing-info {
        padding: 32px 24px;
    }
    
    .pricing-amount {
        font-size: 36px;
    }
    
    .tool-actions {
        flex-direction: column;
    }
    
    .tool-actions .btn {
        width: 100%;
    }
    
    .tool-detail-content {
        padding: 32px 24px;
    }
}

