﻿/* Tools Page Styles */
.tools-page {
    margin-top:70px;
}

/* Hero Section */
.hero-section {
    color: white;
    border-radius: 0 0 20px 20px;
}

    .hero-section img {
        box-shadow: var(--shadow-xl);
        border: 5px solid white;
        border-radius: 10px;
    }

    .hero-section .btn-light {
        background: white;
        border: none;
        color: var(--primary-color);
        font-weight: 600;
        transition: all 0.3s ease;
        border-radius: 30px;
        padding: 0.75rem 2rem;
    }

        .hero-section .btn-light:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }

/* Tool Cards - Fixed Version */
.tool-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    position: relative;
}

    .tool-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-xl);
    }

.tool-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.tool-content {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
}

.tool-title {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.tool-description {
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    min-height: 72px;
}

.tool-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

    .tool-tags .badge {
        font-size: 0.75rem;
        padding: 0.35em 0.75em;
        border-radius: 20px;
        font-weight: 500;
    }

.tool-content .btn-outline-primary {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .tool-content .btn-outline-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(11, 163, 105, 0.3);
    }

/* Badge colors for different tools */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-warning {
    background-color: var(--light-orange) !important;
    color: white !important;
}

.bg-danger {
    background-color: #dc3545 !important;
}

.bg-dark {
    background-color: var(--accent-color) !important;
}

.bg-info {
    background-color: #17a2b8 !important;
}

.bg-success {
    background-color: #28a745 !important;
}

/* Comparison Table */
.comparison-section .table {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: none;
}

    .comparison-section .table thead th {
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 1rem;
        font-weight: 600;
        text-align: center;
    }

    .comparison-section .table tbody td {
        padding: 1rem;
        vertical-align: middle;
        border-color: rgba(0,0,0,0.05);
        text-align: center;
    }

        .comparison-section .table tbody td:first-child {
            text-align: left;
            font-weight: 600;
            color: var(--text-dark);
        }

.comparison-section .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(11, 163, 105, 0.05);
}

.comparison-section .table-hover tbody tr:hover {
    background-color: rgba(11, 163, 105, 0.1);
}

.comparison-section .fa-check {
    color: var(--primary-color);
}

.comparison-section .fa-times {
    color: #dc3545;
}

/* CTA Section */
.cta-section {
    border-radius: 20px 20px 0 0;
    margin-top: 3rem;
}

.cta-buttons .btn {
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-buttons .btn-light {
    background: white;
    color: var(--primary-color);
}

    .cta-buttons .btn-light:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    }

.cta-buttons .btn-outline-light {
    border: 2px solid white;
    color: white;
}

    .cta-buttons .btn-outline-light:hover {
        background: rgba(255,255,255,0.1);
        transform: translateY(-3px);
    }

/* Section Titles */
.section-title {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

    .section-title:after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 60px;
        height: 3px;
        background: var(--gradient-primary);
        border-radius: 2px;
    }

.text-center .section-title:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Spacing Utilities */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

/* Media Query for Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Hero Section */
    .hero-section {
        padding: 2rem 0 !important;
        text-align: center;
        border-radius: 0 0 15px 15px;
    }

        .hero-section .display-4 {
            font-size: 2rem !important;
            margin-bottom: 1rem !important;
        }

        .hero-section .lead {
            font-size: 1rem !important;
            margin-bottom: 1.5rem !important;
            line-height: 1.5;
        }

        .hero-section img {
            margin-top: 2rem;
            max-height: 250px;
            object-fit: cover;
            width: 100%;
            border-width: 3px;
        }

        .hero-section .btn-lg {
            padding: 0.6rem 1.5rem !important;
            font-size: 1rem;
        }

    /* Tools Grid */
    .tools-grid {
        padding: 2rem 0 !important;
    }

    .tool-card {
        margin: 0 0.5rem 1.5rem;
        border-radius: 10px;
    }

    .tool-icon {
        width: 60px;
        height: 60px;
        margin: 25px auto 15px;
    }

        .tool-icon i {
            font-size: 1.5rem !important;
        }

    .tool-content {
        padding: 0 1rem 1.5rem;
    }

    .tool-title {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .tool-description {
        font-size: 0.9rem;
        min-height: auto;
        margin-bottom: 1rem !important;
        line-height: 1.5;
    }

    .tool-tags {
        gap: 0.25rem;
        margin-bottom: 1rem;
    }

        .tool-tags .badge {
            font-size: 0.7rem;
            padding: 0.25em 0.5em;
        }

    .tool-content .btn-outline-primary {
        padding: 0.4rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Comparison Table */
    .comparison-section {
        padding: 2rem 0 !important;
        overflow-x: auto;
    }

    .table-responsive {
        margin: 0 0.5rem;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: var(--shadow-lg);
    }

    .table {
        font-size: 0.85rem;
        min-width: 600px; /* Makes table scrollable on mobile */
    }

        .table thead th {
            padding: 0.75rem 0.5rem;
            font-size: 0.9rem;
        }

        .table tbody td {
            padding: 0.75rem 0.5rem;
            font-size: 0.85rem;
        }

    /* CTA Section */
    .cta-section {
        padding: 2rem 0 !important;
        margin-top: 2rem;
        border-radius: 15px 15px 0 0;
        text-align: center;
    }

        .cta-section .display-5 {
            font-size: 1.75rem !important;
            margin-bottom: 1rem !important;
        }

        .cta-section .lead {
            font-size: 1rem !important;
            margin-bottom: 1.5rem !important;
            line-height: 1.5;
        }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

        .cta-buttons .btn {
            width: 100%;
            max-width: 280px;
            margin: 0 !important;
            padding: 0.6rem 1.5rem;
            font-size: 1rem;
        }

    /* Section Titles */
    .section-title {
        font-size: 1.75rem;
    }

        .section-title:after {
            width: 50px;
            bottom: -6px;
            height: 2px;
        }

    /* Adjust container padding */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Improve spacing for mobile */
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .col-md-4, .col-lg-6, .col-lg-8 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Utility classes for mobile */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .mb-4 {
        margin-bottom: 1rem !important;
    }

    .mb-5 {
        margin-bottom: 2rem !important;
    }

    /* Ensure proper text wrapping */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
    }

    /* Fix image responsiveness */
    img {
        max-width: 100%;
        height: auto;
    }
}
