/**
 * Main Stylesheet for ai.TCP
 */

:root {
    --color-bg: #0D1117;
    --color-surface: rgba(22, 27, 34, 0.5);
    --color-border: rgba(240, 185, 11, 0.1);
    --color-accent: #F0B90B;
    --color-bullish: #22c55e;
    --color-bearish: #ef4444;
    --color-gemini: #8b5cf6;
}

body {
    font-family: 'Sora', sans-serif;
    background-color: var(--color-bg);
    color: #E6EDF3;
}

/* Aurora Background Animation */
#aurora-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at 70% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 70%, rgba(240, 185, 11, 0.1) 0%, transparent 50%);
    animation: aurora 20s linear infinite alternate;
}

@keyframes aurora {
    0% {
        transform: rotate(0deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1.2);
    }
}

/* Glass Card Effect */
.glass-card {
    background: var(--color-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
}

/* Buttons - Premium Matte Design */
.btn {
    font-weight: 500;
    border-radius: 10px;
    padding: 12px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.btn-gemini {
    background: rgba(88, 28, 135, 0.25);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #c4b5fd;
    backdrop-filter: blur(8px);
}

.btn-gemini:hover:not(:disabled) {
    background: rgba(88, 28, 135, 0.35);
    border-color: rgba(139, 92, 246, 0.4);
    color: #ddd6fe;
}

.btn-quick {
    background: rgba(6, 95, 70, 0.25);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #86efac;
    backdrop-filter: blur(8px);
}

.btn-quick:hover:not(:disabled) {
    background: rgba(6, 95, 70, 0.35);
    border-color: rgba(34, 197, 94, 0.4);
    color: #bbf7d0;
}

.btn-export {
    background: rgba(29, 78, 216, 0.25);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #93c5fd;
    backdrop-filter: blur(8px);
}

.btn-export:hover:not(:disabled) {
    background: rgba(29, 78, 216, 0.35);
    border-color: rgba(59, 130, 246, 0.4);
    color: #bfdbfe;
}

.btn-danger {
    background: rgba(127, 29, 29, 0.25);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    backdrop-filter: blur(8px);
}

.btn-danger:hover:not(:disabled) {
    background: rgba(127, 29, 29, 0.35);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fecaca;
}

.btn.active {
    box-shadow: 0 0 24px rgba(240, 185, 11, 0.2);
    border-color: rgba(240, 185, 11, 0.3);
}

/* Form Elements */
.form-input,
.form-select,
.form-textarea {
    background-color: #0D1117;
    border: 1px solid var(--color-border);
    color: #E6EDF3;
    border-radius: 8px;
    padding: 8px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(240, 185, 11, 0.2);
}

.form-radio {
    width: 20px;
    height: 20px;
    accent-color: var(--color-accent);
}

/* Tabs */
.tab-button {
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    color: #7D8590;
    cursor: pointer;
    padding: 12px 24px;
}

.tab-button.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* Loader */
.loader {
    border: 4px solid #2d3748;
    border-top-color: var(--color-accent);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Notification Banners */
.error-banner {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.success-banner {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Stat Cards */
.stat-card {
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid rgba(240, 185, 11, 0.2);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
}

/* Tags */
.tag-btn {
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(55, 65, 81, 0.5);
    border: 1px solid rgba(107, 114, 128, 0.3);
    color: #9CA3AF;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.tag-btn:hover {
    background: rgba(75, 85, 99, 0.7);
    border-color: rgba(156, 163, 175, 0.5);
}

.tag-btn.active {
    background: rgba(240, 185, 11, 0.2);
    border-color: #F0B90B;
    color: #F0B90B;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(240, 185, 11, 0.15);
    border: 1px solid rgba(240, 185, 11, 0.3);
    color: #F0B90B;
    font-size: 0.813rem;
    font-weight: 500;
}

.tag-chip button {
    background: none;
    border: none;
    color: #F0B90B;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.tag-chip button:hover {
    opacity: 1;
}

/* Image Upload Zone */
#imageUploadZone {
    background: rgba(17, 24, 39, 0.3);
}

#imageUploadZone:hover {
    background: rgba(17, 24, 39, 0.5);
}

#imageUploadZone.drag-over {
    border-color: #F0B90B;
    background: rgba(240, 185, 11, 0.1);
}

.image-preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.image-preview-remove:hover {
    opacity: 1;
}

/* Keyboard Shortcuts */
kbd {
    display: inline-block;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 0.75rem;
    background: #1F2937;
    border: 1px solid #374151;
    border-radius: 4px;
    color: #F0B90B;
}

/* Calendar Heatmap */
.calendar-day {
    position: relative;
    min-width: 14px;
    min-height: 14px;
}

.calendar-day:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    white-space: pre-line;
    z-index: 1000;
    margin-bottom: 5px;
    min-width: 150px;
    text-align: center;
    pointer-events: none;
}

#calendar-heatmap {
    width: 100%;
}

#calendar-heatmap>div {
    max-width: 100%;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.calculator-section {
    animation: fadeIn 0.3s ease-in;
}

.mode-toggle {
    display: none;
}

/* Color Utilities */
.text-bullish {
    color: var(--color-bullish);
}

.text-bearish {
    color: var(--color-bearish);
}

.text-accent {
    color: var(--color-accent);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .grid.grid-cols-1.md\:grid-cols-3 {
        gap: 1rem;
    }
}
