/* ========================================
   ANA STİLLER (Main Styles)
   ======================================== */

:root {
    --bg-color: #020617;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --card-bg: rgba(15, 23, 42, 0.6);
    --border-color: rgba(255, 255, 255, 0.1);
    --chat-bubble-bg: #f59e0b;
    --chat-bubble-text: #020617;
    --input-bg: rgba(30, 41, 59, 0.7);
    --input-border: rgba(51, 65, 85, 1);
    --button-hover-bg: #1e293b;
}

html.light {
    --bg-color: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --card-bg: rgba(255, 255, 255, 0.8);
    --border-color: rgba(0, 0, 0, 0.1);
    --chat-bubble-bg: #d97706;
    --chat-bubble-text: #ffffff;
    --input-bg: rgba(241, 245, 249, 1);
    --input-border: rgba(203, 213, 225, 1);
    --button-hover-bg: #e2e8f0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
}

html {
    scroll-behavior: smooth;
}

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

/* Price Flash Animations */
.price-flash-up {
    animation: glow-up 1.2s ease-out;
}

.price-flash-down {
    animation: glow-down 1.2s ease-out;
}

@keyframes glow-up {
    0%, 100% {
        background-color: transparent;
    }
    50% {
        background-color: rgba(16, 185, 129, 0.2);
    }
}

@keyframes glow-down {
    0%, 100% {
        background-color: transparent;
    }
    50% {
        background-color: rgba(239, 68, 68, 0.2);
    }
}

/* Loader Animations */
.loader {
    width: 48px;
    height: 48px;
    border: 3px solid #f59e0b;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    animation: rotation 1s linear infinite;
}

.loader::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid;
    border-color: var(--card-bg) transparent;
}

.loader-infinite {
    width: 48px;
    height: 48px;
    border: 3px solid #f59e0b;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    animation: rotation 1s linear infinite;
}

.loader-infinite::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid;
    border-color: var(--card-bg) transparent;
}

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

/* Calendar Popup */
.calendar-popup {
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    pointer-events: none;
}

.calendar-popup.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Themed Input */
.themed-input {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.themed-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.8;
}

.themed-input:focus {
    box-shadow: 0 0 0 2px var(--chat-bubble-bg);
    outline: none;
}

.themed-hover-bg:hover {
    background-color: var(--button-hover-bg);
}

/* Share Dropdown Styles */
.share-dropdown {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    display: block !important;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0s 0.2s;
    pointer-events: none;
    visibility: hidden;
}

.share-dropdown.hidden {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.share-dropdown.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0s 0s;
}

.share-dropdown .share-item {
    color: var(--text-primary);
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    margin: 0.25rem 0;
}

.share-dropdown .share-item:hover {
    background: var(--button-hover-bg);
    color: var(--text-primary);
    transform: translateX(4px);
}

.share-dropdown .share-item svg {
    transition: transform 0.2s ease;
}

.share-dropdown .share-item:hover svg {
    transform: scale(1.1);
}

.share-dropdown .share-divider {
    border-color: var(--border-color);
    opacity: 0.5;
}

.share-dropdown-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.share-dropdown-toggle:hover {
    background: var(--button-hover-bg);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.share-dropdown-toggle:active {
    transform: translateY(0);
}

/* Article Content Styles */
.article-content {
    line-height: 1.75;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #f59e0b;
}

.article-content h1 {
    font-size: 2.25rem;
}

.article-content h2 {
    font-size: 1.875rem;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    list-style-position: outside;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content strong,
.article-content b {
    font-weight: 700;
    color: var(--text-primary);
}

.article-content a {
    color: #f59e0b;
    text-decoration: underline;
}

.article-content blockquote {
    border-left: 4px solid #f59e0b;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Chart Period Buttons */
.chart-period-btn {
    transition: all 0.2s ease;
}

.chart-period-btn.active {
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.chart-period-btn:hover:not(.active) {
    transform: translateY(-1px);
}

/* Light theme için chart period butonları */
html.light .chart-period-btn:not(.active) {
    background-color: #e2e8f0 !important;
    color: #475569 !important;
}

html.light .chart-period-btn:not(.active):hover {
    background-color: #cbd5e1 !important;
}




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

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

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

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

/* AdSense Reklam Alanları */
.ads-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    width: 100%;
}

.ads-container.ads-top,
.ads-container.ads-bottom {
    margin: 2rem 0;
}

.ads-container.ads-sidebar {
    position: sticky;
    top: 2rem;
    max-width: 300px;
}

.ads-container.ads-infeed {
    margin: 2rem 0;
    grid-column: 1 / -1;
}

.ads-container.ads-inarticle {
    margin: 2rem 0;
    clear: both;
}

.ads-container.ads-multiplex {
    margin: 2rem 0;
}

/* AdSense reklamları için responsive */
@media (max-width: 768px) {
    .ads-container.ads-sidebar {
        position: static;
        max-width: 100%;
        margin: 1rem 0;
    }
}
