/*
 * Homepage Dashboard - Modern Crypto Dashboard Design
 * Referenced from Blockchain.com Explorer design
 */

/* CSS Variables - Clean Modern Design */
:root {
    --bg-white: #ffffff;
    --bg-light: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border: #e5e7eb;
    --blue: #3b82f6;
    --green: #059669;
    --red: #dc2626;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.05);
    --radius: 4px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

/* Fix body overflow */
body.page-template-page-anasayfa-php,
body.page-template-page-mining-php {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.page-template-page-anasayfa-php .site,
body.page-template-page-mining-php .site {
    background: #ffffff;
}

body.page-template-page-anasayfa-php .ast-container,
body.page-template-page-mining-php .ast-container {
    max-width: 100%;
    padding: 0;
}

/* ========================================
   SEVIOADS REKLAM DÜZELTMELERİ (Dashboard Pages)
   ======================================== */

/* Dashboard sayfalarındaki reklamlar için genişlik kısıtlamalarını kaldır */
body.page-template-page-anasayfa-php .sevioads,
body.page-template-page-borsa-php .sevioads,
body.page-template-page-mining-php .sevioads,
body.page-template-page-coin-page-php .sevioads,
body.page-template-page-nft-php .sevioads,
.dashboard-container .sevioads,
.sevioads[data-zone] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 300px !important;
    min-height: 250px !important;
    display: block !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 1 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Dashboard container içindeki reklamlar */
.dashboard-container .sevioads,
.dashboard-container .code-block .sevioads {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}

/* Code-block parent'ları için reklamlar söz konusu olduğunda */
.dashboard-container .code-block:has(.sevioads),
.dashboard-container .code-block-1:has(.sevioads),
.dashboard-container .code-block-2:has(.sevioads) {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Responsive düzeltmeler */
@media (max-width: 768px) {
    body.page-template-page-anasayfa-php .sevioads,
    body.page-template-page-borsa-php .sevioads,
    body.page-template-page-mining-php .sevioads,
    .dashboard-container .sevioads {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }
}

body.page-template-page-anasayfa-php .site-content,
body.page-template-page-mining-php .site-content {
    padding: 0;
    margin: 0;
}

body.page-template-page-anasayfa-php .blockchain-main-content,
body.page-template-page-mining-php .blockchain-main-content {
    padding-top: 51px;
}

@media (max-width: 768px) {
    body.page-template-page-anasayfa-php .blockchain-main-content,
    body.page-template-page-mining-php .blockchain-main-content {
        padding-top: 51px;
    }
}

@media (max-width: 480px) {
    body.page-template-page-anasayfa-php .blockchain-main-content,
    body.page-template-page-mining-php .blockchain-main-content {
        padding-top: 51px;
    }
}

/* Dashboard Container */
.dashboard-container {
    max-width: 100%; /* JavaScript ile dinamik ayarlanacak - sidebar genişliğine göre */
    margin: 0 auto;
    padding: 0;
    padding-top: 120px;
    background: #ffffff;
    min-height: calc(100vh - 200px);
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Remove extra padding on anasayfa template since we have our own header */
body.page-template-page-anasayfa-php .dashboard-container,
body.page-template-page-mining-php .dashboard-container {
    padding-top: 0;
}

/* ==================== MINING TEMPLATE SPECIFIC ==================== */
/* Hide dashboard grid on mining template - only show header and icons */
body.page-template-page-mining-php .dashboard-grid {
    display: none !important;
}

/* Adjust spacing for mining template */
body.page-template-page-mining-php .discover-section {
    margin-bottom: 40px;
}

/* Fallback icon style for mining calculators */
body.page-template-page-mining-php .crypto-symbol-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    text-transform: uppercase;
}

/* Mining carousel filtering styles */
body.page-template-page-mining-php .mining-card {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

body.page-template-page-mining-php .mining-card[style*="display: none"] {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

/* Ensure carousel adapts to filtered items */
body.page-template-page-mining-php #miningCarousel {
    min-height: 56px;
    overflow: visible; /* Allow items to show when filtered */
}

/* Mining carousel - adjust grid for more items */
body.page-template-page-mining-php .crypto-carousel {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    max-height: none; /* Remove height restriction for more items */
    overflow: visible;
    gap: 12px;
    padding: 0;
}

/* Adjust carousel wrapper for mining */
body.page-template-page-mining-php .crypto-carousel-wrapper {
    overflow: visible;
}

/* Mining page title style */
body.page-template-page-mining-php .mining-page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 20px 0;
    padding: 0;
    text-align: center;
}

@media (max-width: 768px) {
    body.page-template-page-mining-php .mining-page-title {
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    /* Mining carousel mobile - responsive grid */
    body.page-template-page-mining-php .crypto-carousel {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    
    body.page-template-page-mining-php .crypto-card {
        min-width: 120px;
        padding: 10px 8px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    /* Mining carousel phone - show 15 items, auto-fit grid */
    body.page-template-page-mining-php .crypto-carousel {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
        overflow: visible;
        max-height: none;
    }
    
    body.page-template-page-mining-php .crypto-carousel .mining-card {
        max-width: 100%;
    }
    
    body.page-template-page-mining-php .crypto-card {
        min-width: 100px;
        padding: 8px 6px;
        height: 52px;
    }
    
    body.page-template-page-mining-php .crypto-name {
        font-size: 11px;
    }
    
    body.page-template-page-mining-php .crypto-symbol {
        font-size: 9px;
    }
    
    body.page-template-page-mining-php .crypto-icon {
        width: 24px;
        height: 24px;
    }
}

/* ==================== MINING BLOG SECTION ==================== */
body.page-template-page-mining-php .mining-blog-section {
    padding: 24px;
}

body.page-template-page-mining-php .mining-blog-container {
    max-width: 1600px;
    margin: 0 auto;
}

body.page-template-page-mining-php .mining-blog-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

body.page-template-page-mining-php .mining-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

body.page-template-page-mining-php .mining-blog-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

body.page-template-page-mining-php .mining-blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.page-template-page-mining-php .mining-blog-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

body.page-template-page-mining-php .mining-blog-thumb {
    width: 100%;
    height: 200px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

body.page-template-page-mining-php .mining-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.page-template-page-mining-php .mining-blog-thumb-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

body.page-template-page-mining-php .mining-blog-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

body.page-template-page-mining-php .mining-blog-post-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

body.page-template-page-mining-php .mining-blog-meta {
    font-size: 12px;
    color: var(--text-muted);
}

body.page-template-page-mining-php .mining-blog-excerpt {
    font-size: 14px;
    color: var(--text-dark);
    margin: 0;
}

/* Mining: View all button */
body.page-template-page-mining-php .mining-blog-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
}

body.page-template-page-mining-php .mining-view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

body.page-template-page-mining-php .mining-view-all-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@media (max-width: 1024px) {
    body.page-template-page-mining-php .mining-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body.page-template-page-mining-php .mining-blog-grid {
        grid-template-columns: 1fr;
    }
    body.page-template-page-mining-php .mining-blog-thumb {
        height: 180px;
    }
}

/* Fix overflow issues */
.dashboard-container * {
    max-width: 100%;
    box-sizing: border-box;
}

/* ==================== HEADER ==================== */
.dashboard-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.header-logo {
    margin-bottom: 16px;
}

.header-logo img {
    max-width: 240px;
    height: auto;
}

.header-search {
    width: 100%;
    max-width: 600px;
    position: relative;
}

.blockchain-search-container.header-search {
    width: 100%;
    max-width: 100%;
}

.blockchain-search-container.header-search .search-input {
    padding-right: 48px;
}

.blockchain-search-container.header-search .search-results {
    max-width: 100%;
}

/* Coin Ticker Container */
.coin-ticker-container {
    width: 100%;
    height: 32px !important;
    position: relative;
    overflow: hidden;
}

/* Let ticker animate freely but keep height constraint */
.coin-ticker-container > * {
    width: 100% !important;
    max-height: 32px !important;
    height: 32px !important;
    overflow: hidden !important;
}

.coin-ticker-container iframe {
    max-height: 32px !important;
    height: 32px !important;
}

/* Hide coin ticker on mobile/tablet, show search */
@media (max-width: 1024px) {
    body.page-template-page-anasayfa-php .coin-ticker-container,
    body.page-template-page-mining-php .coin-ticker-container {
        display: none !important;
    }
    
    body.page-template-page-anasayfa-php #wikiSearchFormMobile,
    body.page-template-page-mining-php #wikiSearchFormMobile {
        display: block !important;
    }
}

/* 404 Page Search Styles */
.ast-404-search .search-wrapper-404 {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.ast-404-search .search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.ast-404-search .search-input {
    width: 100%;
    padding: 16px 24px;
    padding-right: 56px;
    border: 2px solid var(--blue);
    border-radius: 30px;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    outline: none;
}

.ast-404-search .search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ast-404-search .search-btn {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--blue);
    transition: var(--transition);
    border-radius: 50%;
}

.ast-404-search .search-btn:hover {
    background: rgba(59, 130, 246, 0.1);
}

.ast-404-search .search-results {
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 10001 !important;
    display: none;
    margin-top: 0;
}

.ast-404-search .search-category-header {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    margin: 0;
    gap: 10px;
    justify-content: center;
}

.ast-404-search .search-category-line {
    flex: 0 0 auto;
    height: 0.5px;
    background: #e5e7eb;
    border: none;
    width: 40px;
}

.ast-404-search .search-category-name {
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-results {
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: auto;
    right: 0;
    width: calc(100% - 20px);
    max-width: 560px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 10001 !important;
    display: none;
    margin-top: 0;
}

.search-category-header {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    margin: 0;
    gap: 10px;
    justify-content: center;
}

.search-category-line {
    flex: 0 0 auto;
    height: 0.5px;
    background: #e5e7eb;
    border: none;
    width: 40px;
}

.search-category-name {
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-result-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 24px;
    color: #6b7280;
    font-weight: 300;
}

.search-category-separator {
    display: none;
}

.search-category-separator-other {
    display: none;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    min-height: 52px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f9fafb;
}

.search-result-item svg {
    margin-left: auto;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-result-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.search-result-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-content {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-result-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-title strong {
    color: var(--blue);
}

.search-category {
    font-size: 11px;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    white-space: nowrap;
}

.search-loading,
.search-no-results {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 16px 24px;
    padding-right: 56px;
    border: 2px solid var(--blue);
    border-radius: 30px;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    outline: none;
}

.search-input {
    padding: 4px 28px 4px 10px;
    font-size: 13px;
    height: 28px;
    border: none;
    border-radius: 20px;
    background-color: #f5f5f5;
    color: #1a1a1a;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.search-input:hover {
    background-color: #e9ecef;
}

.search-input:focus {
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.08), 0 1px 3px rgba(0,0,0,0.1);
}

.search-input::placeholder {
    color: #999;
    font-size: 13px;
}

.search-btn {
    position: absolute;
    right: 4px;
    background: transparent;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
    padding: 0;
}

.search-btn:hover {
    color: #007bff;
}

.search-btn svg {
    width: 14px;
    height: 14px;
}

/* ==================== DISCOVER SECTION ==================== */
.discover-section {
    margin: 0;
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

/* Crypto carousel will be defined below */

/* Crypto Carousel - Blockchain.com inspired */
.crypto-carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.crypto-carousel {
    display: grid;
    grid-template-columns: repeat(6, auto);
    gap: 12px;
    justify-items: center;
    max-height: calc(56px * 2 + 12px);
    overflow: hidden;
    max-width: 100%;
}

.crypto-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    height: 56px;
    min-width: 150px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    box-sizing: border-box;
}

.crypto-card a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
    width: 100%;
}

.crypto-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Navigation arrows - minimal style */
.arrow-left,
.arrow-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    z-index: 10;
    pointer-events: auto;
}

.arrow-left {
    left: 8px;
}

.arrow-right {
    right: 8px;
}

.arrow-left:hover,
.arrow-right:hover {
    opacity: 1;
}

.arrow-left svg,
.arrow-right svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.crypto-card a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-dark);
}

.crypto-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.crypto-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.crypto-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.crypto-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crypto-symbol {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.2;
}

/* ==================== THREE COLUMN GRID ==================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 0;
    width: 100%;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.dashboard-grid > * {
    min-width: 0;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.grid-column {
    background: var(--bg-white);
    border-radius: 0;
    box-shadow: none;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.column-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    margin-top: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.column-link {
    color: var(--blue);
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    transition: var(--transition);
}

.column-link:hover {
    color: #2563eb;
    transform: translateX(2px);
}

/* ==================== CRYPTO ITEMS ==================== */
.crypto-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.crypto-item-term {
    display: block;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
}

.crypto-item-term:last-child {
    border-bottom: none;
}

.crypto-item-term:hover {
    background: #f9fafb;
}

.crypto-item-term .item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
}

.crypto-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    border-radius: 0;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
}

.crypto-item:last-child {
    border-bottom: none;
}

.crypto-item:hover {
    background: #f9fafb;
}

.item-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-symbol {
    font-size: 12px;
    color: var(--text-muted);
}

.item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
    min-width: 80px;
}

.price-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.price-change {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.price-change.positive {
    color: var(--green, #10b981);
}

.price-change.negative {
    color: var(--red, #ef4444);
}

.read-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: var(--transition);
    flex-shrink: 0;
}

.read-btn:hover {
    background: #2563eb;
    transform: scale(1.1);
}

/* ==================== NEWS LIST ==================== */
.news-list,
.exchange-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-item,
.exchange-item {
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.news-item:last-child,
.exchange-item:last-child {
    border-bottom: none;
}

.news-item a,
.exchange-item a {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.news-item a:hover,
.exchange-item a:hover {
    opacity: 0.8;
}

.news-thumb,
.exchange-logo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.news-thumb img,
.exchange-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content,
.exchange-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-content h4,
.exchange-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.trust-score {
    font-size: 12px;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 4px;
}

.news-content time,
.exchange-content time {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==================== CHARTS SECTION ==================== */
.charts-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.charts-section > * {
    min-width: 0;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.chart-container {
    background: var(--bg-white);
    border-radius: 0;
    box-shadow: none;
    padding: 16px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

.chart-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.chart-header {
    margin-bottom: 8px;
}

.chart-coin {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-coin img {
    width: 28px;
    height: 28px;
}

.chart-coin h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.chart-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.chart-change {
    font-size: 11px;
    font-weight: 500;
}

.chart-change.positive {
    color: var(--green);
}

.chart-change.negative {
    color: var(--red);
}

.chart-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}


.chart-wrapper.tradingview-heatmap {
    height: 400px;
    min-height: 400px;
}

.tradingview-mini-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    box-sizing: border-box;
}

.tradingview-mini-wrapper iframe,
.tradingview-mini-wrapper > div {
    width: 100% !important;
    height: 100% !important;
    min-height: 400px !important;
    border: none !important;
    box-sizing: border-box;
}

/* TradingView widget içindeki gereksiz bilgileri gizle */
.tradingview-widget-container__widget iframe {
    width: 100% !important;
    height: 100% !important;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    box-sizing: border-box;
}

.chart-wrapper iframe,
.chart-wrapper canvas,
.chart-wrapper > div,
.chart-wrapper > * {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border: none !important;
    box-sizing: border-box;
    overflow: hidden;
}

/* TradingView Heatmap Styling */
.tradingview-heatmap {
    height: 400px !important;
    overflow: hidden;
}

.tradingview-widget-container {
    height: 100%;
    width: 100%;
}

.tradingview-widget-container__widget {
    height: 100%;
    width: 100%;
}

.tradingview-widget-copyright {
    display: none !important;
}

/* Disable pointer events on heatmap to prevent external links */
.tradingview-heatmap,
.tradingview-heatmap * {
    pointer-events: none !important;
    cursor: default !important;
}

.tradingview-heatmap a {
    pointer-events: none !important;
    cursor: default !important;
    user-select: none !important;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 14px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .dashboard-container {
        padding: 0;
        max-width: 100%;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .chart-container {
        min-height: 420px;
    }
    
    .tradingview-mini-wrapper {
        min-height: 360px;
    }
    
    .tradingview-mini-wrapper iframe,
    .tradingview-mini-wrapper > div {
        min-height: 360px !important;
    }
}

@media (max-width: 1024px) {
    .crypto-carousel {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .crypto-card {
        padding: 10px 8px;
        height: 56px;
    }
    
    .crypto-icon {
        width: 28px;
        height: 28px;
    }
    
    .crypto-name {
        font-size: 12px;
    }
    
    .crypto-symbol {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 0;
    }
    
    .dashboard-header {
        padding: 16px;
    }
    
    .discover-section {
        padding: 16px;
    }
    
    .header-logo img {
        max-width: 180px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .crypto-carousel {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .crypto-card {
        padding: 8px 10px;
        height: 50px;
    }
    
    .crypto-name {
        font-size: 11px;
    }
    
    .crypto-symbol {
        font-size: 9px;
    }
    
    .crypto-icon {
        width: 24px;
        height: 24px;
    }
    
    .grid-column,
    .chart-container {
        max-width: 100%;
        width: 100%;
    }
    
    .chart-container {
        min-height: 380px;
    }
    
    .tradingview-mini-wrapper {
        min-height: 320px;
    }
    
    .tradingview-mini-wrapper iframe,
    .tradingview-mini-wrapper > div {
        min-height: 320px !important;
    }
}

@media (max-width: 480px) {
    .crypto-carousel {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .crypto-card {
        flex: 0 0 140px;
        padding: 8px 10px;
        height: 52px;
        scroll-snap-align: start;
    }
    
    .crypto-name {
        font-size: 11px;
    }
    
    .crypto-symbol {
        font-size: 9px;
    }
    
    .crypto-icon {
        width: 26px;
        height: 26px;
    }
    
    .arrow-left,
    .arrow-right {
        width: 28px;
        height: 28px;
    }
    
    .search-input {
        padding: 12px 18px;
        padding-right: 48px;
        font-size: 14px;
    }
    
    .search-btn {
        width: 40px;
        height: 40px;
    }
    
    .chart-container {
        min-height: 340px;
    }
    
    .tradingview-mini-wrapper {
        min-height: 280px;
    }
    
    .tradingview-mini-wrapper iframe,
    .tradingview-mini-wrapper > div {
        min-height: 280px !important;
    }
}
