/*
Theme Name: Barlog Child
Theme URI: https://barlog.modeltheme.com/
Template: barlog
Author: ModelTheme
Author URI: http://modeltheme.com/
Description: A Modern Blog & Magazine Theme
Version: 1.6.1
Text Domain: barlog
Tags: custom-header, custom-menu, featured-images, post-formats, sticky-post

*/

/* =Theme customization starts here
------------------------------------------------------- */

/* Base Tool Section Styles */
/* Tool Section Styles */
.tools-section {
    padding: 4rem 0;
    position: relative;
}

/* Tool Grid Layout */
.tools-grid {
    position: relative;
}

/* Card Base Styles */
.tool-card {
    position: relative;
    transition: all 0.3s ease;
}

/* Card Style Variations */
.card-shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
}

.card-border {
    border: 1px solid rgba(0, 0, 0, 0.125);
    box-shadow: none;
}

.card-minimal {
    border: none;
    box-shadow: none;
}

/* Hover Effects */
.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

/* Animation Classes */
.animate-fade {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide {
    opacity: 0;
    animation: slideUp 0.6s ease-out forwards;
}

.animate-zoom {
    opacity: 0;
    animation: zoomIn 0.6s ease-out forwards;
}

/* Tool Image Styles */
.tool-image-wrapper {
    overflow: hidden;
    position: relative;
}

.tool-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Tool Icon Styles */
.tool-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Category Styles */
.tool-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tool-category {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Button Styles */
.btn-learn-more {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Filter Styles */
.tools-filter {
    margin-bottom: 2rem;
}

.filter-buttons .btn {
    margin: 0.25rem;
}

.filter-dropdown {
    max-width: 200px;
    margin: 0 auto;
}

.filter-tabs {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

/* Share Buttons */
.tool-share {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1;
}

.share-button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .tools-section {
        padding: 2rem 0;
    }
    
    .tool-card {
        margin-bottom: 1.5rem;
    }
}

/* Infinite Scroll */
.infinite-scroll-loader {
    text-align: center;
    padding: 2rem 0;
}

/* Modal Styles */
.tool-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
}

.tool-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
}

/**
/* Tool Section Header Styles */
.tools-header {
    margin-bottom: 3rem;
    text-align: center;
}
.tools-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}
.tools-header .lead {
    color: #6c757d;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/**
 * Tool Card Styles
 */
 .card {
        border-radius: 12px;
        transition: transform .2s ease, box-shadow .2s ease;
        overflow: hidden;
    }

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    }

    .card i {
        display: inline-block;
        padding: 15px;
        border-radius: 50%;
    }

    .tool-image {
        height: 200px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tool-image img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    .tool-categories .badge {
        font-size: 0.8rem;
        padding: 0.4em 0.8em;
        margin: 0.2em;
    }

    .card .btn-primary {
        transition: all 0.3s ease;
        padding: 0.5rem 1.5rem;
    }

    .card .btn-primary:hover {
        transform: scale(1.05);
    }
.tools-section {
    padding: 4rem 0;
    
}

.tools-header {
    margin-bottom: 3rem;
}

.tools-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.tool-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

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

.tool-card .card-body {
    padding: 1.5rem;
}

.tool-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 0.5rem;
    margin: -1.5rem -1.5rem 1.5rem;
}

.tool-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tool-card:hover .tool-image-wrapper img {
    transform: scale(1.1);
}

.tool-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #4b6cb7, #182848);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.tool-icon i {
    font-size: 1.5rem;
}

.tool-card:hover .tool-icon {
    transform: rotate(360deg);
    background: linear-gradient(45deg, #1e3c72, #2a5298);
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.tool-categories {
    margin-bottom: 1rem;
}

.tool-category {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 20px;
    margin: 0.2rem;
    background: #e9ecef;
    color: #495057;
    transition: all 0.3s ease;
}

.tool-category:hover {
    background: #4b6cb7;
    color: #fff;
}

.tool-excerpt {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tool-card .btn-learn-more {
    background: #2563eb;
    color: #ffffff;
    border: 2px solid #2563eb;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
}

.tool-card .btn-learn-more:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #ffffff;
    z-index: -1;
    transition: width 0.4s ease;
}

.tool-card .btn-learn-more:hover {
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

.tool-card .btn-learn-more:hover:before {
    width: 100%;
}

/* Make sure the button stays at bottom of card */
.tool-card .card-body {
    display: flex;
    flex-direction: column;
}

.tool-card .btn-learn-more {
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tools-section {
        padding: 2rem 0;
    }
    
    .tools-header h2 {
        font-size: 2rem;
    }
    
    .tool-card {
        margin-bottom: 2rem;
    }
}
