/* AMS Plugin Frontend Styles - Beautiful Designs, Theme-Safe */

/* Base notice styling with complete theme isolation */
.custom-dynamic-notice {
    display: block !important;
    margin: 15px 0 !important;
    padding: 15px 20px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    word-wrap: break-word !important;
    hyphens: auto !important;
    
    /* Complete theme isolation */
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    
    /* Reset any theme interference */
    position: static !important;
    float: none !important;
    clear: both !important;
    transform: none !important;
    transition: all 0.3s ease !important;
    filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: auto !important;
    
    /* Text and font protection */
    text-transform: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    font-weight: normal !important;
    font-style: normal !important;
    
    /* Box model protection */
    box-sizing: border-box !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    
    /* Browser-specific resets */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
}

/* Style 1: Classic Blue Info */
.custom-dynamic-notice.style1 {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
    border: none !important;
    border-left: 5px solid #2196f3 !important;
    border-radius: 8px !important;
    color: #1565c0 !important;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15) !important;
    animation: slideInFromTop 0.5s ease-out !important;
}

/* Style 2: Warning Orange */
.custom-dynamic-notice.style2 {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%) !important;
    border: none !important;
    border-left: 5px solid #ff9800 !important;
    border-radius: 10px !important;
    color: #e65100 !important;
    box-shadow: 0 3px 12px rgba(255, 152, 0, 0.2) !important;
    animation: fadeInUp 0.6s ease-out !important;
}

/* Style 3: Success Green */
.custom-dynamic-notice.style3 {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #2e7d32 !important;
    border: 2px solid #4caf50 !important;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.25) !important;
    animation: bounceIn 0.8s ease-out !important;
}

/* Style 4: Elegant Pink */
.custom-dynamic-notice.style4 {
    background: linear-gradient(45deg, #fce4ec 0%, #f8bbd9 100%) !important;
    border: none !important;
    border-radius: 15px !important;
    color: #ad1457 !important;
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.3) !important;
    border-top: 3px solid #e91e63 !important;
    animation: slideInFromLeft 0.7s ease-out !important;
}

/* Style 5: Modern Purple */
.custom-dynamic-notice.style5 {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    color: #6a1b9a !important;
    box-shadow: 0 3px 10px rgba(156, 39, 176, 0.2) !important;
    border-bottom: 4px solid #9c27b0 !important;
    animation: fadeInUp 0.5s ease-out !important;
}

/* Style 6: Fresh Teal */
.custom-dynamic-notice.style6 {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    color: #00695c !important;
    box-shadow: 0 4px 12px rgba(0, 150, 136, 0.18) !important;
    border-right: 5px solid #009688 !important;
    animation: slideInFromTop 0.6s ease-out !important;
}

/* Style 7: Professional Indigo */
.custom-dynamic-notice.style7 {
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #283593 !important;
    box-shadow: 0 6px 18px rgba(63, 81, 181, 0.25) !important;
    border: 2px solid #3f51b5 !important;
    animation: pulseGlow 2s ease-in-out infinite alternate !important;
}

/* Style 8: Energetic Yellow */
.custom-dynamic-notice.style8 {
    background: linear-gradient(135deg, #fffde7 0%, #fff9c4 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    color: #f57f17 !important;
    box-shadow: 0 3px 15px rgba(255, 193, 7, 0.3) !important;
    border-left: 6px solid #ffc107 !important;
    animation: fadeInUp 0.4s ease-out !important;
}

/* Style 9: Minimalist Card */
.custom-dynamic-notice.style9 {
    background: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    color: #555 !important;
    border-left: 4px solid #3498db !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    animation: slideInFromLeft 0.4s ease-out !important;
}

/* Style 10: Dark Theme */
.custom-dynamic-notice.style10 {
    background: #2c3e50 !important;
    color: #ecf0f1 !important;
    border: none !important;
    border-radius: 10px !important;
    border-left: 5px solid #e74c3c !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
    animation: bounceIn 0.6s ease-out !important;
}

/* Animations */
@keyframes slideInFromTop {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        transform: translateY(10px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 6px 18px rgba(63, 81, 181, 0.25);
    }
    100% {
        box-shadow: 0 6px 25px rgba(63, 81, 181, 0.4);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}



/* Responsive Design */
@media (max-width: 768px) {
    .custom-dynamic-notice {
        padding: 12px !important;
        font-size: 14px !important;
        margin-bottom: 10px !important;
        border-radius: 6px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: auto !important;
        max-width: 100% !important;
    }
    
    .custom-dynamic-notice.style6,
    .custom-dynamic-notice.style7,
    .custom-dynamic-notice.style8,
    .custom-dynamic-notice.style9,
    .custom-dynamic-notice.style10 {
        padding: 15px !important;
        font-size: 14px !important;
    }
}

/* ===================================
   AMS SPEED TEST STYLES
   =================================== */

/* Base Speed Test Styles */
.ams-speed-test {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin: 10px 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    z-index: 9999 !important;
}

/* Fixed positioning for footer display */
.ams-speed-test-fixed {
    position: fixed !important;
    max-width: 280px !important;
    z-index: 9999 !important;
}

/* Position-specific styles */
.ams-position-footer_left,
.ams-position-footer {
    bottom: 20px !important;
    left: 20px !important;
}

.ams-position-footer_right {
    bottom: 20px !important;
    right: 20px !important;
}

.ams-position-top_left {
    top: 20px !important;
    left: 20px !important;
}

.ams-position-top_right {
    top: 20px !important;
    right: 20px !important;
}

/* Inline positioning for content areas */
.ams-speed-test-inline {
    position: relative !important;
    display: inline-block !important;
    width: 100% !important;
    max-width: 400px !important;
}

/* Style 1: Dark Theme */
.ams-speed-style1 .ams-speed-dark {
    background: #333 !important;
    color: white !important;
    padding: 12px !important;
    border-radius: 8px !important;
}

.ams-speed-style1 .badge {
    font-size: 12px !important;
}

.ams-speed-style1 .text-light {
    color: #e0e0e0 !important;
}

/* Style 2: Light Theme */
.ams-speed-style2 .ams-speed-light {
    background: #f9f9f9 !important;
    color: #333 !important;
    border: 1px solid #e0e0e0 !important;
    padding: 12px !important;
    border-radius: 8px !important;
}

.ams-speed-style2 .badge {
    font-size: 12px !important;
}

/* Style 3: Compact */
.ams-speed-style3 .ams-speed-compact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 15px !important;
    border-radius: 12px !important;
    text-align: center !important;
}

.ams-speed-style3 .h5 {
    font-size: 1.5rem !important;
    font-weight: bold !important;
}

/* Style 4: Detailed */
.ams-speed-style4 .ams-speed-detailed {
    border: 2px solid #28a745 !important;
    background: #f8f9fa !important;
    padding: 15px !important;
    border-radius: 8px !important;
}

.ams-speed-style4 .h6 {
    font-size: 1.1rem !important;
    font-weight: bold !important;
}

.ams-speed-style4 .text-success {
    color: #28a745 !important;
}

.ams-speed-style4 .text-warning {
    color: #ffc107 !important;
}

.ams-speed-style4 .text-danger {
    color: #dc3545 !important;
}

/* Style 5: Badge Style */
.ams-speed-style5 .ams-speed-badge {
    background: #ffc107 !important;
    color: #212529 !important;
    padding: 12px !important;
    border-radius: 8px !important;
}

.ams-speed-style5 .bi-speedometer2 {
    font-size: 1.2rem !important;
}

.ams-speed-style5 .fw-bold {
    font-weight: bold !important;
}

/* Style 6: Minimal */
.ams-speed-style6 .ams-speed-minimal {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
    color: white !important;
    padding: 15px !important;
    border-radius: 12px !important;
    text-align: center !important;
}

.ams-speed-style6 .bi-lightning-charge {
    font-size: 2rem !important;
}

/* Bootstrap Badge Colors for Speed Test */
.ams-speed-test .badge.bg-success {
    background-color: #28a745 !important;
}

.ams-speed-test .badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.ams-speed-test .badge.bg-danger {
    background-color: #dc3545 !important;
}

.ams-speed-test .badge.bg-primary {
    background-color: #007bff !important;
}

/* Bootstrap Flex Utilities */
.ams-speed-test .d-flex {
    display: flex !important;
}

.ams-speed-test .justify-content-between {
    justify-content: space-between !important;
}

.ams-speed-test .align-items-center {
    align-items: center !important;
}

.ams-speed-test .text-center {
    text-align: center !important;
}

.ams-speed-test .small {
    font-size: 0.875rem !important;
}

.ams-speed-test .text-muted {
    color: #6c757d !important;
}

.ams-speed-test .mt-2 {
    margin-top: 0.5rem !important;
}

.ams-speed-test .mb-0 {
    margin-bottom: 0 !important;
}

.ams-speed-test .me-2 {
    margin-right: 0.5rem !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ams-speed-test-fixed {
        max-width: none !important;
        left: 10px !important;
        right: 10px !important;
    }
    
    .ams-position-footer_left,
    .ams-position-footer {
        bottom: 10px !important;
        left: 10px !important;
        right: 10px !important;
    }
    
    .ams-position-footer_right {
        bottom: 10px !important;
        left: 10px !important;
        right: 10px !important;
    }
    
    .ams-position-top_left {
        top: 10px !important;
        left: 10px !important;
        right: 10px !important;
    }
    
    .ams-position-top_right {
        top: 10px !important;
        left: 10px !important;
        right: 10px !important;
    }
    
    .ams-speed-test {
        font-size: 12px !important;
        padding: 8px !important;
    }
    
    .ams-speed-style3 .h5,
    .ams-speed-style4 .h6 {
        font-size: 1rem !important;
    }
}

/* Hover Effects */
.ams-speed-test:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Animation for appearance */
.ams-speed-test {
    animation: amsSpeedTestFadeIn 0.5s ease-in-out !important;
}

@keyframes amsSpeedTestFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   AMS AMAZON BUTTON STYLES
   =================================== */