/**
 * MultiToolVerse Main Stylesheet
 * Design matches the attached HTML files
 */

:root {
    --primary: #4361ee;
    --primary-dark: #3a0ca3;
    --accent: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --border: #dee2e6;
    --shadow: 0 5px 15px rgba(0,0,0,0.08);
    --radius: 8px;
    --transition: all 0.3s ease;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: white;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--dark);
}

p {
    margin-bottom: 15px;
    color: var(--gray);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: white;
}

.btn-accent {
    background: var(--accent);
}

.btn-accent:hover {
    background: #d63384;
}

.btn-large {
    padding: 15px 35px;
    font-size: 16px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Header */
.site-header {
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.logo i {
    color: var(--accent);
    font-size: 1.8rem;
}

.site-description {
    font-size: 14px;
    color: var(--gray);
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    font-weight: 500;
    color: var(--dark);
    padding: 5px 0;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section - Matches home page.html */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7ff 0%, #eef1ff 100%);
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 40px;
}

.search-box {
    max-width: 700px;
    margin: 40px auto 0;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 18px 20px;
    padding-left: 50px;
    border-radius: 50px;
    border: 2px solid var(--border);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(67,97,238,0.1);
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 80px;
}

.stat-item {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Categories Section - Matches home page.html and category page.html */
.categories {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.category-grid,
.tools-grid,
.related-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.category-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.category-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* Tools Showcase - Matches home page.html */
.tools-showcase {
    padding: 80px 0;
    background: var(--light-gray);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.tool-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border-left: 4px solid var(--primary);
    position: relative;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.tool-icon {
    position: relative;
    width: 60px;
    height: 60px;
    background: var(--light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--primary);
}

.tool-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
}

.tool-badge.new {
    background: #28a745;
}

.tool-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-card p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.tool-tag {
    background: var(--light-gray);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--gray);
}

.tool-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.tool-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.status-active {
    color: #28a745;
}

.status-beta {
    color: #fd7e14;
}

.tool-views {
    color: var(--gray);
    font-size: 0.85rem;
}

/* Features Section - Matches home page.html */
.features {
    padding: 80px 0;
    background: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4cc9f0, #4361ee);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
}

.feature-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* CTA Section - Matches home page.html */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.cta p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
    color: white;
}

/* Category Page - Matches category page.html */
.category-page {
    padding: 60px 0;
}

.category-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px;
    background: linear-gradient(135deg, var(--light) 0%, #f0f2ff 100%);
    border-radius: var(--radius);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.category-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.category-description {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 20px;
}

.category-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
}

.category-tools {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--dark);
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

/* Tool Page - Matches tool page.html */
.tool-page {
    padding: 60px 0;
}

.tool-header {
    background: linear-gradient(135deg, var(--light) 0%, #f0f2ff 100%);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 40px;
}

.tool-breadcrumbs {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--gray);
}

.tool-breadcrumbs a:hover {
    color: var(--primary);
}

.tool-main-info {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.tool-big-icon {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.tool-info {
    flex: 1;
}

.tool-page-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.tool-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tool-category-tag {
    background: var(--light);
    color: var(--primary);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.tool-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 0.9rem;
}

.tool-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.tool-description-section,
.tool-features {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--dark);
    border-bottom: none;
}

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

.features-list li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

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

.tool-actions {
    background: var(--light);
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 40px;
    text-align: center;
}

.tool-actions .btn {
    font-size: 1.1rem;
    padding: 15px 40px;
    margin-bottom: 15px;
}

.tool-note {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Sidebar */
.tool-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

.sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--dark);
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

.related-tools-list {
    list-style: none;
}

.related-tools-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.related-tools-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.related-tool-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--dark);
}

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

.related-tool-icon {
    width: 40px;
    height: 40px;
    background: var(--light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary);
    flex-shrink: 0;
}

/* Related Categories */
.related-categories {
    margin-top: 60px;
}

.related-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.related-category-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid var(--border);
    text-align: center;
}

.related-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.related-category-icon {
    width: 50px;
    height: 50px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.2rem;
    color: var(--primary);
}

.related-category-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.related-category-count {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Footer - Matches footer.html */
.site-footer {
    background: var(--dark);
    color: white;
    padding: 70px 0 30px;
    margin-top: 80px;
}

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

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.footer-logo i {
    color: var(--accent);
}

.footer-description {
    color: #adb5bd;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-menu,
.footer-tools-list,
.contact-info {
    list-style: none;
}

.footer-menu li,
.footer-tools-list li,
.contact-info li {
    margin-bottom: 12px;
}

.footer-menu a,
.footer-tools-list a,
.contact-info a {
    color: #adb5bd;
    transition: color 0.3s;
}

.footer-menu a:hover,
.footer-tools-list a:hover,
.contact-info a:hover {
    color: white;
    padding-left: 5px;
}

.footer-tools-list i {
    margin-right: 8px;
    color: var(--accent);
    font-size: 0.9rem;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #adb5bd;
}

.contact-info i {
    color: var(--accent);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #343a40;
    color: #adb5bd;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: #adb5bd;
}

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

/* Pagination */
.pagination {
    margin-top: 50px;
    text-align: center;
}

.pagination ul {
    display: inline-flex;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--dark);
    transition: var(--transition);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .tool-content {
        grid-template-columns: 1fr;
    }
    
    .tool-sidebar {
        position: static;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: white;
        padding: 30px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transition: left 0.3s;
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .tool-main-info {
        flex-direction: column;
        text-align: center;
    }
    
    .tool-big-icon {
        margin: 0 auto;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .category-title,
    .tool-page-title {
        font-size: 2rem;
    }
    
    .category-grid,
    .tool-grid,
    .feature-grid,
    .related-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}