/**
 * TV-Style Knob Styles
 * Old TV-style channel selector knob
 */

.tvk-tv-knob-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tvk-tv-knob-outer-ring {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 8px solid #2a2a2a;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.3);
}

.tvk-tv-knob {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3a3a3a 0%, #1a1a1a 50%, #3a3a3a 100%);
    border: 6px solid #2a2a2a;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(0, 0, 0, 0.3);
    cursor: grab;
    transition: transform 0.1s ease-out;
    z-index: 10;
}

.tvk-tv-knob:active {
    cursor: grabbing;
}

.tvk-tv-knob-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 30px;
    background: linear-gradient(to bottom, #ff0000 0%, #cc0000 100%);
    border-radius: 2px;
    transform: translate(-50%, -100%);
    box-shadow: 
        0 0 8px rgba(255, 0, 0, 0.8),
        0 0 16px rgba(255, 0, 0, 0.4);
    z-index: 11;
}

.tvk-tv-knob-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a4a4a 0%, #1a1a1a 100%);
    border: 2px solid #2a2a2a;
    transform: translate(-50%, -50%);
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 12;
}

.tvk-tv-knob-labels {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.tvk-tv-knob-user-label {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px solid #4a4a4a;
    color: #ffd700;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 215, 0, 0.3);
    transition: all 0.2s ease;
    z-index: 5;
}

.tvk-tv-knob-user-label:hover {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    border-color: #ffd700;
    box-shadow: 
        0 2px 8px rgba(255, 215, 0, 0.5),
        0 0 0 2px rgba(255, 215, 0, 0.3);
    transform: translate(-50%, -50%) scale(1.2);
}

.tvk-tv-knob-user-label:active {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Active Channel Label (Current Channel) */
.tvk-tv-knob-user-label-active {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    border-color: #00a0d2;
    color: #ffffff;
    box-shadow: 
        0 2px 8px rgba(0, 115, 170, 0.6),
        0 0 0 3px rgba(0, 115, 170, 0.3);
}

.tvk-tv-knob-user-label-active:hover {
    background: linear-gradient(135deg, #0085ba 0%, #006ba1 100%);
    box-shadow: 
        0 2px 12px rgba(0, 115, 170, 0.8),
        0 0 0 4px rgba(0, 115, 170, 0.4);
}

/* U Label Special Styling */
.tvk-tv-knob-u-label {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    border-color: #ffd700;
    font-size: 14px;
    text-decoration: underline;
}

.tvk-tv-knob-u-label:hover {
    background: linear-gradient(135deg, #4a4a4a 0%, #3a3a3a 100%);
    box-shadow: 
        0 2px 12px rgba(255, 215, 0, 0.7),
        0 0 0 3px rgba(255, 215, 0, 0.4);
}

/* Back Label Styling (on U knob) */
.tvk-tv-knob-back-label {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-color: #666;
    font-size: 16px;
    color: #ccc;
}

.tvk-tv-knob-back-label:hover {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    border-color: #ffd700;
    color: #ffd700;
    box-shadow: 
        0 2px 12px rgba(255, 215, 0, 0.5),
        0 0 0 2px rgba(255, 215, 0, 0.3);
}

/* Dynamic Knob Modal Styles */
.tvk-dynamic-knob-modal-content {
    width: auto;
    min-width: 250px;
    max-width: 350px;
}

.tvk-dynamic-knob-modal-body {
    padding: 20px;
    text-align: center;
}

.tvk-dynamic-knob-wrapper {
    position: relative;
    min-height: 250px;
}

.tvk-knob-primary,
.tvk-knob-secondary {
    margin: 0 auto;
}

.tvk-knob-subtitle {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

/* Navigation Controls */
.tvk-knob-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    gap: 10px;
    flex-wrap: wrap;
}

.tvk-knob-search {
    display: flex;
    gap: 5px;
    flex: 1;
    min-width: 150px;
}

.tvk-knob-search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 100px;
}

.tvk-knob-search-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.tvk-knob-search-btn {
    padding: 8px 16px;
    background-color: #0073aa;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.tvk-knob-search-btn:hover {
    background-color: #005a87;
}

.tvk-knob-search-btn:focus {
    outline: 2px solid #005a87;
    outline-offset: 2px;
}

.tvk-knob-skip {
    display: flex;
    gap: 5px;
}

.tvk-knob-skip-btn {
    padding: 8px 16px;
    background-color: #666;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.tvk-knob-skip-btn:hover {
    background-color: #555;
}

.tvk-knob-skip-btn:focus {
    outline: 2px solid #555;
    outline-offset: 2px;
}

.tvk-knob-skip-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .tvk-knob-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    .tvk-knob-search {
        width: 100%;
    }

    .tvk-knob-skip {
        width: 100%;
        justify-content: space-between;
    }

    .tvk-knob-skip-btn {
        flex: 1;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .tvk-tv-knob-container {
        width: 150px;
        height: 150px;
    }

    .tvk-tv-knob-outer-ring {
        width: 135px;
        height: 135px;
        border-width: 6px;
    }

    .tvk-tv-knob {
        width: 90px;
        height: 90px;
        border-width: 4px;
    }

    .tvk-tv-knob-indicator {
        width: 3px;
        height: 22px;
    }

    .tvk-tv-knob-user-label {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
}

