/**
 * Fantasy Football Auction Helper - Frontend Styles
 */

/* Observer indicator */
.ffah-observer-active::before {
    content: "";
    position: fixed;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    background-color: #00ff00;
    border-radius: 50%;
    z-index: 9999;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    animation: ffah-pulse 2s infinite;
}

@keyframes ffah-pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

/* Draft pick highlighting */
.ffah-new-pick {
    background-color: #fff3cd !important;
    border-left: 4px solid #ffc107 !important;
    animation: ffah-highlight 3s ease-out;
}

@keyframes ffah-highlight {
    0% { background-color: #d4edda; }
    100% { background-color: transparent; }
}

/* Value indicators */
.ffah-value-excellent::after {
    content: " 🔥";
    color: #28a745;
}

.ffah-value-good::after {
    content: " ✓";
    color: #17a2b8;
}

.ffah-value-poor::after {
    content: " ⚠";
    color: #ffc107;
}

.ffah-value-very-poor::after {
    content: " ❌";
    color: #dc3545;
}

/* Notification styles */
.ffah-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    z-index: 10000;
    font-size: 14px;
    max-width: 300px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.ffah-notification.error {
    background: #dc3545;
}

.ffah-notification.warning {
    background: #ffc107;
    color: #212529;
}

/* Hide notification after 5 seconds */
.ffah-notification {
    animation: ffah-notification-show 0.3s ease-out, ffah-notification-hide 0.3s ease-out 4.7s;
    animation-fill-mode: forwards;
}

@keyframes ffah-notification-show {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes ffah-notification-hide {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100%); }
}

/* Debug console styles */
.ffah-debug-console {
    position: fixed;
    bottom: 10px;
    left: 10px;
    width: 300px;
    max-height: 200px;
    background: rgba(0, 0, 0, 0.9);
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    padding: 10px;
    border-radius: 4px;
    overflow-y: auto;
    z-index: 9998;
    display: none;
}

.ffah-debug-console.active {
    display: block;
}

.ffah-debug-console .ffah-debug-line {
    margin-bottom: 2px;
    word-wrap: break-word;
}

.ffah-debug-console .ffah-debug-timestamp {
    color: #888;
    margin-right: 5px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .ffah-observer-active::before {
        top: 5px;
        right: 5px;
        width: 10px;
        height: 10px;
    }
    
    .ffah-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .ffah-debug-console {
        bottom: 5px;
        left: 5px;
        right: 5px;
        width: auto;
    }
}
