/* gold-chart-simple.css */

.gold-chart-container {
    max-width: 100%;
    margin: 20px 0;
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gold-chart-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.chart-btn {
    background: #333;
    border: 1px solid #555;
    color: #d4af37;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.chart-btn:hover {
    background: #444;
    border-color: #d4af37;
}

.chart-btn.active {
    background: #d4af37;
    color: #1a1a1a;
    border-color: #d4af37;
}

.gold-chart-wrapper {
    height: 400px;
    position: relative;
    background: #222;
    border-radius: 8px;
    padding: 10px;
}

#goldChart {
    max-width: 100%;
    max-height: 100%;
}

.gold-chart-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 10px 0;
    border-top: 1px solid #333;
    color: #d4af37;
}

#currentPrice {
    font-size: 24px;
    font-weight: bold;
}

#lastUpdate {
    font-size: 12px;
    color: #888;
}

/* Responzívnosť */
@media (max-width: 768px) {
    .gold-chart-container {
        padding: 15px;
    }
    
    .gold-chart-wrapper {
        height: 300px;
    }
    
    .chart-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    #currentPrice {
        font-size: 20px;
    }
    
    .gold-chart-info {
        flex-direction: column;
        gap: 5px;
    }
}


/* gold-chart-simple.css - s zoom štýlmi */
/* gold-chart-simple.css - s zoom štýlmi */

.gold-chart-container {
    max-width: 100%;
    margin: 20px 0;
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gold-chart-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

/* PRIDANÉ: Timer styling */
.gold-chart-timer {
    text-align: center;
    margin-bottom: 15px;
}

#updateTimer {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

#updateTimer.markets-closed {
    /* background: rgba(128, 128, 128, 0.1);
    border-color: #888;
    color: #888; */

    color: #dc3545;
    font-weight: bold;
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
}

.chart-btn {
    background: #333;
    border: 1px solid #555;
    color: #d4af37;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.chart-btn:hover {
    background: #444;
    border-color: #d4af37;
}

.chart-btn.active {
    background: #d4af37;
    color: #1a1a1a;
    border-color: #d4af37;
}

.gold-chart-wrapper {
    height: 400px;
    position: relative;
    background: #222;
    border-radius: 8px;
    padding: 10px;
    /* PRIDANÉ: Overflow hidden pre zoom */
    overflow: hidden;
}

#goldChart {
    max-width: 100%;
    max-height: 100%;
    /* PRIDANÉ: Touch handling pre zoom */
    touch-action: none;
    user-select: none;
    /* PRIDANÉ: Cursor indikátory */
    cursor: grab;
}

/* PRIDANÉ: Cursor pri drag */
#goldChart:active {
    cursor: grabbing;
}

.gold-chart-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 10px 0;
    border-top: 1px solid #333;
    color: #d4af37;
}

#currentPrice {
    font-size: 24px;
    font-weight: bold;
}

#lastUpdate {
    font-size: 12px;
    color: #888;
    /* PRIDANÉ: Lepšie zalomenie textu na mobile */
    word-break: break-word;
}

/* PRIDANÉ: Styling pre poznámku o aktualizácii */
.gold-chart-note {
    text-align: center;
    font-size: 11px;
    color: #666;
    margin-top: 10px;
    padding: 5px;
    border-top: 1px solid #333;
}

/* PRIDANÉ: Zoom tooltip štýly */
.gold-chart-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

/* PRIDANÉ: Loading indikátor pri zoom */
.gold-chart-wrapper.loading {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

/* PRIDANÉ: Zoom help text pre mobile */
@media (max-width: 768px) {
    .gold-chart-wrapper {
        /* PRIDANÉ: Touch feedback */
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    #goldChart {
        /* PRIDANÉ: Better touch handling */
        -ms-touch-action: none;
        touch-action: pan-x pan-y;
    }
}

/* Responzívnosť */
@media (max-width: 768px) {
    .gold-chart-container {
        padding: 15px;
    }
    
    .gold-chart-wrapper {
        height: 300px;
    }
    
    .chart-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    #currentPrice {
        font-size: 20px;
    }
    
    .gold-chart-info {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    #lastUpdate {
        font-size: 11px;
        line-height: 1.3;
    }
}

/* PRIDANÉ: Desktop zoom štýly */
@media (min-width: 769px) {
    .gold-chart-wrapper:hover {
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
        transition: box-shadow 0.3s ease;
    }
    
    /* PRIDANÉ: Zoom hint pre desktop */
    .gold-chart-wrapper::after {
        content: "Mause wheel = zoom • Drag = pan • Double click = reset";
        position: absolute;
        bottom: 5px;
        right: 10px;
        font-size: 10px;
        color: #666;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .gold-chart-wrapper:hover::after {
        opacity: 1;
    }
}