/* ==================== WEBTOOLS - Mavi Tonlu Modern Tema ==================== */

:root {
    --accent: #3b82f6; /* blue-500 */
    --accent-dark: #2563eb;
}

/* ==================== MODAL (Premium feel) ==================== */
#modal {
    animation: fadeInModal 120ms ease-out forwards;
}

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

#modal > div {
    animation: modalEnter 220ms cubic-bezier(0.23, 1.0, 0.32, 1) forwards;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}

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

/* ==================== NEW MODERN CARD DESIGN ==================== */
#tools-grid {
    gap: 1rem;
}

#tools-grid > div {
    transition: all 0.15s cubic-bezier(0.23, 1.0, 0.32, 1);
}

#tools-grid > div:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Line clamp */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== SCROLLBARS ==================== */
#modal-body::-webkit-scrollbar,
pre::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
#modal-body::-webkit-scrollbar-thumb,
pre::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.15);
    border-radius: 20px;
}
#modal-body::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255,255,255,0.25);
}

/* ==================== INPUTS & TEXTAREAS (Modern) ==================== */
input, textarea {
    transition: all 0.15s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.4) !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
    background-color: rgba(255,255,255,0.08) !important;
}

textarea {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    line-height: 1.5;
}

/* Range slider nicer look */
input[type="range"] {
    accent-color: #10b981;
}

/* Line clamp helper (used in cards) */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Dark mode is default - extra utilities */
.bg-zinc-950 { background-color: #09090b; }

/* Footer subtle */
footer {
    font-feature-settings: "tnum";
}

/* Make sure long monospace results don't break layout */
pre, .font-mono {
    font-feature-settings: "ss02", "zero";
}

/* ==================== MOBILE IMPROVEMENTS ==================== */
@media (max-width: 640px) {
    .text-6xl, .text-7xl { font-size: 3rem !important; line-height: 1.0 !important; letter-spacing: -2.5px !important; }
    
    #tools-grid {
        gap: 0.75rem;
    }
    
    #modal > div {
        max-height: 96vh;
        border-radius: 1.5rem;
    }
}

/* Better focus states */
button:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.6);
    outline-offset: 3px;
}

/* FAQ Accordion Styles */
.faq-question {
    transition: background-color 0.1s ease;
}

.faq-icon {
    transition: transform 0.2s ease;
    display: inline-block;
    width: 20px;
    text-align: center;
}

.faq-icon.rotate-45 {
    transform: rotate(45deg);
}

/* ==================== HAFİF PARALLAX EFEKTİ ==================== */
.parallax-slow {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.hero-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.hero-bg-blob-1 {
    background: #3b82f6;
    width: 420px;
    height: 420px;
    top: -80px;
    right: 10%;
}

.hero-bg-blob-2 {
    background: #6366f1;
    width: 320px;
    height: 320px;
    bottom: -60px;
    left: 15%;
}

/* Accessibility: focus visible */
button:focus-visible,
input:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Copy feedback */
.copy-success {
    animation: copyPop 0.6s ease;
}

@keyframes copyPop {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}