/**
 * EVE Weather Focus Mode Styles
 *
 * Client-side system monitoring UI
 *
 * @package Eve_Weather
 * @since 1.2.0
 */

/* Focus Mode Panel */
#eve-focus-mode-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 320px;
    background: rgba(26, 26, 46, 0.95);
    border: 2px solid #4a90e2;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

#eve-focus-mode-panel.collapsed {
    transform: translateX(280px);
}

#eve-focus-mode-panel.collapsed:hover {
    transform: translateX(260px);
}

/* Toggle Button */
#eve-focus-toggle {
    position: absolute;
    left: -40px;
    top: 10px;
    width: 40px;
    height: 50px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border: 2px solid #4a90e2;
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#eve-focus-toggle:hover {
    background: linear-gradient(135deg, #357abd, #2868a8);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

/* Panel Content */
.eve-focus-content {
    padding: 20px;
}

.eve-focus-content h3 {
    margin: 0 0 15px 0;
    color: #4a90e2;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 8px;
}

/* Systems List */
#eve-focus-systems-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 15px;
}

#eve-focus-systems-list::-webkit-scrollbar {
    width: 8px;
}

#eve-focus-systems-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

#eve-focus-systems-list::-webkit-scrollbar-thumb {
    background: #4a90e2;
    border-radius: 4px;
}

/* Empty State */
.eve-focus-empty {
    text-align: center;
    padding: 30px 20px;
    color: #999;
    font-style: italic;
}

.eve-focus-empty-icon {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.3;
}

/* System Item */
.eve-focus-system {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.eve-focus-system:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: #4a90e2;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.eve-focus-system-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.eve-focus-system-name {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.eve-focus-system-remove {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.eve-focus-system-remove:hover {
    background: rgba(231, 76, 60, 0.2);
    transform: scale(1.1);
}

/* Activity Status */
.eve-focus-activity {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 12px;
}

.eve-focus-activity-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #aaa;
}

.eve-focus-activity-item.active {
    color: #4a90e2;
    font-weight: 600;
}

.eve-focus-activity-kills {
    color: #e74c3c;
}

.eve-focus-activity-farms {
    color: #2ecc71;
}

/* Thresholds */
.eve-focus-thresholds {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.eve-focus-threshold {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.eve-focus-threshold label {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eve-focus-threshold input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 4px;
    color: #fff;
    padding: 6px 8px;
    font-size: 12px;
    width: 100%;
}

.eve-focus-threshold input:focus {
    outline: none;
    border-color: #4a90e2;
    background: rgba(255, 255, 255, 0.08);
}

/* Controls */
.eve-focus-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(74, 144, 226, 0.3);
}

#eve-focus-add-system {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: none;
    border-radius: 6px;
    color: #fff;
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#eve-focus-add-system:hover {
    background: linear-gradient(135deg, #27ae60, #229954);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
    transform: translateY(-2px);
}

.eve-focus-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.eve-focus-controls input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* System Selector Modal */
.eve-focus-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.eve-focus-modal-content {
    background: #1a1a2e;
    border: 2px solid #4a90e2;
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.eve-focus-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.eve-focus-modal-header h3 {
    margin: 0;
    color: #4a90e2;
    font-size: 20px;
}

.eve-focus-modal-close {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.eve-focus-modal-close:hover {
    background: rgba(231, 76, 60, 0.2);
}

/* System Search */
#eve-focus-system-search {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 6px;
    color: #fff;
    padding: 12px;
    font-size: 14px;
    margin-bottom: 16px;
}

#eve-focus-system-search:focus {
    outline: none;
    border-color: #4a90e2;
    background: rgba(255, 255, 255, 0.08);
}

/* System List in Modal */
.eve-focus-system-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eve-focus-system-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
}

.eve-focus-system-option:hover {
    background: rgba(74, 144, 226, 0.2);
    border-color: #4a90e2;
    transform: translateX(4px);
}

.eve-focus-system-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.eve-focus-system-option.disabled:hover {
    transform: none;
}

/* Status Badge */
.eve-focus-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

.eve-focus-status-badge.monitoring {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.eve-focus-status-badge.alert {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    #eve-focus-mode-panel {
        width: 280px;
        top: 60px;
        right: 10px;
    }

    #eve-focus-mode-panel.collapsed {
        transform: translateX(240px);
    }

    .eve-focus-content {
        padding: 15px;
    }

    .eve-focus-modal-content {
        padding: 16px;
    }
}

/* In-Page Notification Modal */
.eve-notification-modal {
    position: fixed;
    bottom: 20px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98), rgba(20, 20, 40, 0.98));
    border: 3px solid;
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 280px;
    max-width: 320px;
    z-index: 10001;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    text-align: center;
}

.eve-notification-modal.pvp {
    right: 20px;
    border-color: #e74c3c;
    box-shadow: 0 20px 60px rgba(231, 76, 60, 0.4);
    animation: notifSlideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.eve-notification-modal.farming {
    left: 20px;
    border-color: #f39c12;
    box-shadow: 0 20px 60px rgba(243, 156, 18, 0.4);
    animation: notifSlideInLeft 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.eve-notification-icon {
    font-size: 36px;
    margin-bottom: 8px;
    animation: notifPulse 1s ease-in-out infinite;
}

.eve-notification-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.eve-notification-body {
    font-size: 13px;
    color: #ccc;
    margin-bottom: 12px;
}

.eve-notification-close {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.eve-notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.eve-notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes notifSlideInDown {
    from {
        transform: translateY(-200px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes notifSlideInUp {
    from {
        transform: translateY(200px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes notifSlideInRight {
    from {
        transform: translateX(450px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes notifSlideInLeft {
    from {
        transform: translateX(-450px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes notifPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Mobile responsive styles for notifications */
@media (max-width: 768px) {
    .eve-notification-modal {
        min-width: 240px;
        max-width: 280px;
        padding: 12px 16px;
        font-size: 12px;
    }

    .eve-notification-modal.pvp {
        right: 10px !important;
    }

    .eve-notification-modal.farming {
        left: 10px !important;
    }

    .eve-notification-icon {
        font-size: 28px;
        margin-bottom: 6px;
    }

    .eve-notification-title {
        font-size: 14px;
        margin-bottom: 3px;
    }

    .eve-notification-body {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .eve-notification-close {
        padding: 5px 12px;
        font-size: 11px;
    }
}

/* Extra small screens - vertical stacking with PvP top, farming bottom */
@media (max-width: 480px) {
    .eve-notification-modal {
        min-width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        left: 10px !important;
        right: 10px !important;
    }

    .eve-notification-modal.pvp {
        top: 10px !important;
        bottom: auto !important;
        left: 10px !important;
        right: 10px !important;
        animation: notifSlideInDown 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .eve-notification-modal.farming {
        bottom: 10px !important;
        top: auto !important;
        left: 10px !important;
        right: 10px !important;
        animation: notifSlideInUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
}