/* assets/css/pages/tools.css - Global Styles for Erpin Digital Tools */

:root {
    --tool-bg-dark: #0f172a;
    --tool-bg-surface: rgba(30, 41, 59, 0.7);
    --tool-border: rgba(255, 255, 255, 0.1);
    --tool-primary: #3b82f6;
    --tool-primary-hover: #2563eb;
    --tool-accent: #8b5cf6;
    --tool-text-main: #f8fafc;
    --tool-text-muted: #94a3b8;
    --tool-input-bg: rgba(15, 23, 42, 0.6);
    --tool-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Base Tool Page Styling */
.tool-page-wrapper {
    background-color: var(--tool-bg-dark);
    background-image:
        radial-gradient(ellipse at top right, rgba(59, 130, 246, 0.15), transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(139, 92, 246, 0.15), transparent 50%);
    min-height: 80vh;
    padding: 120px 0 80px 0;
    color: var(--tool-text-main);
    overflow: hidden;
}

.tool-header-section {
    text-align: center;
    margin-bottom: 50px;
}

.tool-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.tool-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: -1px;
}

.tool-title span {
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tool-desc {
    color: var(--tool-text-muted);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Glassmorphism Card Container */
.tool-container {
    background: var(--tool-bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    border: 1px solid var(--tool-border);
    padding: 40px;
    box-shadow: var(--tool-shadow);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Forms and Inputs */
.tool-form-group {
    margin-bottom: 25px;
}

.tool-label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
}

.tool-label span.req {
    color: #ef4444;
}

.tool-label span.opt {
    color: var(--tool-text-muted);
    font-size: 0.8rem;
    font-weight: 400;
    margin-left: 5px;
}

.tool-input {
    width: 100%;
    background: var(--tool-input-bg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.tool-input option {
    background-color: #1e293b;
    color: #f8fafc;
}

.tool-input:focus {
    outline: none;
    border-color: var(--tool-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
    background: rgba(15, 23, 42, 0.8);
}

.tool-input::placeholder {
    color: #64748b;
}

/* Result Box Area */
.tool-result-box {
    margin-top: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 30px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    position: relative;
}

.tool-result-label {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    display: block;
}

.tool-generated-link {
    background: rgba(15, 23, 42, 0.9);
    padding: 20px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 1rem;
    color: #60a5fa;
    word-break: break-all;
    min-height: 80px;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.tool-btn-copy {
    background: linear-gradient(135deg, var(--tool-primary), var(--tool-accent));
    color: white;
    font-weight: 600;
    border: none;
    padding: 16px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.05rem;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.tool-btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
}

.tool-btn-copy.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* CTA Card */
.tool-cta-card {
    margin-top: 60px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tool-cta-card h3 {
    color: white;
    font-weight: 800;
    margin-bottom: 15px;
}

.tool-cta-card p {
    color: var(--tool-text-muted);
    font-size: 1.05rem;
    margin-bottom: 25px;
}

.tool-cta-btn {
    background: white;
    color: var(--tool-bg-dark);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    display: inline-block;
}

.tool-cta-btn:hover {
    background: var(--tool-primary);
    color: white;
}

/* Help Texts */
.tool-help-text {
    font-size: 0.85rem;
    color: var(--tool-text-muted);
    margin-top: 8px;
    display: block;
}

@media (max-width: 768px) {
    .tool-page-wrapper {
        padding: 140px 0 60px 0;
    }

    .tool-title {
        font-size: 2.2rem;
    }

    .tool-desc {
        font-size: 1rem;
        padding: 0 15px;
    }

    .tool-container {
        padding: 25px;
        margin: 0 15px;
        border-radius: 16px;
    }

    .tool-input {
        padding: 14px 15px;
    }

    .tool-cta-card {
        padding: 30px 20px;
        margin: 40px 15px 0 15px;
    }
}