/* CSS Variables for Theme - Simplified */
:root {
    /* Default Dark Theme */
    --bg-primary: radial-gradient(circle at top, #1a1a2e, #0f0c29 60%);
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-header: rgba(15, 12, 41, 0.95);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --border-color: rgba(255, 255, 255, 0.15);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --star-opacity: 1;
    --icon-color: #ffffff;
}

:root[data-theme="dark"] {
    --bg-primary: radial-gradient(circle at top, #1a1a2e, #0f0c29 60%);
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-header: rgba(15, 12, 41, 0.95);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --border-color: rgba(255, 255, 255, 0.15);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --star-opacity: 1;
    --icon-color: #ffffff;
}

:root[data-theme="light"] {
    --bg-primary: #f5f5f5;
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --star-opacity: 0.2;
    --icon-color: #1a1a2e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 13.5px;
    line-height: 1.6;
    letter-spacing: -0.01em;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
}

/* Universal FontAwesome Icon Visibility - Override any theme conflicts */
body i[class*="fa-"],
body *[class*="fa-"],
[data-theme="dark"] i[class*="fa-"],
[data-theme="light"] i[class*="fa-"],
[data-theme="dark"] *[class*="fa-"],
[data-theme="light"] *[class*="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: inline-block !important;
    font-style: normal !important;
    /* Force color to ensure visibility - override any purple/magenta colors */
    color: var(--icon-color, #ffffff) !important;
}

/* Dark theme - force white icons */
[data-theme="dark"] i[class*="fa-"],
[data-theme="dark"] *[class*="fa-"] {
    color: #ffffff !important;
}

/* Light theme - force dark icons */
[data-theme="light"] i[class*="fa-"],
[data-theme="light"] *[class*="fa-"] {
    color: #1a1a2e !important;
}

/* Modern Typography System - Reduced by 1 level */
h1 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.875rem;
}

h2 {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 0.625rem;
}

h4 {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.005em;
    margin-bottom: 0.5rem;
}

/* Fade-in-up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.sidebar .widget {
    animation: fadeInUp 0.6s ease-out;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.sidebar .widget:nth-child(1) { animation-delay: 0.15s; }
.sidebar .widget:nth-child(2) { animation-delay: 0.25s; }
.sidebar .widget:nth-child(3) { animation-delay: 0.35s; }

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1200px, 95%);
    margin: 0 auto;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.site-header {
    padding: 25px 0;
    position: sticky;
    top: 0;
    backdrop-filter: blur(12px);
    background: var(--bg-header);
    z-index: 100;
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 2.2fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 24px;
}

.header-left {
    display: flex;
    align-items: center;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 18px;
    align-items: center;
}

.main-nav a {
    padding: 6px 14px;
    border-radius: 999px;
    transition: all 0.25s ease;
    font-size: 0.9rem;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.header-avatar-icon {
    text-decoration: none;
}

.header-avatar-circle {
    position: relative;
    height: 32px;
    width: 32px;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(129, 140, 248, 0.7), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(129, 140, 248, 0.7);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.8), 0 10px 25px rgba(88, 28, 135, 0.8);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-avatar-circle img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.header-avatar-initial {
    display: none;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e5e7eb;
    text-transform: uppercase;
}

.header-avatar-circle:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 14px 40px rgba(88, 28, 135, 0.9);
}

.header-icon-button,
.header-primary-button {
    font-size: 0.8rem;
    border-radius: 999px;
    padding: 6px 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.header-icon-button:hover,
.header-primary-button:hover {
    background: rgba(30, 64, 175, 0.9);
    color: #e5e7eb;
    border-color: rgba(129, 140, 248, 0.7);
}

.header-primary-button {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #f9fafb;
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.6);
}

.header-primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 40px rgba(129, 140, 248, 0.8);
}

.theme-toggle-compact {
    border-radius: 999px;
    padding: 4px 10px;
}

.header-lang .lang-button-compact {
    padding: 6px 10px;
    min-width: auto;
}

.dropdown {
    position: relative;
}

.dropdown button {
    background: none;
    border: none;
    color: inherit;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background: rgba(20, 16, 51, 0.95);
    border-radius: 12px;
    min-width: 180px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown.open .dropdown-menu {
    display: flex;
}

.dropdown-menu a {
    padding: 10px 12px;
    border-radius: 8px;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Modern Language Selector */
.language-selector {
    position: relative;
}

.lang-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 140px;
}

.lang-button:hover {
    background: rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.lang-icon {
    color: #667eea;
    flex-shrink: 0;
}

.lang-arrow {
    font-size: 14px;
    margin-left: auto;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
}

.lang-button:hover .lang-arrow {
    transform: translateY(2px);
    color: #667eea;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(20, 16, 51, 0.98);
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 16px;
    min-width: 180px;
    max-height: 380px;
    overflow-y: auto;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(102, 126, 234, 0.2);
    z-index: 1000;
    backdrop-filter: blur(20px);
}

.lang-dropdown.show {
    display: flex;
    animation: slideDown 0.3s ease;
}

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

.lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 13.5px;
    position: relative;
}

.lang-option:hover {
    background: rgba(102, 126, 234, 0.25);
    transform: translateX(3px);
}

.lang-option.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.4);
}

.lang-name {
    flex: 1;
}

.lang-check {
    color: #4ade80;
    font-weight: bold;
    font-size: 14px;
}

/* Scrollbar for dropdown */
.lang-dropdown::-webkit-scrollbar {
    width: 6px;
}

.lang-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.lang-dropdown::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 10px;
}

.lang-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}


.page-shell {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 320px;
    gap: 35px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.content-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar {
    display: flex;
    flex-direction: column;
}

.card {
    background: rgba(30, 30, 50, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
    opacity: 0.6;
}

[data-theme="light"] .card::before {
    opacity: 0;
}

.dream-form textarea {
    width: 100%;
    min-height: 180px;
    border-radius: 18px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    padding: 18px;
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
    resize: vertical;
}

.dream-form-card {
    position: relative;
    overflow: hidden;
}

.explore-loading {
    position: absolute;
    inset: 0;
    display: none; /* JS ile açılacak */
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(99, 102, 241, 0.35), rgba(15, 23, 42, 0.96));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 5;
}

.explore-loading-inner {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.explore-loading .loading-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(239, 246, 255, 0.96);
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 12px 20px;
    border-radius: 999px;
    border: none;
    font-size: 0.875rem;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3), 0 0 20px rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.btn::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:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5), 0 0 30px rgba(102, 126, 234, 0.3);
}

.btn:disabled,
.btn.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
}

.btn-spinner {
    display: inline-block;
    margin-right: 8px;
}

.btn-spinner i {
    animation: spin 1s linear infinite;
}

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

.sidebar .widget {
    background: rgba(30, 30, 50, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar .widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.4), transparent);
    opacity: 0.5;
}

[data-theme="light"] .sidebar .widget::before {
    opacity: 0;
}

.sidebar h3 {
    margin-bottom: 16px;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Category List Styling */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.category-item {
    padding: 0;
    margin: 0;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13.5px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: transparent;
}

.category-link:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    transform: translateX(4px);
}

.category-link:hover i {
    opacity: 1;
    transform: scale(1.1);
}

[data-theme="light"] .category-link {
    color: #1f2937;
}

[data-theme="light"] .category-link:hover {
    background: rgba(102, 126, 234, 0.08);
    color: #667eea;
}

[data-theme="light"] .sidebar h3 {
    color: #111827;
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: rgba(102, 126, 234, 0.7);
    transition: all 0.2s ease;
}

.category-icon i {
    font-size: 16px;
    line-height: 1;
    color: inherit;
    /* FontAwesome specific styles */
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block;
}

.category-link:hover .category-icon {
    color: #667eea;
    transform: scale(1.1);
}

.category-link:hover .category-icon i {
    color: #667eea;
}

[data-theme="light"] .category-icon {
    color: #667eea;
}

[data-theme="light"] .category-icon i {
    color: #667eea;
}

[data-theme="light"] .category-link:hover .category-icon {
    color: #667eea;
}

[data-theme="light"] .category-link:hover .category-icon i {
    color: #667eea;
}

.category-name {
    flex: 1;
}

.sidebar ul {
    list-style: none;
    display: grid;
    gap: 8px;
}

/* Recent Posts List Styling */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.recent-post-item {
    padding: 0;
    margin: 0;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.recent-post-item a,
.recent-post-item .mock-article {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13.5px;
    line-height: 1.6;
    padding: 10px 12px;
    transition: all 0.2s ease;
    border-radius: 8px;
    background: transparent;
}

.recent-post-meta {
    padding: 0 12px 6px 12px;
}

.recent-post-date {
    font-size: 11px;
    color: rgba(148, 163, 184, 0.9);
}

.recent-post-item a:hover {
    color: #667eea;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
    padding-left: 16px;
}

/* Shared Dreams List Styling */
.shared-dreams-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.shared-dreams-item {
    padding: 0;
    margin: 0;
}

.shared-dreams-link {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.shared-dreams-link:hover {
    background: radial-gradient(circle at left, rgba(129, 140, 248, 0.18), rgba(15, 23, 42, 0.95));
    border-color: rgba(129, 140, 248, 0.7);
    transform: translateX(4px);
}

.shared-dreams-preview {
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 4px;
}

.shared-dreams-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(148, 163, 184, 0.9);
}

.shared-dreams-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.recent-post-item .mock-article {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    cursor: default;
}

.recent-post-item .no-posts {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    font-size: 13px;
    padding: 10px 12px;
    text-align: center;
}

.image-error {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    border-radius: 18px;
    background: radial-gradient(circle at top, rgba(15,23,42,0.95), rgba(17,24,39,0.98));
    color: rgba(248, 250, 252, 0.9);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Light mode for recent posts */
[data-theme="light"] .recent-post-item a,
[data-theme="light"] .recent-post-item .mock-article {
    color: #1f2937;
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .recent-post-item a:hover {
    color: #667eea;
}

[data-theme="light"] .recent-post-item .mock-article {
    color: #6b7280;
}

[data-theme="light"] .recent-post-item .no-posts {
    color: #9ca3af;
}

.image-container {
    position: relative;
    margin: 24px 0;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(82, 181, 255, 0.05), rgba(138, 43, 226, 0.05));
    border: 2px solid rgba(82, 181, 255, 0.3);
    box-shadow: 0 8px 32px rgba(82, 181, 255, 0.15), 0 0 20px rgba(138, 43, 226, 0.1);
    min-height: 400px;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-loading {
    position: relative;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1), rgba(102, 126, 234, 0.1));
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.image-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-top-color: rgba(102, 126, 234, 0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.image-loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.image-error {
    background: rgba(239, 68, 68, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: rgba(239, 68, 68, 0.7);
    font-size: 0.9rem;
    border-radius: 12px;
}

.image-error::before {
    content: '⚠ Image failed to load';
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

.loading-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    margin-top: 20px;
}

/* Hourglass Loading Animation */
.hourglass-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.hourglass-icon {
    width: 64px;
    height: 64px;
    color: #667eea;
    animation: hourglass-flip 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
}

@keyframes hourglass-flip {
    0%, 100% {
        transform: rotate(0deg) scaleY(1);
        opacity: 1;
    }
    25% {
        transform: rotate(180deg) scaleY(0.8);
        opacity: 0.8;
    }
    50% {
        transform: rotate(180deg) scaleY(1);
        opacity: 1;
    }
    75% {
        transform: rotate(360deg) scaleY(0.8);
        opacity: 0.8;
    }
}

.hourglass-sand-top {
    animation: sand-fall-top 2s ease-in-out infinite;
}

.hourglass-sand-bottom {
    animation: sand-fall-bottom 2s ease-in-out infinite;
}

@keyframes sand-fall-top {
    0% {
        opacity: 0.6;
        transform: translateY(0);
    }
    50% {
        opacity: 0.2;
        transform: translateY(4px);
    }
    100% {
        opacity: 0.6;
        transform: translateY(0);
    }
}

@keyframes sand-fall-bottom {
    0% {
        opacity: 0.3;
        transform: translateY(0);
    }
    50% {
        opacity: 0.6;
        transform: translateY(-4px);
    }
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }
}

.result-image {
    border-radius: 20px;
    width: 100%;
    max-width: 100%;
    max-height: 600px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border: none;
    box-shadow: none;
    background: transparent;
    animation: fadeInImage 0.6s ease-out;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.download-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 20;
}

.image-container:hover .download-btn {
    opacity: 1;
}

.download-btn:hover {
    background: rgba(102, 126, 234, 0.8);
    border-color: rgba(102, 126, 234, 0.5);
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.download-btn:active {
    transform: scale(0.95);
}

.download-btn i,
.download-btn .fa-download,
.download-btn i.fa-solid {
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-size: 18px !important;
    color: currentColor !important;
    transition: all 0.3s ease;
    display: inline-block !important;
    line-height: 1 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.download-btn:hover i,
.download-btn:hover .fa-download {
    transform: translateY(-2px) scale(1.1);
    color: #fff !important;
}

/* Old SVG styles - keeping for backward compatibility */
.download-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* Light Theme for Download Button */
[data-theme="light"] .download-btn {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1f2937;
}

[data-theme="light"] .download-btn:hover {
    background: rgba(102, 126, 234, 0.9);
    color: white;
    border-color: rgba(102, 126, 234, 0.5);
}

[data-theme="light"] .image-loading {
    background: rgba(248, 247, 250, 0.95);
}

[data-theme="light"] .loading-text {
    color: #1f2937;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.spinner {
    border: 4px solid rgba(82, 181, 255, 0.1);
    border-top: 4px solid #52b5ff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

.dream-history {
    margin-top: 20px;
}

.dream-text {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    padding: 24px 28px;
    margin-top: 18px;
    border-left: 4px solid rgba(102, 126, 234, 0.4);
    position: relative;
}

.dream-text::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: rgba(102, 126, 234, 0.3);
    line-height: 1;
    font-weight: bold;
}

.dream-text strong {
    display: block;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dream-text p {
    margin: 0;
    padding-left: 32px;
    font-style: italic;
    line-height: 1.7;
    color: rgba(240, 240, 255, 0.9);
    font-size: 1.05rem;
}

.interpretation,
.interpretation-modal {
    margin-top: 18px;
}

/* Glassmorphism styling for interpretation content */
.interpretation .dream-result-container,
.interpretation-modal .dream-result-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 0;
}

.interpretation .result-card,
.interpretation-modal .result-card {
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
    transition: all 0.3s ease;
}

.interpretation .result-card:hover,
.interpretation-modal .result-card:hover {
    background: rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
}

.interpretation .result-card h3,
.interpretation-modal .result-card h3 {
    margin: 0 0 16px 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #667eea;
    letter-spacing: -0.01em;
}

.interpretation .result-card p,
.interpretation .result-card ul,
.interpretation-modal .result-card p,
.interpretation-modal .result-card ul {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin: 0;
}

.interpretation .result-card ul li,
.interpretation-modal .result-card ul li {
    margin-bottom: 8px;
    padding-left: 0;
}

.interpretation .split-row,
.interpretation-modal .split-row {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

/* Responsive image sizing */
@media (max-width: 768px) {
    .result-image {
        max-height: 400px;
    }
    
    .dream-detail-image {
        max-height: 500px;
    }
    
    .image-container {
        min-height: 300px;
    }
    
    .interpretation .split-row,
    .interpretation-modal .split-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .result-image {
        max-height: 300px;
    }
    
    .dream-detail-image {
        max-height: 400px;
    }
    
    .image-container {
        min-height: 250px;
    }
}

/* Light theme for interpretation */
[data-theme="light"] .interpretation .result-card,
[data-theme="light"] .interpretation-modal .result-card {
    background: rgba(102, 126, 234, 0.05);
    border-color: rgba(102, 126, 234, 0.15);
}

[data-theme="light"] .interpretation .result-card p,
[data-theme="light"] .interpretation .result-card ul,
[data-theme="light"] .interpretation-modal .result-card p,
[data-theme="light"] .interpretation-modal .result-card ul {
    color: #1f2937;
}

.image-prompt {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    padding: 20px;
    margin-top: 18px;
}

.error-banner,
.success-banner {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.error-banner {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.4);
}

.success-banner {
    background: rgba(105, 219, 124, 0.2);
    border: 1px solid rgba(105, 219, 124, 0.4);
}

/* Contact Page Modern Layout */
.contact-card {
    padding: 64px 56px;
    background: rgba(30, 30, 50, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(102, 126, 234, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: start;
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.contact-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.contact-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-top: 12px;
    font-weight: 400;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 16px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2), 0 0 0 1px rgba(102, 126, 234, 0.3);
}

.contact-icon {
    width: 32px;
    height: 32px;
    color: #667eea;
    flex-shrink: 0;
    margin-top: 4px;
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.3));
}

.contact-item > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.contact-value {
    font-size: 1.15rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    line-height: 1.5;
}

.contact-value:hover {
    color: #667eea;
}

.contact-form-section {
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-label {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    align-items: center;
}

.label-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.3px;
    text-align: right;
    padding-right: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(102, 126, 234, 0.25);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.05rem;
}

.form-input:focus,
.form-textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2), 0 8px 32px rgba(102, 126, 234, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.form-textarea {
    min-height: 200px;
    resize: vertical;
    line-height: 1.7;
    grid-column: 2;
}

.form-label-textarea {
    align-items: start;
}

.form-label-textarea .label-text {
    padding-top: 20px;
}

.contact-submit-btn {
    margin-top: 12px;
    width: 100%;
    padding: 22px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 0 40px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

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

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

.contact-submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(102, 126, 234, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 0 60px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #7c8ef5 0%, #8a5fb8 50%, #f5a3ff 100%);
}

.contact-submit-btn:active {
    transform: translateY(-2px);
}

/* Responsive Design for Contact Page */
@media (max-width: 968px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-card {
        padding: 48px 36px;
    }
    
    .contact-header h1 {
        font-size: 2rem;
    }
    
    .contact-intro {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .contact-card {
        padding: 36px 28px;
    }
    
    .contact-header h1 {
        font-size: 1.75rem;
    }
    
    .contact-intro {
        font-size: 0.95rem;
    }
    
    .contact-item {
        padding: 24px;
    }
    
    .form-label {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .label-text {
        text-align: left;
        padding-right: 0;
        padding-top: 0;
        font-size: 1.05rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 18px 20px;
        font-size: 1.05rem;
        grid-column: 1;
    }
    
    .form-label-textarea .label-text {
        padding-top: 0;
    }
    
    .contact-submit-btn {
        padding: 20px;
        font-size: 1.1rem;
    }
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.blog-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.blog-card-link {
    display: block;
    text-decoration: none;
    overflow: hidden;
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    border-radius: 18px 18px 0 0;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

.blog-card-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.5);
    border-radius: 18px 18px 0 0;
    transition: all 0.3s ease;
}

.blog-card:hover .blog-card-image-placeholder {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    color: rgba(255, 255, 255, 0.7);
}

.blog-card-image-placeholder svg {
    width: 48px;
    height: 48px;
}

.blog-card-image-placeholder span {
    font-size: 13px;
    font-weight: 500;
}

.blog-card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.blog-card .btn {
    align-self: flex-start;
    width: auto;
    padding: 10px 20px;
    font-size: 0.95rem;
    margin-top: auto;
}

/* Post Detail Cover Image */
.post-cover-image {
    width: 100%;
    margin: -32px -32px 24px -32px;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}

.post-cover-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Light Theme for Blog Cards */
[data-theme="light"] .blog-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .blog-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

[data-theme="light"] .blog-card-image-placeholder {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .blog-card:hover .blog-card-image-placeholder {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    color: rgba(0, 0, 0, 0.6);
}

/* Post Detail Cover Image */
.post-cover-image {
    width: 100%;
    margin: -32px -32px 24px -32px;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}

.post-cover-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.post-content {
    margin-top: 20px;
    line-height: 1.8;
}

.post-content img {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px auto;
    display: block;
}

.history-item {
    position: relative;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 14px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.history-item:hover {
    background: rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateX(6px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
}

.history-item > a {
    display: block;
    cursor: pointer;
}

.history-item:hover p {
    color: #667eea !important;
}

.history-item:hover span {
    color: #52b5ff !important;
    transform: translateX(4px);
}

.history-item form {
    z-index: 10;
}

.history-item button {
    position: relative;
    z-index: 11;
}

.history-item button:hover {
    background: rgba(255, 107, 107, 0.35) !important;
    border-color: rgba(255, 107, 107, 0.7) !important;
    transform: scale(1.08);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.site-footer {
    padding: 40px 0 20px 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    font-size: 0.85rem;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
}

.site-footer .container {
    width: min(1200px, 95%);
}

/* Footer Main Content */
.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #fff;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 12px;
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.footer-column-title {
    color: #ffffff;
    letter-spacing: 0.5px;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link-list li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 12px;
    line-height: 1.5;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-link-list li a:hover {
    color: #667eea;
    transform: translateX(4px);
}

.footer-social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon i {
    font-size: 14px;
}

.social-icon:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.social-icon:hover i {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12.5px;
    margin: 0;
}

.site-footer a {
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #52b5ff;
}

.star-field::before,
.star-field::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(2px 2px at 20px 20px, rgba(255,255,255,0.4), transparent);
    animation: twinkle 8s linear infinite;
    z-index: -1;
    opacity: var(--star-opacity);
    transition: opacity 0.3s ease;
}

.star-field::after {
    animation-duration: 12s;
    opacity: calc(var(--star-opacity) * 0.4);
}

@keyframes twinkle {
    from { transform: translateY(0); }
    to { transform: translateY(-20px); }
}

/* Theme Toggle Button */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0 4px;
    overflow: hidden;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    transition: transform 0.3s ease;
    transform: translateX(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.theme-toggle.light-mode::before {
    transform: translateX(30px);
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.theme-icon {
    position: relative;
    z-index: 1;
    font-size: 14px;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.theme-icon.sun {
    margin-left: auto;
    opacity: 0.5;
}

.theme-icon.moon {
    margin-right: auto;
    opacity: 1;
}

.theme-toggle.light-mode .theme-icon.sun {
    opacity: 1;
}

.theme-toggle.light-mode .theme-icon.moon {
    opacity: 0.5;
}

/* Update card backgrounds for light mode */
[data-theme="light"] .card {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .sidebar .widget {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .site-header {
    background: var(--bg-header);
    color: var(--text-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .site-footer {
    background: #ffffff;
    color: var(--text-primary);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .footer-logo {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .footer-description {
    color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .footer-column-title {
    color: rgba(0, 0, 0, 0.9);
}

[data-theme="light"] .footer-link-list li a {
    color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .footer-link-list li a:hover {
    color: #667eea;
}

[data-theme="light"] .social-icon {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .social-icon:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    color: #667eea;
}

[data-theme="light"] .footer-copyright {
    color: rgba(0, 0, 0, 0.6);
}

/* Footer Responsive */
@media (max-width: 768px) {
    .site-footer {
        padding: 30px 0 15px 0;
        margin-top: 40px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

[data-theme="light"] .blog-card,
[data-theme="light"] .history-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .history-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

[data-theme="light"] .history-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

[data-theme="light"] .dream-delete-btn {
    color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .dream-delete-btn:hover {
    color: #ff6b6b;
}

[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
    background: #f9fafb;
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] textarea {
    background: #f9fafb;
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus {
    background: #ffffff;
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

[data-theme="light"] .btn,
[data-theme="light"] button[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

[data-theme="light"] .main-nav a {
    color: #1f2937;
}

[data-theme="light"] .main-nav a:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

[data-theme="light"] .logo {
    color: #111827;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .card h2,
[data-theme="light"] .card h3 {
    color: #111827;
}

[data-theme="light"] .card p,
[data-theme="light"] .card label,
[data-theme="light"] .card span,
[data-theme="light"] .card li {
    color: #1f2937;
}

[data-theme="light"] .card label {
    color: #111827;
    font-weight: 500;
}

[data-theme="light"] .lang-button {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.25);
}

[data-theme="light"] .lang-button:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

[data-theme="light"] .lang-icon {
    color: #667eea;
}

[data-theme="light"] .lang-arrow {
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .lang-button:hover .lang-arrow {
    color: #667eea;
}

[data-theme="light"] .lang-dropdown {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(102, 126, 234, 0.2);
}

[data-theme="light"] .lang-option:hover {
    background: rgba(102, 126, 234, 0.15);
}

[data-theme="light"] .lang-option.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-color: rgba(102, 126, 234, 0.3);
}

/* Dream History with localStorage */
.dream-history {
    margin-top: 30px;
}

#dreamHistoryList {
    margin-top: 20px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 14px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.history-item:hover {
    background: rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateX(6px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
}

.dream-card-content {
    cursor: pointer;
    flex: 1;
    min-width: 0;
    transition: all 0.2s ease;
}

.dream-card-content:hover {
    transform: translateX(4px);
}

.dream-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dream-card-content:hover .dream-preview {
    color: #667eea;
}

.dream-card-content:hover .dream-read-more {
    color: #52b5ff;
    transform: translateX(4px);
}

.dream-date {
    color: rgba(255,255,255,0.6);
    display: block;
    font-size: 13px;
}

.dream-preview {
    margin: 0;
    line-height: 1.6;
    color: var(--text-primary);
    transition: color 0.2s;
    font-size: 13.5px;
}

.dream-read-more {
    color: #667eea;
    font-size: 17px;
    display: inline-block;
    font-weight: 500;
    transition: all 0.2s;
}

.dream-delete-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    flex-shrink: 0;
    border-radius: 6px;
}

.dream-delete-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    transition: all 0.3s ease;
}

.dream-delete-btn:hover {
    color: #ff6b6b;
    transform: scale(1.15);
}

.dream-delete-btn:hover svg {
    stroke: #ff6b6b;
}

/* Dream Modal */
.dream-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

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

.dream-modal-content {
    background: linear-gradient(135deg, rgba(20, 16, 51, 0.98), rgba(10, 9, 26, 0.98));
    margin: 5% auto;
    padding: 0;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s ease;
    position: relative;
}

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

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

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

.dream-modal-content::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 10px;
}

.dream-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

.dream-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.dream-modal-close:hover,
.dream-modal-close:focus {
    color: #fff;
    background: rgba(255, 107, 107, 0.3);
    transform: rotate(90deg);
}

#dreamModalBody {
    padding: 40px;
    color: var(--text-primary);
}

/* Light mode modal */
[data-theme="light"] .dream-modal-content {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .dream-modal-close {
    color: #1f2937;
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .dream-modal-close:hover {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
}

[data-theme="light"] #dreamModalBody {
    color: #1f2937;
}

/* Responsive */
@media (max-width: 768px) {
    .dream-modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 90vh;
    }
    
    #dreamModalBody {
        padding: 30px 20px;
    }
    
    .dream-modal-close {
        top: 10px;
        right: 15px;
        font-size: 28px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 1024px) {
    .page-shell {
        grid-template-columns: 1fr;
    }
}

/* Light Theme Styles for Contact Form */
[data-theme="light"] .contact-header h1 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .contact-intro {
    color: #4b5563;
}

[data-theme="light"] .contact-item {
    background: rgba(102, 126, 234, 0.05);
    border-color: rgba(102, 126, 234, 0.2);
}

[data-theme="light"] .contact-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

[data-theme="light"] .contact-label {
    color: #6b7280;
}

[data-theme="light"] .contact-value {
    color: #1f2937;
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
    background: rgba(249, 250, 251, 0.8);
    border-color: rgba(102, 126, 234, 0.25);
    color: #1f2937;
}

[data-theme="light"] .form-input::placeholder,
[data-theme="light"] .form-textarea::placeholder {
    color: #9ca3af;
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus {
    background: #ffffff;
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15), 0 0 20px rgba(102, 126, 234, 0.2);
}

[data-theme="light"] .label-text {
    color: #111827;
}

/* Dream Analysis Container Styles */
.dream-analysis-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

/* Yeni HTML İskeleti için Stiller */
.dream-result-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

/* Kartların genel stili */
.result-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.result-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
}

.result-card h3 {
    margin: 0 0 16px 0;
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.result-card p {
    margin: 0;
    line-height: 1.7;
    color: rgba(240, 240, 255, 0.9);
    font-size: 1.05rem;
}

.result-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-card ul li {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 3px solid rgba(102, 126, 234, 0.4);
    line-height: 1.7;
    color: rgba(240, 240, 255, 0.9);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.result-card ul li:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: rgba(102, 126, 234, 0.6);
    transform: translateX(4px);
}

.result-card ul li strong {
    color: #667eea;
    font-weight: 600;
}

/* Yan yana gelmesi gereken kapsayıcı */
.split-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* Sembol ve Psikoloji kutularının genişliği */
.symbol-card,
.psycho-card {
    flex: 1;
    margin-bottom: 0;
}

.symbol-card {
    border-left: 3px solid rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06), rgba(102, 126, 234, 0.02));
}

.psycho-card {
    border-left: 3px solid rgba(240, 147, 251, 0.5);
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.06), rgba(240, 147, 251, 0.02));
}

.essence-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-color: rgba(102, 126, 234, 0.3);
}

.guide-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(240, 147, 251, 0.08));
    border-color: rgba(102, 126, 234, 0.25);
}

/* MOBİL UYUMLULUK (Telefonda alt alta düşsün) */
@media (max-width: 768px) {
    .split-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .symbol-card,
    .psycho-card {
        margin-bottom: 0;
    }
    
    .result-card {
        padding: 18px;
    }
    
    .result-card h3 {
        font-size: 1.4rem;
    }
}

/* Light Theme için Yeni Stiller */
[data-theme="light"] .result-card {
    background: rgba(249, 250, 251, 0.8);
    border-color: rgba(102, 126, 234, 0.2);
}

[data-theme="light"] .result-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(102, 126, 234, 0.3);
}

[data-theme="light"] .result-card p,
[data-theme="light"] .result-card ul li {
    color: #1f2937;
}

[data-theme="light"] .result-card ul li {
    background: rgba(102, 126, 234, 0.05);
}

[data-theme="light"] .result-card ul li:hover {
    background: rgba(102, 126, 234, 0.1);
}

[data-theme="light"] .essence-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
}

[data-theme="light"] .guide-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06), rgba(240, 147, 251, 0.06));
}

.analysis-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 24px 28px;
    transition: all 0.3s ease;
}

.analysis-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
}

.analysis-card.summary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-color: rgba(102, 126, 234, 0.3);
}

.analysis-card.guidance {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(240, 147, 251, 0.08));
    border-color: rgba(102, 126, 234, 0.25);
}

.analysis-card h3,
.analysis-card h4 {
    margin: 0 0 16px 0;
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.analysis-card h4 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.analysis-card p {
    margin: 0;
    line-height: 1.7;
    color: rgba(240, 240, 255, 0.9);
    font-size: 1.05rem;
}

.analysis-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .analysis-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.analysis-col {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.analysis-col:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
}

.analysis-col.symbolic {
    border-left: 3px solid rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06), rgba(102, 126, 234, 0.02));
}

.analysis-col.psycho {
    border-left: 3px solid rgba(240, 147, 251, 0.5);
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.06), rgba(240, 147, 251, 0.02));
}

.analysis-col h4 {
    margin: 0 0 12px 0;
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.3px;
}

.analysis-col .desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    line-height: 1.7;
    font-style: italic;
}

.analysis-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.analysis-col ul li {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 3px solid rgba(102, 126, 234, 0.4);
    line-height: 1.7;
    color: rgba(240, 240, 255, 0.9);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.analysis-col ul li:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: rgba(102, 126, 234, 0.6);
    transform: translateX(4px);
}

.analysis-col ul li strong {
    color: #667eea;
    font-weight: 600;
}

/* Responsive Design for Analysis */
@media (max-width: 768px) {
    .analysis-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .analysis-card,
    .analysis-col {
        padding: 20px;
    }
    
    .analysis-card h3,
    .analysis-card h4,
    .analysis-col h4 {
        font-size: 1.1rem;
    }
    
    .dream-text {
        padding: 20px 24px;
    }
    
    .dream-text::before {
        font-size: 3rem;
        top: 16px;
        left: 16px;
    }
    
    .dream-text p {
        padding-left: 28px;
    }
}

/* Light Theme Styles for Analysis */
[data-theme="light"] .analysis-card,
[data-theme="light"] .analysis-col {
    background: rgba(249, 250, 251, 0.8);
    border-color: rgba(102, 126, 234, 0.2);
}

[data-theme="light"] .analysis-card:hover,
[data-theme="light"] .analysis-col:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(102, 126, 234, 0.3);
}

[data-theme="light"] .analysis-card.summary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
}

[data-theme="light"] .analysis-card.guidance {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06), rgba(240, 147, 251, 0.06));
}

[data-theme="light"] .analysis-col ul li {
    background: rgba(102, 126, 234, 0.05);
    color: #1f2937;
}

[data-theme="light"] .analysis-col ul li:hover {
    background: rgba(102, 126, 234, 0.1);
}

[data-theme="light"] .analysis-col .desc {
    color: #4b5563;
}

[data-theme="light"] .dream-text {
    background: rgba(249, 250, 251, 0.8);
    border-left-color: rgba(102, 126, 234, 0.3);
}

[data-theme="light"] .dream-text::before {
    color: rgba(102, 126, 234, 0.2);
}

[data-theme="light"] .dream-text p {
    color: #1f2937;
}

[data-theme="light"] .analysis-card p {
    color: #1f2937;
}

[data-theme="light"] .analysis-col ul li {
    color: #1f2937;
}

/* ============================================
   FIREBASE AUTHENTICATION - LOGIN PAGE
   ============================================ */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
    max-width: 1120px;
    margin: 0 auto;
    gap: 48px;
}

.login-card {
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 420px;
    width: 100%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: fadeInUp 0.6s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #52b5ff 0%, #845ef7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
}

.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-hero {
    flex: 1.3;
    min-width: 260px;
    color: rgba(226, 232, 240, 0.95);
    padding: 32px 16px 32px 0;
}

.login-hero h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.login-hero p {
    font-size: 0.95rem;
    color: rgba(148, 163, 184, 0.95);
    margin-bottom: 18px;
    max-width: 480px;
}

.login-hero ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(199, 210, 254, 0.95);
}

.login-hero li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-hero li::before {
    content: '';
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.auth-btn::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 ease;
}

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

.auth-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.auth-btn span {
    position: relative;
    z-index: 1;
}

/* Google Button */
.google-btn {
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.google-btn:hover {
    background: #f9fafb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.google-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* GitHub Button */
.github-btn {
    background: #24292e;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.github-btn:hover {
    background: #2f363d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.github-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.github-btn svg {
    fill: currentColor;
}

/* Login Error Message */
.login-error {
    margin-top: 20px;
    padding: 14px 18px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 12px;
    color: #fca5a5;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease;
}

.login-error svg {
    flex-shrink: 0;
    stroke: #fca5a5;
}

.login-error span {
    flex: 1;
    line-height: 1.5;
}

/* Login Help Section */
.login-help {
    margin-top: 24px;
    padding: 24px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    animation: slideDown 0.3s ease;
}

.login-help h4 {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    color: #52b5ff;
}

.login-help p {
    margin: 0 0 16px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

.login-help ol {
    margin: 0 0 20px 0;
    padding-left: 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.8;
}

.login-help ol li {
    margin-bottom: 8px;
}

.login-help ol li strong {
    color: #52b5ff;
}

.login-help a {
    color: #52b5ff;
    text-decoration: none;
    font-weight: 500;
}

.login-help a:hover {
    text-decoration: underline;
}

.help-close-btn {
    padding: 10px 20px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 8px;
    color: #52b5ff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.help-close-btn:hover {
    background: rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

/* Loading Spinner */
.auth-btn .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

.github-btn .spinner {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: currentColor;
}

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

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Light Theme Support */
[data-theme="light"] .login-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .login-header h1 {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .login-header p {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .login-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }
    
    .login-hero {
        padding: 0 4px;
        text-align: left;
    }
    
    .login-card {
        padding: 36px 24px;
        border-radius: 20px;
    }
    
    .login-header h1 {
        font-size: 1.75rem;
    }
    
    .auth-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ============================================
   PUBLIC DREAM GALLERY - Masonry Grid Layout
   ============================================ */

.public-dream-gallery {
    margin-top: 40px;
}

.public-dream-gallery header {
    margin-bottom: 30px;
}

.public-dream-gallery header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Masonry Grid Layout - compact 4-column layout on desktop */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

@media (min-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (min-width: 1280px) {
    .gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 22px;
    }
}

/* Gallery Card */
.gallery-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    break-inside: avoid-column;
}

.gallery-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.gallery-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3), 0 0 0 1px rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

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

/* Gallery Card Image */
.gallery-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
}

.gallery-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.gallery-card:hover .gallery-card-image img {
    transform: scale(1.1);
}

.gallery-card-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    z-index: 0;
}

/* Gallery Card Content */
.gallery-card-content {
    padding: 20px;
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-card-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.gallery-card-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

/* Light Theme Support */
[data-theme="light"] .gallery-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .gallery-card:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
}

[data-theme="light"] .gallery-card-text {
    color: #1f2937;
}

[data-theme="light"] .gallery-card-date {
    color: #6b7280;
}

[data-theme="light"] .gallery-card-image {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .public-dream-gallery header h2 {
        font-size: 1.3rem;
    }
    
    .gallery-card-content {
        padding: 16px;
    }
    
    .gallery-card-text {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
    }
}

/* Gallery Card Wrapper for Social Share */
.gallery-card-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.gallery-card-share {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-card-wrapper:hover .gallery-card-share {
    opacity: 1;
    pointer-events: all;
}

.gallery-card-share .social-share-widget {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.gallery-card-share .social-share-label {
    display: none;
}

.gallery-card-share .social-share-buttons {
    gap: 0.5rem;
}

.gallery-card-share .social-share-btn {
    padding: 0.5rem;
    font-size: 0;
    min-width: 36px;
    height: 36px;
    justify-content: center;
}

.gallery-card-share .social-share-btn span {
    display: none;
}

.gallery-card-share .social-share-btn svg {
    width: 18px;
    height: 18px;
}

.gallery-card-share .social-share-btn i {
    font-size: 18px;
    line-height: 1;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* FontAwesome specific styles */
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dream Category Badges for Gallery Cards */
.gallery-card-image .dream-category-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff !important;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
    display: flex !important;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.gallery-card-image .dream-category-badge i,
.gallery-card-image .dream-category-badge i.fa-solid,
.gallery-card-image .dream-category-badge i.fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block !important;
}

.gallery-card-image .dream-category-badge i {
    opacity: 0.95;
    font-size: 0.75rem;
    display: inline-block !important;
    line-height: 1;
    margin-right: 4px;
    vertical-align: middle;
    font-style: normal;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.gallery-card-image .dream-category-badge .category-text {
    flex-shrink: 0;
    display: inline-block;
}

.gallery-card-image .dream-category-nightmare {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-card-image .dream-category-fantasy {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-card-image .dream-category-reality {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-card-image .dream-category-relation {
    background: linear-gradient(135deg, #ec4899, #be185d);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-card-image .dream-category-mystic {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   CHARACTER SECTION - Elegant Design
   ============================================ */

.character-section {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.character-section:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.15);
}

.character-section .calendar-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 1.5rem 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(59, 130, 246, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

.character-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.character-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

.character-card-background {
    width: 100%;
    height: 200px;
    object-fit: cover;
    opacity: 0.4;
    filter: blur(2px);
}

.character-card-content {
    padding: 2rem;
    position: relative;
    background: rgba(15, 23, 42, 0.7);
}

.character-title-section {
    margin-bottom: 1.5rem;
}

.character-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 8px;
    color: rgba(139, 92, 246, 0.95);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.character-archetype {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.character-summary {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1.5rem 0;
}

.character-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-column {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
}

.stat-column-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.stat-icon {
    font-size: 1rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    flex-shrink: 0;
}

.strength-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.weakness-icon {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.generate-button {
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.8), rgba(59, 130, 246, 0.8));
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.generate-button:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(59, 130, 246, 0.95));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* ============================================
   DREAM IMAGE DOWNLOAD BUTTON - Modern Glassmorphism
   ============================================ */

.dream-image-wrapper {
    position: relative;
    width: 100%;
}

.dream-detail-image {
    width: 100% !important;
    max-width: 100%;
    max-height: 700px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.dream-image-download-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 0 rgba(102, 126, 234, 0);
    z-index: 10;
    padding: 0;
    outline: none;
    border-style: solid;
}

.dream-image-download-btn:hover {
    background: rgba(102, 126, 234, 0.85);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px) scale(1.08);
    box-shadow: 
        0 12px 40px rgba(102, 126, 234, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 0 4px rgba(102, 126, 234, 0.15);
}

.dream-image-download-btn:active {
    transform: translateY(-1px) scale(1.04);
    box-shadow: 
        0 6px 20px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dream-image-download-btn i,
.dream-image-download-btn .fa-download,
.dream-image-download-btn i.fa-solid {
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-size: 20px !important;
    color: currentColor !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block !important;
    line-height: 1 !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    visibility: visible !important;
    opacity: 1 !important;
}

.dream-image-download-btn:hover i,
.dream-image-download-btn:hover .fa-download {
    transform: translateY(-2px) scale(1.1);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
    color: #fff;
}

.dream-image-download-btn:active i,
.dream-image-download-btn:active .fa-download {
    transform: translateY(0) scale(1);
}

/* Light Theme for Download Button */
[data-theme="light"] .dream-image-download-btn {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(0, 0, 0, 0.15);
    color: #1f2937;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 0 0 0 rgba(102, 126, 234, 0);
}

[data-theme="light"] .dream-image-download-btn:hover {
    background: rgba(102, 126, 234, 0.85);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    box-shadow: 
        0 12px 40px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 0 4px rgba(102, 126, 234, 0.15);
}

[data-theme="light"] .dream-image-download-btn i,
[data-theme="light"] .dream-image-download-btn .fa-download {
    color: currentColor;
}

[data-theme="light"] .dream-image-download-btn:hover i,
[data-theme="light"] .dream-image-download-btn:hover .fa-download {
    color: #fff;
}

/* Old SVG styles - keeping for backward compatibility */
[data-theme="light"] .dream-image-download-btn svg {
    stroke: currentColor;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* ============================================
   PROFILE PAGE WIDGETS - Modern Integration
   ============================================ */

/* Ensure widgets match profile page styling */
.character-section + .symbol-alerts-widget,
.character-section + .mood-tracker-widget,
.character-section + .meditation-widget,
.symbol-alerts-widget + .mood-tracker-widget,
.mood-tracker-widget + .meditation-widget {
    margin-top: 2rem;
}

/* Widget container consistency */
.symbol-alerts-widget,
.mood-tracker-widget,
.meditation-widget {
    max-width: 100%;
    width: 100%;
}

/* Responsive widget adjustments for profile page */
@media (max-width: 768px) {
    .symbol-alerts-widget,
    .mood-tracker-widget,
    .meditation-widget {
        margin-bottom: 1.5rem;
    }
    
    .character-stats {
        grid-template-columns: 1fr;
    }
}

