/* ToolDon - Custom Styles */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    width: 100%;
}

/* Prevent zoom on input focus for mobile/touchpad browsers */
input, textarea, select {
    font-size: 16px !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(0.95); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.animate-slide-in {
    animation: slideIn 0.3s ease forwards;
}

.animate-slide-down {
    animation: slideDown 0.3s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Staggered animation delays */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }
.stagger-7 { animation-delay: 0.35s; }
.stagger-8 { animation-delay: 0.4s; }

/* Tool card hover effects */
.tool-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(74, 144, 217, 0.15);
}

/* Category card styles */
.category-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
}

.category-card:hover .cat-icon {
    transform: scale(1.15) rotate(5deg);
}

.cat-icon {
    transition: transform 0.3s ease;
}

/* Hero gradient */
.hero-gradient {
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 30%, #f0f9ff 60%, #faf5ff 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 144, 217, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-gradient::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 40%;
    height: 150%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Search results */
.search-result-item {
    transition: background-color 0.15s ease;
}

.search-result-item:hover {
    background-color: #eff6ff;
}

/* Breadcrumb */
.breadcrumb a {
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #4A90D9;
}

/* Tool widget area */
.tool-widget {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
    min-height: 300px;
    transition: border-color 0.3s ease;
}

.tool-widget:hover {
    border-color: #4A90D9;
}

.tool-widget.active {
    border: 1px solid #e2e8f0;
    border-style: solid;
    background: #ffffff;
}

/* FAQ Toggle */
.faq-item {
    transition: all 0.2s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    opacity: 1;
    padding-top: 12px;
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-arrow {
    transition: transform 0.3s ease;
}

/* Gradient text helper */
.gradient-text {
    background: linear-gradient(135deg, #4A90D9, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shimmer loading effect */
.shimmer {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Ad slot styles */
.ad-slot {
    text-align: center;
    margin: 16px 0;
    min-height: 0;
}

.ad-slot:empty {
    display: none;
}

/* Feature badge */
.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.feature-badge:hover {
    background: #dbeafe;
    transform: translateY(-1px);
}

/* Share button */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Blog card */
.blog-card {
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
}

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

.blog-image {
    transition: transform 0.5s ease;
}

/* Trust badge */
.trust-card {
    transition: all 0.3s ease;
}

.trust-card:hover {
    transform: translateY(-4px);
}

.trust-card:hover .trust-icon {
    transform: scale(1.1) rotate(5deg);
}

.trust-icon {
    transition: transform 0.3s ease;
}

/* Mobile menu transition */
#mobile-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

/* Pagination */
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: #eff6ff;
    color: #4A90D9;
}

.pagination .active {
    background: #4A90D9;
    color: white;
}

/* Form styles */
.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: #4A90D9;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 6px;
}

/* Button styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #4A90D9, #3b82f6);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(74, 144, 217, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(74, 144, 217, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    background: white;
    color: #334155;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: #4A90D9;
    color: #4A90D9;
    background: #eff6ff;
}

/* Counter badge */
.counter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: #4A90D9;
    color: white;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}
/* Custom Color Input Styling */
input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
    border: 2px solid #e2e8f0;
    padding: 0;
    overflow: hidden;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 8px;
}

input[type="color"]::-moz-color-swatch {
    border: none;
    border-radius: 8px;
}

/* Scroll margin for tools */
#tool-content {
    scroll-margin-top: 100px;
}
