/* ToolsInfo.com - Main Stylesheet */
:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
.site-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-primary);
}

.logo-icon { font-size: 28px; }

.main-nav {
    display: flex;
    gap: 8px;
}

.main-nav a {
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--bg-tertiary);
    color: var(--primary);
}

.hub-switcher select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-primary);
    font-size: 14px;
    cursor: pointer;
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.breadcrumbs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 4px;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
}

.breadcrumbs a:hover { text-decoration: underline; }

.breadcrumbs .separator {
    color: var(--text-muted);
    margin: 0 4px;
}

.breadcrumbs .current {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* Page Container */
.page-container {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

/* Page Header */
.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 36px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.page-header .subtitle {
    color: var(--text-secondary);
    font-size: 18px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--gradient);
    color: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.stat-card .number {
    font-size: 42px;
    font-weight: 700;
}

.stat-card .label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Card Grids */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.card-grid-lg {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
}

/* Generic Card */
.card {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s;
}

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

.card:hover::before { transform: scaleX(1); }

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

.card h3 {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 8px;
}

.card .count {
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
}

.card .description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 8px;
}

/* Tool Card */
.tool-card {
    cursor: pointer;
}

.tool-card .tagline {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.tool-card .features {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.tool-card .features h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.tool-card .features ul {
    list-style: none;
}

.tool-card .features li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 0 4px 20px;
    position: relative;
}

.tool-card .features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.tool-card .pricing {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.tool-card .price {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.badge {
    background: var(--success);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Tool Detail Page */
.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--border);
}

.tool-header h1 {
    font-size: 40px;
    margin-bottom: 8px;
}

.tool-header .tagline {
    color: var(--primary);
    font-size: 18px;
    font-weight: 500;
}

.visit-btn {
    background: var(--gradient);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    white-space: nowrap;
}

.visit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.tool-description {
    background: var(--bg-secondary);
    padding: 28px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}

.tool-description h2 {
    margin-bottom: 12px;
}

.tool-description p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.detail-section {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

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

.detail-section.highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-left: 4px solid var(--primary);
}

.detail-section.warning {
    background: rgba(245, 158, 11, 0.05);
    border-left: 4px solid var(--warning);
}

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

.feature-list li {
    padding: 10px 0 10px 28px;
    position: relative;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--bg-tertiary);
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
    font-size: 16px;
}

.badge-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.platform-badge,
.integration-badge,
.compliance-badge {
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
}

.platform-badge {
    background: #e0e7ff;
    color: #4338ca;
}

.integration-badge {
    background: #dbeafe;
    color: #1e40af;
}

.compliance-badge {
    background: #d1fae5;
    color: #065f46;
}

.competitor-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
}

/* Hierarchy Tree */
.hierarchy-tree {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}

.tree-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.tree-title {
    font-weight: 600;
    color: var(--text-primary);
}

.tree-level {
    padding: 8px 12px;
    margin: 4px 0;
    border-radius: var(--radius-sm);
}

.tree-level a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
}

.tree-level a:hover {
    color: var(--primary);
}

.tree-supercategory { margin-left: 0; }
.tree-group { margin-left: 16px; }
.tree-category { margin-left: 32px; }
.tree-tool { margin-left: 48px; }

.tree-level.current {
    background: var(--bg-tertiary);
}

.tree-level.current .level-name {
    color: var(--text-primary);
    font-weight: 600;
}

/* Alternatives Section */
.alternatives-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--border);
}

.alternatives-section h2 {
    margin-bottom: 24px;
}

/* Search */
.search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: var(--primary);
}

.search-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.search-btn:hover {
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.footer-section h4 {
    margin-bottom: 16px;
    font-size: 16px;
}

.footer-section p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-bottom .disclaimer {
    font-size: 12px;
    margin-top: 8px;
    opacity: 0.7;
}

/* Error Pages */
.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-page h1 {
    font-size: 72px;
    color: var(--primary);
    margin-bottom: 16px;
}

.error-page p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 32px;
}

.error-page a {
    background: var(--gradient);
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    display: inline-block;
}

/* Workflows & Integrations */
.workflow-card,
.integration-card {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s;
}

.workflow-card:hover,
.integration-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.workflow-card h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.workflow-card .domain {
    display: inline-block;
    background: var(--bg-tertiary);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Intelligence Report */
.intel-section {
    margin-bottom: 40px;
    padding: 28px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
}

.intel-section h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
}

.intel-bullet {
    background: var(--bg-primary);
    padding: 16px;
    margin-bottom: 12px;
    border-radius: var(--radius);
    border-left: 3px solid var(--success);
}

.intel-bullet strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.intel-bullet .detail {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .page-container {
        padding: 24px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .tool-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* Print styles for obfuscation notice */
@media print {
    body::before {
        content: "© ToolsInfo.com - Unauthorized reproduction prohibited";
        display: block;
        text-align: center;
        padding: 20px;
        background: #fee2e2;
        color: #991b1b;
    }
}
