/**
 * EVE Stream Access - Stream Player Styles
 * Color scheme aligned with EVE-Leaderboards
 * @since 2.0.0
 */

/* ============================================
   GLOBAL HEADING COLORS
   ============================================ */
.eve-login-prompt h3,
.eve-login-prompt h4,
.eve-login-prompt h5,
.eve-payment-required h3,
.eve-payment-required h4,
.eve-payment-required h5,
.eve-stream-container h3,
.eve-stream-container h4,
.eve-stream-container h5,
.eve-detector-section h3,
.eve-detector-section h4,
.eve-detector-section h5,
.eve-payment-box h3,
.eve-payment-box h4,
.eve-payment-box h5,
.eve-login-box h3,
.eve-login-box h4,
.eve-login-box h5 {
    color: #fff;
}

/* ============================================
   LOGIN PROMPT
   ============================================ */
.eve-login-prompt {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 20px;
}

.eve-login-box {
    background: #000;
    border: 1px solid #3a3f48;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.eve-login-box h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
}

.eve-login-box p {
    color: #8ca0c0;
    margin-bottom: 25px;
}

.eve-login-button {
    display: inline-block;
    transition: transform 0.2s;
}

.eve-login-button:hover {
    transform: scale(1.05);
}

.eve-login-button img {
    max-width: 270px;
    height: auto;
}

/* ============================================
   PAYMENT REQUIRED
   ============================================ */
.eve-payment-required {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.eve-payment-box {
    background: #000;
    border: 1px solid #3a3f48;
    border-radius: 8px;
    padding: 40px;
    max-width: 1200px;
    width: 100%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.eve-payment-box h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 28px;
    text-align: center;
    font-weight: 600;
}

.eve-payment-box > p {
    text-align: center;
    font-size: 16px;
    margin-bottom: 30px;
    color: #e8e8e8;
}

.eve-payment-instructions {
    padding: 0;
    margin: 0 0 25px 0;
}

.eve-payment-instructions h4 {
    margin: 0 0 20px 0;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

/* ============================================
   TIER GRID
   ============================================ */
.eve-tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.eve-tier-card {
    background: #21252b;
    border: 2px solid #3a3f48;
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.eve-tier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: #5a9de8;
}

.eve-tier-popular {
    border-color: #28a745;
    background: linear-gradient(135deg, #21252b 0%, #1a2920 100%);
}

.eve-tier-popular:hover {
    border-color: #28a745;
}

.eve-tier-best-value {
    border-color: #f3c969;
    background: linear-gradient(135deg, #21252b 0%, #2a2515 100%);
}

.eve-tier-best-value:hover {
    border-color: #f3c969;
}

.eve-tier-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.eve-badge-gold {
    background: linear-gradient(135deg, #f3c969 0%, #ffea8a 100%);
    color: #3b2603;
}

.eve-tier-header h5 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #fff;
    font-weight: 600;
}

.eve-tier-duration {
    font-size: 13px;
    color: #8ca0c0;
    margin-bottom: 15px;
}

.eve-tier-price {
    font-size: 24px;
    font-weight: 700;
    color: #5a9de8;
    margin: 15px 0;
}

.eve-tier-popular .eve-tier-price {
    color: #28a745;
}

.eve-tier-best-value .eve-tier-price {
    color: #f3c969;
}

.eve-tier-description {
    font-size: 13px;
    color: #8ca0c0;
    margin-top: 10px;
}

/* ============================================
   PAYMENT STEPS
   ============================================ */
.eve-payment-steps {
    background: #21252b;
    border-left: 4px solid #5a9de8;
    padding: 20px;
    margin: 25px 0 15px 0;
    border-radius: 0 8px 8px 0;
}

.eve-payment-steps h4 {
    margin-top: 0;
    color: #fff;
    font-weight: 600;
}

.eve-payment-instructions ol {
    margin: 15px 0;
    padding-left: 20px;
}

.eve-payment-instructions li {
    margin: 10px 0;
    color: #b0b0b0;
    line-height: 1.6;
}

.eve-payment-instructions code {
    background: #2a2f38;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: monospace;
    color: #dc3545;
    border: 1px solid #3a3f48;
}

.eve-payment-note {
    color: #e8e8e8;
    background: #2a2515;
    border: 1px solid #f3c969;
    padding: 12px;
    border-radius: 4px;
    margin-top: 15px;
}

.eve-payment-note strong {
    color: #f3c969;
}

/* ============================================
   BUTTON STYLES
   ============================================ */
.eve-button {
    background: #5a9de8;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-top: 20px;
}

.eve-button:hover {
    background: #4a8ad8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 157, 232, 0.3);
}

.eve-button:active {
    transform: translateY(0);
}

.eve-button:disabled {
    background: #3a3f48;
    color: #8ca0c0;
    cursor: not-allowed;
    transform: none;
}

.eve-button-primary {
    background: #5a9de8;
}

.eve-button-primary:hover {
    background: #4a8ad8;
}

/* ============================================
   VERIFICATION STATUS
   ============================================ */
#eve-verification-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    display: none;
}

#eve-verification-status.success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid #28a745;
    color: #28a745;
    display: block;
}

#eve-verification-status.error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid #dc3545;
    color: #dc3545;
    display: block;
}

/* ============================================
   STREAM CONTAINER
   ============================================ */
.eve-stream-container {
    width: 100%;
    margin: 0 auto;
    padding: 10px 5px;
}

.eve-access-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #12141c 0%, #1a1f2e 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    border: 1px solid #3a3f48;
    border-bottom: none;
}

.eve-access-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #28a745;
}

.eve-access-badge::before {
    content: '●';
    font-size: 10px;
}

.eve-days-remaining {
    font-size: 14px;
    color: #8ca0c0;
}

#eve-viewer-count-number {
    font-weight: 700;
}

/* ============================================
   VIDEO WRAPPER
   ============================================ */
.eve-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    margin-top: 0px;
    border-left: 1px solid #3a3f48;
    border-right: 1px solid #3a3f48;
}

.eve-video-wrapper iframe,
.eve-video-wrapper #eve-stream-player {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    margin-top: 0px;
    pointer-events: auto;
}

/* Protective overlay to prevent right-click and interaction */
.eve-video-protection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: transparent;
    cursor: default;
}

.eve-stream-info {
    background: #000000;
    padding: 20px;
    border-radius: 0 0 8px 8px;
    text-align: center;
    border: 1px solid #3a3f48;
    border-top: none;
}

.eve-stream-info p {
    margin: 0;
    color: #b0b0b0;
}

.eve-stream-info strong {
    color: #fff;
}

.eve-warning {
    margin-top: 15px !important;
    padding: 12px;
    background: rgba(90, 157, 232, 0.1);
    border-left: 4px solid #5a9de8;
    border-radius: 0 4px 4px 0;
    color: #5a9de8 !important;
    font-size: 13px;
    text-align: left;
}

/* ============================================
   ERROR MESSAGES
   ============================================ */
.eve-error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px;
}

/* ============================================
   COLOR DETECTOR SECTION
   ============================================ */
.eve-detector-section {
    background: #000;
    border: 1px solid #3a3f48;
    border-radius: 8px;
    margin-top: 20px;
    overflow: hidden;
}

.eve-detector-header {
    background: linear-gradient(135deg, #12141c 0%, #1a1f2e 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3a3f48;
}

.eve-detector-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.eve-detector-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eve-detector-status {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.eve-detector-status.inactive {
    background: rgba(90, 157, 232, 0.15);
    color: #5a9de8;
    border: 1px solid rgba(90, 157, 232, 0.3);
}

.eve-detector-status.active {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.eve-detector-content {
    padding: 20px;
    background: #000;
}

.eve-detector-colortags h4,
.eve-detector-settings h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
}

/* ============================================
   COLORTAG GRID
   ============================================ */
.eve-colortag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 12px;
    border: 1px solid #3a3f48;
    border-radius: 6px;
    padding: 15px;
    background: #2a2f38;
    margin-bottom: 15px;
}

.eve-colortag-item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 8px 12px;
    padding: 12px;
    border: 2px solid #3a3f48;
    border-radius: 6px;
    background: #21252b;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
    min-width: 0;
}

.eve-colortag-item:hover {
    background: #333a45;
    border-color: #5a9de8;
}

.eve-colortag-item.selected {
    background: rgba(90, 157, 232, 0.1);
    border-color: #5a9de8;
}

.eve-colortag-checkbox {
    grid-column: 1;
    grid-row: 1;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #5a9de8;
    align-self: center;
}

.eve-colortag-image {
    grid-column: 1;
    grid-row: 2;
    width: 18px;
    height: 18px;
    image-rendering: pixelated;
    align-self: start;
}

.eve-colortag-info {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
}

.eve-colortag-name {
    font-weight: 500;
    font-size: 14px;
    color: #e8e8e8;
}

.eve-colortag-tolerance,
.eve-colortag-sensitivity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.eve-colortag-tolerance label,
.eve-colortag-sensitivity label {
    font-size: 11px;
    color: #8ca0c0;
    min-width: 65px;
}

.eve-colortag-tolerance input[type="range"],
.eve-colortag-sensitivity input[type="range"] {
    flex: 1;
    min-width: 100px;
    accent-color: #5a9de8;
}

.eve-colortag-tolerance .eve-value-input,
.eve-colortag-sensitivity .eve-value-input {
    width: 50px;
    padding: 2px 4px;
    border: 1px solid #3a3f48;
    border-radius: 3px;
    font-size: 11px;
    text-align: right;
    background: #2a2f38;
    color: #e8e8e8;
}

.eve-colortag-tolerance .eve-value-input:focus,
.eve-colortag-sensitivity .eve-value-input:focus {
    outline: none;
    border-color: #5a9de8;
}

.eve-colortag-tolerance span,
.eve-colortag-sensitivity span {
    font-size: 11px;
    color: #8ca0c0;
}

.eve-colortag-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

/* ============================================
   SETTINGS GRID
   ============================================ */
.eve-detector-settings {
    margin-top: 25px;
}

.eve-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.eve-setting-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.eve-setting-item label {
    font-size: 12px;
    color: #8ca0c0;
    font-weight: 500;
}

.eve-setting-item input[type="range"] {
    width: 100%;
    accent-color: #5a9de8;
}

.eve-setting-item select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #3a3f48;
    border-radius: 4px;
    font-size: 13px;
    background: #2a2f38;
    color: #e8e8e8;
    cursor: pointer;
}

.eve-setting-item select:focus {
    outline: none;
    border-color: #5a9de8;
}

.eve-setting-item span {
    font-size: 11px;
    color: #8ca0c0;
}

/* ============================================
   DETECTOR CONTROLS
   ============================================ */
.eve-detector-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.eve-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.eve-btn-primary {
    background: #5a9de8;
    color: white;
}

.eve-btn-primary:hover {
    background: #4a8ad8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 157, 232, 0.3);
}

.eve-btn-secondary {
    background: #2a2f38;
    color: #e8e8e8;
    border: 1px solid #3a3f48;
}

.eve-btn-secondary:hover {
    background: #333a45;
    border-color: #5a9de8;
}

.eve-btn-danger {
    background: #dc3545;
    color: white;
}

.eve-btn-danger:hover {
    background: #c62828;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* ============================================
   DETECTOR HELP
   ============================================ */
.eve-detector-help {
    background: rgba(90, 157, 232, 0.1);
    border: 1px solid rgba(90, 157, 232, 0.3);
    border-radius: 0 0 6px 6px;
    padding: 15px;
    margin: 0 20px 0 20px;
}

.eve-detector-help p {
    margin: 8px 0;
    color: #8ca0c0;
    font-size: 13px;
    line-height: 1.6;
}

.eve-detector-help strong {
    color: #5a9de8;
}

/* ============================================
   COLOR ALERT
   ============================================ */
.eve-color-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(220, 53, 69, 0.95);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: bold;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
    border: 1px solid #dc3545;
}

.eve-alert-details {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.9;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   LOADING ANIMATION
   ============================================ */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.button-loading::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .eve-login-box,
    .eve-payment-box {
        padding: 25px;
    }

    .eve-access-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .eve-payment-steps {
        padding: 15px;
    }

    .eve-tier-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .eve-detector-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .eve-colortag-grid {
        grid-template-columns: 1fr;
    }

    .eve-settings-grid {
        grid-template-columns: 1fr;
    }

    .eve-detector-controls {
        flex-direction: column;
    }

    .eve-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .eve-login-box,
    .eve-payment-box {
        padding: 20px;
    }

    .eve-payment-box h3 {
        font-size: 22px;
    }

    .eve-tier-price {
        font-size: 20px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .eve-detector-section,
    .eve-video-wrapper {
        display: none;
    }
}
