/* Custom styles for User Guide application */
/* Following Harmoniq Branding Guidelines */

/* Harmoniq Brand Variables */
:root {
    --harmoniq-primary: #274C77;
    --harmoniq-secondary: #6096BA;
    --harmoniq-ai-fuchsia: #e5007e;
    --background-default: #fafafa;
    --background-paper: #ffffff;
    --text-primary: #2D3748;
    --text-secondary: #6096BA;
    --border-color: #E2E8F0;
    --border-divider: #d9dde0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
    --border-radius-small: 4px;
    --border-radius-medium: 8px;
    --border-radius-large: 12px;
}

/* General styles */
html {
    scroll-behavior: smooth;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    touch-action: manipulation;
    transition: background-color 0.3s ease, color 0.3s ease;
}

* {
    box-sizing: border-box;
}

/* Theme transition effects */
.v-application {
    transition: background-color 0.3s ease;
}

.v-card,
.v-app-bar,
.v-navigation-drawer,
.v-footer,
.v-btn,
.v-list,
.v-list-item,
.v-data-table,
.v-text-field,
.v-dialog,
.v-text-field,
.v-select,
.v-input {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Smooth icon transition */
.v-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

.theme-toggle-btn {
    position: relative;
    overflow: hidden;
}

.theme-toggle-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    transform: scale(0) translate(-50%, -50%);
    transform-origin: top left;
    border-radius: 50%;
    transition: transform 0.5s;
}

.theme-toggle-btn:active::after {
    transform: scale(3) translate(-50%, -50%);
}

.theme-toggle-icon {
    transform: rotate(0deg);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.theme-toggle-icon--dark {
    transform: rotate(180deg);
}

/* Override Vuetify styles - Harmoniq branded */
h2.text-h4 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    font-size: 2rem;
    color: var(--harmoniq-primary);
}

h3.text-h6 {
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.v-card {
    border: 1px solid var(--border-color);
    background-color: var(--background-paper);
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius-small);
}

.v-theme--dark .v-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: #1e1e1e;
}

.v-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: -0.01em;
    color: var(--harmoniq-primary);
}

.v-theme--dark .v-card-title {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.v-card-text {
    padding: 1.5rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.v-expansion-panel-title {
    font-weight: 600;
}

/* Navigation styles - OpenAI inspired */
.v-navigation-drawer {
    z-index: 999;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.v-theme--dark .v-navigation-drawer {
    background-color: #161616 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.v-list-item {
    border-radius: 8px;
    margin: 4px 8px;
    font-size: 0.925rem;
}

.v-list-item-title {
    font-weight: 500;
    font-size: 0.925rem;
    letter-spacing: -0.01em;
}

.v-list-item:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.v-theme--dark .v-list-item {
    color: rgba(255, 255, 255, 0.85);
}

.v-theme--dark .v-list-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.v-list-item.active {
    background-color: rgba(var(--v-theme-primary), 0.08);
    color: rgb(var(--v-theme-primary));
}

.v-theme--dark .v-list-item.active {
    background-color: rgba(99, 102, 241, 0.2);
    color: #c4b5fd;
}

/* Code blocks - OpenAI inspired */
pre {
    margin: 1.5rem 0;
    padding: 0;
    overflow-x: auto;
    background-color: transparent;
    border-radius: 12px;
}

pre code {
    border-radius: 12px;
    font-family: ui-monospace, 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.7;
    display: block;
    padding: 1.25rem;
    background-color: #f7f7f8;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Override Prism.js styling for better dark mode support */
.v-theme--dark pre code,
.v-theme--dark code[class*="language-"],
.v-theme--dark pre[class*="language-"] {
    text-shadow: none;
    background-color: #0d0d0d !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #e5e5e5 !important;
}

.dark-theme code[class*="language-"],
.dark-theme pre[class*="language-"] {
    text-shadow: none;
    background-color: #0d0d0d;
    color: #e5e5e5;
}

/* Bottom navigation for mobile */
.v-bottom-navigation {
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Screen reader only content (accessibility) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Card enhancements - OpenAI inspired */
.v-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
}

.v-card .v-img {
    border-radius: 8px;
    overflow: hidden;
}

/* Card hover effect for app cards */
.app-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.app-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}

.v-theme--dark .app-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Enhanced lists */
.v-list-item {
    padding: 12px 16px;
}

.v-list-item-prepend .v-icon {
    margin-right: 12px;
}

/* Button enhancements - OpenAI inspired */
.v-btn {
    letter-spacing: -0.01em;
    text-transform: none;
    font-weight: 500;
    border-radius: 8px;
}

.v-btn--elevated {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.v-btn--elevated:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.v-app-bar {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: none !important;
}

.v-theme--dark .v-app-bar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    background-color: #0f0f0f !important;
}

.v-theme--dark .v-app-bar-title {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Enhanced expansion panels - OpenAI inspired */
.v-expansion-panel {
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
}

.v-theme--dark .v-expansion-panel {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-color: #1a1a1a;
}

.v-theme--dark .v-expansion-panel-title {
    color: rgba(255, 255, 255, 0.95);
}

.v-theme--dark .v-expansion-panel-text {
    color: rgba(255, 255, 255, 0.85);
}

.v-expansion-panel-title {
    padding: 18px 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.v-expansion-panel-text__wrapper {
    padding: 0 20px 18px 20px;
}

/* Dark theme adjustments - OpenAI inspired */
.v-theme--dark .v-main {
    background-color: #0f0f0f !important;
}

.v-theme--dark .v-container {
    background-color: transparent !important;
}

.v-theme--dark .v-card {
    background-color: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.v-theme--dark .v-card-title {
    border-bottom-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
}

.v-theme--dark .v-card-text {
    color: rgba(255, 255, 255, 0.85);
}

.v-theme--dark code[class*="language-"],
.v-theme--dark pre[class*="language-"] {
    background-color: #0d0d0d;
}

.v-theme--dark .v-alert.bg-grey-lighten-4 {
    background-color: rgba(30, 30, 30, 0.7) !important;
}

/* Prompt textarea in dark mode */
.v-theme--dark .v-textarea.bg-grey-lighten-4 .v-field__input {
    background-color: rgba(30, 30, 30, 0.7) !important;
    color: rgba(255, 255, 255, 0.9);
}

.v-theme--dark p {
    color: rgba(255, 255, 255, 0.85);
}

.v-theme--dark h2,
.v-theme--dark h3,
.v-theme--dark h4,
.v-theme--dark h5,
.v-theme--dark h6 {
    color: rgba(255, 255, 255, 0.95);
}

.v-theme--dark .text-h4,
.v-theme--dark .text-h6 {
    color: rgba(255, 255, 255, 0.95);
}

/* Code syntax highlighting */
.language-bash .token.function {
    color: #f92672;
}

.language-json .token.property {
    color: #a6e22e;
}

.language-json .token.string {
    color: #e6db74;
}

.language-javascript .token.keyword {
    color: #f92672;
}

.language-javascript .token.function {
    color: #a6e22e;
}

.language-javascript .token.string {
    color: #e6db74;
}

.language-html .token.tag {
    color: #f92672;
}

.language-html .token.attr-name {
    color: #a6e22e;
}

.language-html .token.attr-value {
    color: #e6db74;
}

/* Timeline enhancements */
.v-timeline-item__dot {
    box-shadow: 0 0 0 4px rgba(var(--v-theme-primary), 0.2);
}

.v-timeline-item__body {
    margin-bottom: 24px;
}

/* Prose styling - OpenAI inspired */
.v-card-text p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.8);
}

.v-theme--dark .v-card-text p {
    color: rgba(255, 255, 255, 0.85);
}

.v-card-text ul,
.v-card-text ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.v-card-text li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Alert styling */
.v-alert {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.v-theme--dark .v-alert {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.v-theme--dark .v-alert .v-alert__content {
    color: rgba(255, 255, 255, 0.85);
}

/* Chip styling */
.v-chip {
    border-radius: 6px;
    font-size: 0.8125rem;
}

/* Inline code styling - OpenAI inspired */
code:not([class*="language-"]) {
    background-color: rgba(0, 0, 0, 0.05);
    color: #1a1a1a;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: ui-monospace, 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
}

.v-theme--dark code:not([class*="language-"]) {
    background-color: rgba(255, 255, 255, 0.15);
    color: #e5e5e5;
}

/* List text visibility in dark mode */
.v-theme--dark ul,
.v-theme--dark ol,
.v-theme--dark li {
    color: rgba(255, 255, 255, 0.85);
}

/* Data table in dark mode */
.v-theme--dark .v-data-table {
    background-color: #1a1a1a;
    color: rgba(255, 255, 255, 0.85);
}

.v-theme--dark .v-data-table th {
    color: rgba(255, 255, 255, 0.95) !important;
}

.v-theme--dark .v-data-table td {
    color: rgba(255, 255, 255, 0.85);
}

/* Link styling */
a {
    color: #0969da;
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: #0550ae;
    text-decoration: underline;
}

.v-theme--dark a {
    color: #58a6ff;
}

.v-theme--dark a:hover {
    color: #79c0ff;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .v-container {
        padding: 12px !important;
    }

    .v-card-text {
        padding: 1.25rem !important;
    }

    h2.text-h4 {
        font-size: 1.5rem !important;
    }

    h3.text-h6 {
        font-size: 1.1rem !important;
    }

    pre code {
        font-size: 0.75rem;
        padding: 1rem;
    }

    .v-card-title {
        padding: 1rem 1.25rem;
    }
}

/* Custom animation for prompt section */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--v-theme-primary), 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--v-theme-primary), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--v-theme-primary), 0);
    }
}

.copy-btn-success {
    animation: pulse 1.5s 1;
}

/* Main content area - OpenAI inspired */
.v-main {
    background-color: #ffffff;
}

.v-theme--dark .v-main {
    background-color: #0d0d0d;
}

.v-container {
    max-width: 1200px;
}

/* Better content spacing */
.v-row + .v-row {
    margin-top: 1rem;
}

/* Divider styling - OpenAI inspired */
.v-divider {
    border-color: rgba(0, 0, 0, 0.08);
}

.v-theme--dark .v-divider {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Button visibility in dark mode */
.v-theme--dark .v-btn {
    color: rgba(255, 255, 255, 0.85);
}

.v-theme--dark .v-btn .v-icon {
    color: rgba(255, 255, 255, 0.85);
}

/* Fix for Safari overflow issues */
.v-application {
    overflow-x: hidden;
}

/* Prevent zoom on input focus for mobile */
@media (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Card/content spacing improvements */
.v-card + .v-card {
    margin-top: 16px;
}

p + p {
    margin-top: 8px;
}

/* Stepper enhancements - OpenAI inspired */
.v-stepper {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
}

.v-stepper-item {
    padding: 12px 0;
}

.v-stepper-content {
    padding: 8px 0;
}

/* Data table styling */
.v-data-table {
    border-radius: 12px;
    overflow: hidden;
}

.v-data-table th {
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    letter-spacing: -0.01em;
}

.v-data-table td {
    font-size: 0.9375rem;
}

/* Focus styles for better accessibility */
.v-btn:focus, 
.v-field:focus-within {
    outline: 2px solid rgba(var(--v-theme-primary), 0.5);
    outline-offset: 2px;
}