/**
 * PromptMaster - Additional Theme Styles
 */

/* Custom Theme Variables Override */
[data-theme="custom"] {
    --accent-primary: var(--custom-primary, #6366f1);
    --accent-secondary: var(--custom-secondary, #8b5cf6);
    --accent-tertiary: var(--custom-accent, #a855f7);
    --bg-primary: var(--custom-bg, #0a0a0f);
}

/* Theme transition */
html {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark theme enhancements */
[data-theme="dark"] {
    color-scheme: dark;
}

[data-theme="dark"] ::selection {
    background: rgba(99, 102, 241, 0.4);
}

/* Light theme enhancements */
[data-theme="light"] {
    color-scheme: light;
}

[data-theme="light"] ::selection {
    background: rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .logo-icon {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .tool-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn-primary {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

[data-theme="light"] body::before {
    background:
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-color-hover);
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: #f1f1f1;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #c1c1c1;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: rgba(255, 255, 255, 0.3);
        --text-secondary: rgba(255, 255, 255, 0.9);
    }
}

/* Print styles */
@media print {

    .header,
    .footer,
    .copy-sidebar,
    .toast-container {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}