/* Futuristic Motive Design System */

:root {
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    
    /* Enhanced gradients inspired by FractalGlass reference images */
    --gradient-fractal: linear-gradient(135deg, #0a0a2e 0%, #16213e 15%, #1e3c72 25%, #2a5298 35%, #ff6b9d 45%, #e91e63 55%, #f7931e 70%, #ff6b35 85%, #4facfe 100%);
    --gradient-vibrant: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 20%, #6c5ce7 40%, #74b9ff 60%, #00b894 80%, #fd79a8 100%);
    --gradient-cosmic: linear-gradient(135deg, #1a237e 0%, #3949ab 20%, #7b1fa2 40%, #c2185b 60%, #ff5722 80%, #ff9800 100%);
    --gradient-aurora: linear-gradient(135deg, #00c9ff 0%, #92fe9d 25%, #ffcc70 50%, #ff6b9d 75%, #c471ed 100%);
    
    /* New spectrum gradients from reference images */
    --gradient-spectrum: linear-gradient(90deg, #ff6b6b 0%, #fd79a8 14%, #fdcb6e 28%, #55a3ff 42%, #74b9ff 56%, #6c5ce7 70%, #a29bfe 84%, #fd79a8 100%);
    --gradient-radial-burst: radial-gradient(circle at 30% 70%, #fdcb6e 0%, #fd79a8 25%, #6c5ce7 50%, #74b9ff 75%, rgba(26, 26, 46, 0.8) 100%);
    
    --glass-border: rgba(255,255,255,0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --text-primary: #ffffff;
    --text-secondary: rgba(255,255,255,0.8);
    --text-muted: rgba(255,255,255,0.6);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Text', Roboto, Arial, sans-serif;
    background: 
        radial-gradient(circle at 15% 85%, rgba(253, 121, 168, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 15%, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 45% 45%, rgba(116, 185, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(253, 203, 110, 0.1) 0%, transparent 40%),
        linear-gradient(135deg, #0a0a1e 0%, #16213e 25%, #1e3c72 50%, #2a5298 75%, #533483 100%);
    background-attachment: fixed;
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/static/images/vibrant-gradient-2.jpg') center/cover;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism Effects */
.glass {
    background: var(--gradient-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Container Styling */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styling */
.motive-header {
    text-align: center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.motive-logo {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin-bottom: 2rem;
    border-radius: 20px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.motive-logo:hover {
    transform: scale(1.02) rotateY(5deg);
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    letter-spacing: 0.5px;
}

/* Button Styling */
.btn-futuristic {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 44px;
    justify-content: center;
}

.btn-futuristic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-futuristic:hover::before {
    left: 100%;
}

.btn-futuristic:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.btn-accent {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-accent:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.btn-cosmic {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-cosmic:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.btn-fractal {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-fractal:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

/* HOME button special styling */
.btn-home {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(116, 185, 255, 0.2) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.15);
}

.btn-home:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(116, 185, 255, 0.3) 100%);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
}

/* Top Right Authentication Styling */
.auth-top-right {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 100;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.auth-btn {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.95rem !important;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px);
    min-height: auto !important;
}

.auth-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px);
}

.auth-user-card {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    gap: 0.75rem;
}

.auth-logout-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
    margin-left: 0.75rem !important;
    min-height: auto !important;
}

@media (max-width: 768px) {
    .auth-top-right {
        position: static;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .auth-buttons {
        justify-content: center;
    }
}

/* History Page Glass Cards */
.history-card {
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.history-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.badges-section {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge-futuristic {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.badge-primary {
    color: #74b9ff;
    border-color: rgba(116, 185, 255, 0.3);
    background: rgba(116, 185, 255, 0.1);
}

.badge-info {
    color: #00b894;
    border-color: rgba(0, 184, 148, 0.3);
    background: rgba(0, 184, 148, 0.1);
}

.badge-warning {
    color: #fdcb6e;
    border-color: rgba(253, 203, 110, 0.3);
    background: rgba(253, 203, 110, 0.1);
}

.badge-secondary {
    color: #a29bfe;
    border-color: rgba(162, 155, 254, 0.3);
    background: rgba(162, 155, 254, 0.1);
}

/* Navigation Styling */
.main-nav {
    padding: 2rem 0 1rem 0;
    margin-bottom: 2rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-home-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.nav-home-link:hover {
    color: #74b9ff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(116, 185, 255, 0.15);
    background: rgba(116, 185, 255, 0.05);
    border-color: rgba(116, 185, 255, 0.2);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    text-decoration: none;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-link.active {
    color: #74b9ff;
    background: rgba(116, 185, 255, 0.1);
    border-color: rgba(116, 185, 255, 0.2);
    box-shadow: 0 4px 20px rgba(116, 185, 255, 0.15);
}

.nav-link.active:hover {
    color: #74b9ff;
    background: rgba(116, 185, 255, 0.15);
    border-color: rgba(116, 185, 255, 0.3);
}

/* Main Content Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem 2rem;
}

/* Header Section */
.header-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.header-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.625rem 1.25rem;
    }
    
    .main-container {
        padding: 0 1rem 4rem 1rem;
    }
    
    .header-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Navigation Actions Styling (used by History, Favorites, Style Builder) */
.nav-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .nav-actions {
        gap: 0.75rem;
        margin: 1.5rem 0 2rem 0;
    }
    
    .nav-actions .btn-futuristic {
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem;
    }
}

/* Additional Style Builder specific styles */
.tip-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.tip-item:last-child {
    margin-bottom: 0;
}

.favorite-btn {
    padding: 0.5rem !important;
    min-height: auto !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05) !important;
}

.card-content {
    margin-bottom: 1.5rem;
}

.content-section {
    margin-bottom: 1.25rem;
}

.section-title {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.content-text {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.timestamp {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
    min-height: auto !important;
}

.results-section {
    margin-bottom: 3rem;
}

/* Pagination Styling */
.pagination-section {
    margin: 3rem 0;
}

.pagination-glass {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-number {
    min-width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
}

.pagination-number.active {
    background: rgba(116, 185, 255, 0.2) !important;
    border-color: rgba(116, 185, 255, 0.3) !important;
    color: #74b9ff !important;
}

.pagination-btn {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.75rem 1.5rem !important;
}

.pagination-dots {
    color: var(--text-muted);
    font-weight: bold;
    margin: 0 0.5rem;
}

/* Empty State */
.empty-state {
    margin: 4rem auto;
    max-width: 600px;
}

/* Iframe-style Bubble Popup */
.prompt-bubble-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease-out;
}

.prompt-bubble {
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: bubbleSlideIn 0.4s ease-out;
    position: relative;
}

.bubble-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(116, 185, 255, 0.05);
}

.bubble-title {
    display: flex;
    align-items: center;
    margin: 0;
    color: var(--text-gradient);
    font-size: 1.25rem;
    font-weight: 600;
}

.bubble-controls {
    display: flex;
    gap: 0.5rem;
}

.bubble-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.bubble-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.copy-btn:hover {
    background: rgba(0, 184, 148, 0.1);
    border-color: rgba(0, 184, 148, 0.3);
    color: #00b894;
}

.close-btn:hover {
    background: rgba(255, 99, 99, 0.1);
    border-color: rgba(255, 99, 99, 0.3);
    color: #ff6363;
}

.bubble-content {
    padding: 2rem;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.bubble-content::-webkit-scrollbar {
    width: 8px;
}

.bubble-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.bubble-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bubble-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.bubble-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bubble-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.bubble-section-title {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 600;
}

.bubble-section-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
    color: var(--text-primary);
}

.bubble-prompt-content {
    background: rgba(116, 185, 255, 0.05);
    border-color: rgba(116, 185, 255, 0.1);
}

.bubble-json-content {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    white-space: pre-wrap;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bubbleSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Playful Micro-Interactions */

/* Enhanced button animations */
.btn-futuristic {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.btn-futuristic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.btn-futuristic:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-futuristic:hover::before {
    left: 100%;
}

.btn-futuristic:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* Enhanced card hover effects */
.glass-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(116, 185, 255, 0.03) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

.glass-card:hover::before {
    opacity: 1;
}

/* Badge animations */
.badge-futuristic {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.badge-futuristic::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.badge-futuristic:hover::after {
    width: 100px;
    height: 100px;
}

.badge-futuristic:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Navigation link animations */
.nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #74b9ff, #667eea);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-link:hover {
    transform: translateY(-2px);
    color: #74b9ff;
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link.active::after {
    width: 100%;
}

/* Icon pulse animation */
@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.nav-link:hover i,
.btn-futuristic:hover i,
.badge-futuristic:hover i {
    animation: iconPulse 0.6s ease-in-out;
}

/* Gradient orb animations enhancement */
.gradient-orb {
    animation-duration: 8s, 12s, 6s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.gradient-orb-1 {
    animation-name: float1, rotate1, pulse1;
    animation-delay: 0s, 2s, 1s;
}

.gradient-orb-2 {
    animation-name: float2, rotate2, pulse2;
    animation-delay: 1s, 3s, 2s;
}

.gradient-orb-3 {
    animation-name: float3, rotate3, pulse3;
    animation-delay: 2s, 1s, 0s;
}

.gradient-orb-4 {
    animation-name: float4, rotate4, pulse4;
    animation-delay: 3s, 4s, 3s;
}

.gradient-orb-5 {
    animation-name: float5, rotate5, pulse5;
    animation-delay: 4s, 0s, 2s;
}

@keyframes float1 {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(-25px, 20px) scale(1.1); }
    66% { transform: translate(35px, -25px) scale(0.9); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    50% { transform: translate(20px, 30px) scale(1.05); }
}

@keyframes float4 {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(40px, 10px) scale(0.95); }
    66% { transform: translate(-30px, -40px) scale(1.1); }
}

@keyframes float5 {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    50% { transform: translate(-15px, -20px) scale(1.02); }
}

@keyframes pulse1 {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.9; }
}

@keyframes pulse2 {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

@keyframes pulse3 {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes pulse4 {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

@keyframes pulse5 {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.9; }
}

/* Form input interactions */
.form-control, 
.form-select,
textarea {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    transform: scale(1.01);
    border-color: rgba(116, 185, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(116, 185, 255, 0.1), 0 4px 20px rgba(116, 185, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

/* Loading spinner enhancement */
@keyframes spinGlow {
    0% {
        transform: rotate(0deg);
        filter: drop-shadow(0 0 5px rgba(116, 185, 255, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(116, 185, 255, 0.8));
    }
    100% {
        transform: rotate(360deg);
        filter: drop-shadow(0 0 5px rgba(116, 185, 255, 0.5));
    }
}

.spinner-border {
    animation: spinGlow 1s linear infinite;
}

/* Tooltip-like hover effects for badges */
.badge-futuristic {
    cursor: pointer;
    position: relative;
}

.badge-futuristic:hover {
    z-index: 10;
}

/* Stagger animation for card grids */
.row .col-md-6:nth-child(1) .glass-card { animation-delay: 0.1s; }
.row .col-md-6:nth-child(2) .glass-card { animation-delay: 0.2s; }
.row .col-md-6:nth-child(3) .glass-card { animation-delay: 0.3s; }
.row .col-md-6:nth-child(4) .glass-card { animation-delay: 0.4s; }

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.glass-card {
    animation: cardEntrance 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* Enhanced copy button feedback */
.btn-futuristic.btn-action {
    position: relative;
    overflow: hidden;
}

.btn-futuristic.btn-action.copied {
    background: linear-gradient(135deg, #2ECC71, #27AE60) !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(46, 204, 113, 0.3);
}

.btn-futuristic.btn-action.copied::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 1.2rem;
    color: white;
    animation: checkmark 0.4s ease-out forwards;
}

@keyframes checkmark {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-180deg);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}

/* Interactive main title */
.main-title {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
}

.main-title:hover {
    transform: translateY(-3px);
    text-shadow: 0 5px 20px rgba(116, 185, 255, 0.3);
}

.main-title i {
    transition: transform 0.3s ease;
}

.main-title:hover i {
    transform: rotate(10deg) scale(1.1);
}

/* Favorite button special animation */
.favorite-btn {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.favorite-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.favorite-btn .favorite-icon.text-danger {
    animation: heartBeat 0.6s ease-in-out;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.2) rotate(5deg);
    }
    75% {
        transform: scale(1.1) rotate(-2deg);
    }
}

/* Subtle parallax effect for background orbs */
@media (min-width: 768px) {
    .gradient-orb {
        transition: transform 0.3s ease-out;
    }
}

/* Mobile touch feedback */
@media (max-width: 767px) {
    .btn-futuristic:active,
    .glass-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .prompt-bubble {
        width: 95%;
        max-height: 85vh;
    }
    
    .bubble-header {
        padding: 1rem 1.5rem;
    }
    
    .bubble-content {
        padding: 1.5rem;
        max-height: calc(85vh - 100px);
    }
    
    .bubble-title {
        font-size: 1.1rem;
    }
    
    /* Stack cards vertically on mobile */
    .history-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 767px) {
    /* Single column on mobile devices only */
    .results-section .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Navigation */
.nav-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

/* Form Styling */
.form-glass {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 2rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.4);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.py-5 {
    padding: 3rem 0;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .motive-header {
        padding: 2rem 0;
    }
    
    .motive-logo {
        max-width: 100%;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .btn-futuristic {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .nav-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .form-glass {
        padding: 2rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

/* ChatGPT-inspired improvements */
.content-section {
    max-width: 768px;
    margin: 0 auto;
    padding: 0 1rem;
}

.minimal-button {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 400;
}

.minimal-button:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    text-decoration: none;
}

.suggestion-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem 0;
}

.suggestion-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.suggestion-pill:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.12);
}

.clean-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    margin: 3rem 0;
    border: none;
}

/* Improved spacing and typography */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

/* Dynamic gradient backgrounds for cards */
.glass-card.gradient-1 {
    background: 
        linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 107, 53, 0.2);
}

.glass-card.gradient-2 {
    background: 
        linear-gradient(135deg, rgba(156, 39, 176, 0.1) 0%, transparent 50%),
        rgba(255, 255, 255, 0.02);
    border-color: rgba(156, 39, 176, 0.2);
}

.glass-card.gradient-3 {
    background: 
        linear-gradient(135deg, rgba(0, 188, 212, 0.1) 0%, transparent 50%),
        rgba(255, 255, 255, 0.02);
    border-color: rgba(0, 188, 212, 0.2);
}

/* Animated gradient background for special elements */
.animated-gradient {
    background: linear-gradient(-45deg, #ff6b35, #f7931e, #e91e63, #9c27b0, #673ab7, #3f51b5);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating gradient orbs */
.gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

.gradient-orb-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient-fractal);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.gradient-orb-2 {
    width: 200px;
    height: 200px;
    background: var(--gradient-vibrant);
    top: 70%;
    right: 10%;
    animation-delay: -7s;
}

.gradient-orb-3 {
    width: 250px;
    height: 250px;
    background: var(--gradient-spectrum);
    bottom: 20%;
    left: 60%;
    animation-delay: -14s;
}

.gradient-orb-4 {
    width: 180px;
    height: 180px;
    background: var(--gradient-radial-burst);
    bottom: 60%;
    right: 25%;
    animation-delay: -21s;
}

.gradient-orb-5 {
    width: 220px;
    height: 220px;
    background: var(--gradient-cosmic);
    top: 75%;
    left: 20%;
    animation-delay: -28s;
}

/* Style Tooltip Styles */
.style-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 0.5rem;
    z-index: 1000;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.2s ease-out;
    pointer-events: none; /* Prevent tooltip from interfering with mouse events */
}

/* Enhanced select styling for better hover detection */
.form-control select {
    cursor: pointer;
}

.form-control select option {
    padding: 8px 12px;
    cursor: pointer;
}

.form-control select option:hover {
    background-color: rgba(102, 126, 234, 0.2) !important;
}

.tooltip-content h4 {
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tooltip-section {
    margin-bottom: 1rem;
}

.tooltip-section:last-child {
    margin-bottom: 0;
}

.tooltip-section strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.tooltip-section p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

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

/* Enhanced select styling for better tooltip positioning */
.form-group {
    position: relative;
}

.card {
    transition: transform 0.2s ease-in-out;
}

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

.prompt-content {
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

#style-description {
    transition: all 0.3s ease-in-out;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Loading state for form submission */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loading .btn {
    position: relative;
}

.loading .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    margin: -0.5rem 0 0 -0.5rem;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Style gallery enhancements */
.style-gallery .card {
    border: 1px solid var(--bs-border-color);
    background: var(--bs-card-bg);
}

.style-gallery .card:hover {
    border-color: var(--bs-primary);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .prompt-content {
        font-size: 0.9rem;
    }
}

/* Copy button feedback */
.copy-success {
    color: var(--bs-success) !important;
}

/* File upload styling */
.form-control[type="file"] {
    padding: 0.5rem;
}

.form-control[type="file"]::-webkit-file-upload-button {
    padding: 0.375rem 0.75rem;
    margin: -0.375rem -0.75rem -0.375rem 0.75rem;
    background-color: var(--bs-secondary);
    border: none;
    border-radius: 0.25rem;
    color: var(--bs-body-color);
}

/* Alert improvements */
.alert {
    border-radius: 0.5rem;
    border: none;
}

/* Icon sizing */
[data-feather] {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}
