/* ===== TOOL DETAIL STYLES ===== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation - Inherited from catalog.css but customized */
.navbar {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2563eb;
    letter-spacing: -0.02em;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #2563eb;
}

/* Tool Detail Main */
.tool-detail {
    padding: 2rem 0 4rem;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #1d4ed8;
}

.separator {
    color: #64748b;
}

.current {
    color: #64748b;
    font-weight: 500;
}

/* Tool Content Layout */
.tool-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

/* Tool Image Section */
.tool-image-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.tool-image-container {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: #f8fafc;
}

.tool-screenshot {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.tool-screenshot:hover {
    transform: scale(1.02);
}

/* Tool Info Section */
.tool-info-section {
    display: flex;
    flex-direction: column;
}

.tool-header {
    margin-bottom: 2rem;
}

.tool-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Categories */
.tool-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.category-tag {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-tag:hover {
    background: #c7d2fe;
    color: #312e81;
    transform: translateY(-1px);
}

/* Tool Actions */
.tool-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-visit-website {
    background: #2563eb;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-visit-website:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-back {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn-back:hover {
    background: #e2e8f0;
    color: #1a202c;
}

/* Tool Details */
.tool-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-item {
    background: #f1f5f9;
    color: #475569;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.tool-description {
    color: #64748b;
    line-height: 1.7;
    font-size: 1rem;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-action {
    color: #2563eb;
    text-decoration: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    transition: color 0.2s ease;
    font-weight: 500;
}

.quick-action:hover {
    color: #1d4ed8;
}

.quick-action:last-child {
    border-bottom: none;
}

/* Similar Tools Section */
.similar-tools {
    padding: 4rem 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.similar-tools h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.similar-tools-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.similar-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.similar-tool-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.similar-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.similar-tool-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.similar-tool-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.similar-tool-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.similar-tool-card:hover .similar-tool-image img {
    transform: scale(1.02);
}

.similar-tool-content {
    padding: 1.25rem;
}

.similar-tool-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.similar-tool-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.shared-category {
    background: #dcfce7;
    color: #166534;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bbf7d0;
}

.other-category {
    background: #f1f5f9;
    color: #64748b;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.similarity-indicator {
    font-size: 0.8rem;
    color: #059669;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.similarity-indicator::before {
    content: "✓";
    width: 16px;
    height: 16px;
    background: #059669;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}



/* Footer - Inherited from catalog.css */
.footer {
    background: #1a202c;
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo .logo-text {
    color: white;
}

.footer-logo .logo-subtitle {
    color: #94a3b8;
}

.footer-section h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    text-align: center;
    color: #94a3b8;
}

.footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: #cbd5e1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }
    
    .tool-content {
        gap: 2rem;
        padding: 2rem;
    }
    
    .tool-name {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .tool-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .tool-name {
        font-size: 1.75rem;
    }
    
    .tool-actions {
        flex-direction: column;
    }
    
    .btn-visit-website {
        justify-content: center;
    }
    
    .similar-tools {
        padding: 2rem 0;
    }
    
    .similar-tools h2 {
        font-size: 1.5rem;
    }
    
    .similar-tools-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .similar-tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .similar-tool-content {
        padding: 1rem;
    }
    
    .similar-tool-name {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .tool-detail {
        padding: 1rem 0 2rem;
    }
    
    .tool-content {
        padding: 1rem;
    }
    
    .tool-name {
        font-size: 1.5rem;
    }
    
    .btn-visit-website,
    .btn-back {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ===== ENHANCED CONTENT SECTIONS ===== */

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8, #7c3aed);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.feature-item strong {
    color: #1e293b;
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.feature-item p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* Use Cases */
.use-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.use-case {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #0ea5e9;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.use-case:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.15);
    border-left-color: #0284c7;
}

.use-case strong {
    color: #0c4a6e;
    font-weight: 700;
    font-size: 1.05rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Benefits List */
.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 16px;
    border: 1px solid #e1e5e9;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.benefit-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.benefit-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.1rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid #bae6fd;
}

.benefit-item > div {
    flex: 1;
}

.benefit-item strong {
    color: #0f172a;
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.benefit-item div:not(.benefit-icon) {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Getting Started */
.getting-started {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #bbf7d0;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.8;
    color: #14532d;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.1);
    position: relative;
}

.getting-started::before {
    content: '🚀';
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    opacity: 0.7;
}

.getting-started:last-child {
    margin-bottom: 0;
}

.getting-started:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.15);
}

/* Detail Section Spacing */
.detail-section {
    margin-bottom: 3rem;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h2 {
    color: #0f172a;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-section h3 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #e2e8f0;
    position: relative;
}

.detail-section h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.tool-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 1.25rem;
    text-align: justify;
}

.tool-description:last-child {
    margin-bottom: 0;
}

/* Mobile Responsiveness for Enhanced Content */
@media (max-width: 768px) {
    .detail-section {
        padding: 1.75rem;
        margin-bottom: 2rem;
        border-radius: 16px;
    }
    
    .detail-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .detail-section h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .feature-item strong {
        font-size: 1.05rem;
        margin-bottom: 0.6rem;
    }
    
    .use-cases {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .use-case {
        padding: 1.25rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .benefit-item {
        padding: 1.5rem;
        gap: 1rem;
        border-radius: 12px;
    }
    
    .benefit-icon {
        font-size: 1.25rem;
        padding: 0.6rem;
        border-radius: 10px;
    }
    
    .benefit-item strong {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .getting-started {
        padding: 1.75rem;
        font-size: 0.95rem;
        border-radius: 12px;
        margin-bottom: 1rem;
    }
    
    .getting-started::before {
        top: 1.25rem;
        right: 1.25rem;
        font-size: 1.25rem;
    }
    
    .tool-description {
        font-size: 0.95rem;
        line-height: 1.7;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .detail-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .features-grid {
        gap: 0.875rem;
    }
    
    .feature-item {
        padding: 1.25rem;
    }
    
    .use-case {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .benefit-item {
        padding: 1.25rem;
        gap: 0.875rem;
    }
    
    .getting-started {
        padding: 1.5rem;
        font-size: 0.9rem;
    }
} 