/* Custom styles for foreverfree.fyi public pages */

/* Import Instrument Sans font */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

body {
    font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    background-image: 
        radial-gradient(at 0% 0%, rgba(219, 234, 254, 0.3) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(224, 242, 254, 0.3) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(243, 232, 255, 0.2) 0px, transparent 50%);
    background-attachment: fixed;
}

/* Navbar blur effect */
.navbar-blur {
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Hero Section */
.hero-title {
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1.1;
}

/* Category Filter Pills styling matching screenshot */
.btn-filter-pill {
    background-color: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 0.6rem 1.4rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 50rem;
    transition: all 0.2s ease;
}

.btn-filter-pill:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.btn-filter-pill.active {
    background-color: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.15), 0 2px 4px -2px rgba(15, 23, 42, 0.15);
}

/* Search input container */
.search-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    padding: 0.25rem 1rem;
}

.search-wrapper:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.search-input {
    border: none;
    outline: none;
    box-shadow: none;
    width: 100%;
    padding: 0.75rem 0.5rem;
    font-size: 0.95rem;
    color: #1e293b;
    background: transparent;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-icon {
    color: #94a3b8;
}

/* Custom Tool Cards styling based on screenshot */
.tool-card-container {
    perspective: 1000px;
}

.tool-card {
    background-color: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02), 0 1px 2px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: rgba(203, 213, 225, 0.8);
    box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    text-decoration: none;
}

.tool-card-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background-color: #e0f2fe;
    color: #0369a1;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Icon Wrappers */
.tool-icon-wrapper {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: transform 0.3s ease;
}

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

/* Action text trigger */
.tool-action-link {
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s ease;
}

.tool-card.active-tool .tool-action-link {
    color: #2563eb;
}

.tool-card.active-tool:hover .tool-action-link {
    color: #1d4ed8;
}

.tool-card.coming-soon-tool .tool-action-link {
    color: #94a3b8;
}

.tool-card.coming-soon-tool:hover .tool-action-link {
    color: #64748b;
}

/* Tool color schemes matching screenshot palettes */
.icon-indigo { background-color: #e0e7ff; border-color: #c7d2fe; color: #4f46e5; }
.icon-green { background-color: #ecfdf5; border-color: #d1fae5; color: #059669; }
.icon-cyan { background-color: #ecfeff; border-color: #cffafe; color: #0891b2; }
.icon-blue { background-color: #eff6ff; border-color: #dbeafe; color: #2563eb; }
.icon-orange { background-color: #fff7ed; border-color: #ffedd5; color: #ea580c; }
.icon-amber { background-color: #fef3c7; border-color: #fde68a; color: #d97706; }
.icon-purple { background-color: #faf5ff; border-color: #f3e8ff; color: #9333ea; }
.icon-emerald { background-color: #ecfdf5; border-color: #d1fae5; color: #059669; }
.icon-lime { background-color: #f7fee7; border-color: #ecfccb; color: #65a30d; }
.icon-sky { background-color: #f0f9ff; border-color: #e0f2fe; color: #0284c7; }
.icon-fuchsia { background-color: #fdf4ff; border-color: #fae8ff; color: #c084fc; }
.icon-rose { background-color: #fff1f2; border-color: #ffe4e6; color: #e11d48; }
.icon-violet { background-color: #f5f3ff; border-color: #ddd6fe; color: #7c3aed; }
.icon-slate { background-color: #f8fafc; border-color: #e2e8f0; color: #475569; }

/* Filter animation wrapper classes */
.card-fade-out {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.card-fade-in {
    opacity: 1;
    transform: scale(1);
}

/* Custom Toasts System */
.custom-toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.custom-toast {
    background-color: #0f172a;
    color: #ffffff;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid #1e293b;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    max-width: 380px;
    animation: toast-slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.3s ease;
}

.custom-toast.hide {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
}

.toast-icon-box {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background-color: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-body {
    flex-grow: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 0.875rem;
    margin: 0;
    color: #ffffff;
}

.toast-message {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0.15rem 0 0 0;
}

.toast-close-btn {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close-btn:hover {
    color: #ffffff;
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateY(2rem) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Custom visual utilities for public layout */
.fs-7 {
    font-size: 0.8125rem !important;
}

.fw-black {
    font-weight: 900 !important;
}

.hover-dark:hover {
    color: #0f172a !important;
}

.hover-light:hover {
    background-color: #f1f5f9;
}

.transition-scale {
    transition: transform 0.2s ease;
}

.transition-scale:hover {
    transform: scale(1.2);
}

/* Restrict tool SVG scaling to prevent distortion */
.tool-icon-wrapper svg {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
}

/* Responsive paragraph limits */
.max-w-hero-p {
    max-width: 44rem;
}


