/* Promphy.ai - Premium Custom Styles */

:root {
    --bg-dark: #0b0f19;
    --panel-bg: rgba(20, 25, 40, 0.6);
    --panel-border: rgba(255, 255, 255, 0.08);
    --accent-primary: #6366f1;
    --accent-secondary: #ec4899;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --glow: rgba(99, 102, 241, 0.5);
    --card-hover: rgba(255, 255, 255, 0.05);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .logo-text {
    font-family: 'Outfit', sans-serif;
}

/* Background Effects */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -2;
    opacity: 0.5;
    animation: float 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    top: -200px;
    left: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.glass-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    z-index: -1;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Layout */
.app-container {
    max-width: 900px;
    padding-top: 1rem;
}

.glass-panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Header */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.premium-badge {
    background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(236,72,153,0.2));
    border: 1px solid rgba(255,255,255,0.1);
    color: #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
}

/* Typography */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Progress Bar */
.progress {
    background-color: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: visible;
}

.custom-progress-bar {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 10px var(--glow);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-secondary);
}

/* Steps */
.step-pane {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.step-pane.active {
    display: block;
}

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

/* Selection Cards */
.select-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.select-card:hover {
    background: var(--card-hover);
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.15);
}

.select-card.selected {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.select-card.selected::before {
    content: '\f00c';
    font-family: 'FontAwesome';
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--accent-primary);
    font-size: 0.8rem;
}

.card-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.card-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Color Palettes */
.color-swatches {
    display: flex;
    gap: 4px;
    margin-bottom: 1rem;
    border-radius: 6px;
    overflow: hidden;
    height: 30px;
}

.color-swatches span {
    flex: 1;
    height: 100%;
}

/* Inputs */
.custom-input {
    background-color: rgba(0,0,0,0.2);
    border: 1px solid var(--panel-border);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.custom-input:focus {
    background-color: rgba(0,0,0,0.3);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
}

.custom-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.form-control-color {
    height: 40px;
    padding: 0.25rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
}

/* Buttons */
.custom-btn {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary.custom-btn {
    background: linear-gradient(135deg, var(--accent-primary), #818cf8);
    border: none;
    box-shadow: 0 4px 15px rgba(99,102,241,0.3);
}

.btn-primary.custom-btn:hover {
    background: linear-gradient(135deg, #4f46e5, var(--accent-primary));
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.4);
}

.btn-outline-secondary.custom-btn {
    border-color: var(--panel-border);
    color: var(--text-primary);
}

.btn-outline-secondary.custom-btn:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
}

/* Prompt Output */
.prompt-textarea {
    background: rgba(0,0,0,0.3);
    border: none;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    resize: vertical;
    border-radius: 8px;
}

.prompt-textarea:focus {
    background: rgba(0,0,0,0.3);
    color: #e2e8f0;
    box-shadow: none;
    outline: none;
}

/* Feature Checkboxes (Toggle pills) */
.feature-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--panel-border);
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.feature-pill:hover {
    background: rgba(255,255,255,0.1);
}

.feature-pill.selected {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Toast */
.glass-toast {
    background: rgba(20, 25, 40, 0.9) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-primary) !important;
    color: white !important;
}

/* Select dropdown */
.form-select.custom-input {
    background-color: rgba(0,0,0,0.2);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    border: 1px solid var(--panel-border);
    color: var(--text-primary);
    border-radius: 8px;
}
.form-select.custom-input:focus {
    background-color: rgba(0,0,0,0.3);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
}
.form-select.custom-input option {
    background: #1a1f35;
    color: var(--text-primary);
}

/* Form validation */
.was-validated .custom-input:invalid,
.custom-input.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}
.was-validated .custom-input:valid {
    border-color: #10b981;
}
.invalid-feedback {
    color: #f87171;
    font-size: 0.82rem;
    margin-top: 0.35rem;
}

/* Active nav link */
.navbar .nav-link.active {
    color: var(--accent-primary) !important;
}
.navbar .nav-link {
    color: rgba(255,255,255,0.75);
    transition: color 0.2s;
}
.navbar .nav-link:hover {
    color: #fff;
}

/* Text accent link */
.text-accent-primary {
    color: var(--accent-primary) !important;
}
a.text-accent-primary:hover {
    color: var(--accent-secondary) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark); 
}
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1); 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2); 
}

.site-logo-img { height: 32px; width: 32px; border-radius: 8px; margin-right: 0.5rem; object-fit: cover; }

/* Humanizer Highlight Effects */
.highlight { background: rgba(16, 185, 129, 0.2); border-bottom: 2px solid #10b981; color: #fff; padding: 0 4px; border-radius: 4px; transition: all 0.3s; cursor: default; }
.highlight:hover { background: rgba(16, 185, 129, 0.4); }
.editor-textarea[contenteditable]:empty:before { content: attr(placeholder); color: rgba(255,255,255,0.3); pointer-events: none; display: block; }


/* Humanizer Demo Card */
.humanizer-demo-card { padding: 2rem; cursor: pointer; transition: all 0.4s ease; }
.demo-text { font-size: 1.1rem; line-height: 1.6; transition: all 0.4s ease; position: absolute; top: 5rem; left: 2rem; right: 2rem; }
.robotic-text { opacity: 1; transform: translateY(0); color: rgba(255,255,255,0.7); }
.human-text { opacity: 0; transform: translateY(20px); color: #fff; }
.humanizer-demo-card:hover { border-color: var(--accent-primary); box-shadow: 0 10px 40px rgba(99,102,241,0.2); }
.humanizer-demo-card:hover .robotic-text { opacity: 0; transform: translateY(-20px); }
.humanizer-demo-card:hover .human-text { opacity: 1; transform: translateY(0); }
.demo-overlay-hint { position: absolute; bottom: 1rem; right: 1.5rem; font-size: 0.8rem; color: var(--text-muted); opacity: 0.7; transition: opacity 0.3s; }
.humanizer-demo-card:hover .demo-overlay-hint { opacity: 0; }


/* Interactive Footer Links */
footer a.hover-text-white { position: relative; display: inline-block; transition: color 0.3s ease; }
footer a.hover-text-white::after { content: ''; position: absolute; width: 0; height: 1px; bottom: -2px; left: 0; background-color: var(--accent-primary); transition: width 0.3s ease; }
footer a.hover-text-white:hover::after { width: 100%; }


/* =========================================
   Interactive Premium Footer
   ========================================= */
.interactive-footer {
    position: relative;
    background: linear-gradient(180deg, rgba(10, 10, 20, 0) 0%, rgba(30, 10, 50, 0.4) 30%, rgba(15, 5, 25, 0.9) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    color: #e0e0e0;
}

.footer-section-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #fff, #a0b0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Timeline */
.timeline-vertical {
    border-left: 2px solid rgba(138, 43, 226, 0.3);
    padding-left: 2rem;
    position: relative;
}
.timeline-step {
    position: relative;
    margin-bottom: 1.5rem;
}
.timeline-step::before {
    content: '';
    position: absolute;
    left: -2.45rem;
    top: 0.25rem;
    width: 16px;
    height: 16px;
    background: #8a2be2;
    border-radius: 50%;
    box-shadow: 0 0 10px #8a2be2;
}

/* Horizontal Scroll for Explore Tools */
.horizontal-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
}
.horizontal-scroll-container::-webkit-scrollbar {
    height: 6px;
}
.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(138, 43, 226, 0.5);
    border-radius: 10px;
}
.horizontal-scroll-card {
    scroll-snap-align: start;
    min-width: 250px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.horizontal-scroll-card:hover {
    transform: translateY(-5px);
}

/* Accordion Overrides */
.interactive-footer .accordion-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    margin-bottom: 0.5rem;
    border-radius: 10px !important;
    overflow: hidden;
}
.interactive-footer .accordion-button {
    background: transparent;
    color: #fff;
    box-shadow: none;
}
.interactive-footer .accordion-button:not(.collapsed) {
    color: #a0b0ff;
    background: rgba(138, 43, 226, 0.1);
}
.interactive-footer .accordion-body {
    color: #ccc;
}

/* Minimal Icons Row */
.trust-signal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
}
.trust-signal i {
    font-size: 1.5rem;
    color: #8a2be2;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-link:hover {
    color: #fff;
}
