/**
 * BMRT Geolocation Styles
 * Personalized location banner and prompt styling
 */

/* Geolocation Prompt */
.bmrt-geolocation-prompt {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8a 100%);
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.2);
}

.bmrt-geo-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(212, 168, 83, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bmrt-geo-icon svg {
    color: #d4a853;
}

.bmrt-geo-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bmrt-geo-text strong {
    font-size: 15px;
    font-weight: 600;
}

.bmrt-geo-text span {
    font-size: 13px;
    opacity: 0.85;
}

.bmrt-geo-enable {
    flex-shrink: 0;
    background: #d4a853;
    color: #1e3a5f;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bmrt-geo-enable:hover {
    background: #e8c078;
    transform: translateY(-1px);
}

.bmrt-geo-enable:disabled {
    opacity: 0.7;
    cursor: wait;
}

.bmrt-geo-dismiss {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px;
    cursor: pointer;
    transition: color 0.2s;
}

.bmrt-geo-dismiss:hover {
    color: #ffffff;
}

/* Location Banner */
.bmrt-location-banner {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #d4a853;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    position: relative;
    box-shadow: 0 4px 20px rgba(212, 168, 83, 0.15);
}

.bmrt-location-banner.bmrt-location-generic {
    border-color: #1e3a5f;
}

.bmrt-location-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #d4a853 0%, #e8c078 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(212, 168, 83, 0.3);
}

.bmrt-location-icon svg {
    color: #1e3a5f;
}

.bmrt-location-content {
    flex: 1;
}

.bmrt-location-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.bmrt-location-header strong {
    font-size: 20px;
    font-weight: 700;
    color: #1e3a5f;
}

.bmrt-location-region {
    font-size: 14px;
    color: #5c6873;
    font-weight: 500;
}

.bmrt-location-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 16px;
}

.bmrt-location-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bmrt-location-stat .stat-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.bmrt-location-stat .stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #1e3a5f;
}

.bmrt-location-tip {
    background: #ffffff;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
}

.bmrt-location-tip strong {
    color: #1e3a5f;
}

.bmrt-location-dismiss {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #adb5bd;
    padding: 4px;
    cursor: pointer;
    transition: color 0.2s;
}

.bmrt-location-dismiss:hover {
    color: #495057;
}

/* Responsive */
@media (max-width: 768px) {
    .bmrt-geolocation-prompt {
        flex-wrap: wrap;
        padding: 16px;
    }
    
    .bmrt-geo-text {
        flex: 1 1 calc(100% - 60px);
    }
    
    .bmrt-geo-enable {
        flex: 1 1 100%;
        margin-top: 8px;
    }
    
    .bmrt-geo-dismiss {
        position: absolute;
        top: 12px;
        right: 12px;
    }
    
    .bmrt-location-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }
    
    .bmrt-location-icon {
        width: 40px;
        height: 40px;
    }
    
    .bmrt-location-header strong {
        font-size: 18px;
    }
    
    .bmrt-location-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .bmrt-location-dismiss {
        top: 12px;
        right: 12px;
    }
}

/* Animation */
@keyframes bmrt-slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bmrt-location-banner,
.bmrt-geolocation-prompt {
    animation: bmrt-slide-down 0.3s ease-out;
}
