/**
 * ChatGPT Status Monitor - Optimized Styles
 * Version: 1.1.0
 * Simple and elegant design (notifications removed)
 */

/* ===================================================================
   1. CSS RESET & BASE STYLES
   =================================================================== */

.chatgpt-status-full *,
.chatgpt-status-widget *,
.chatgpt-status-simple * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===================================================================
   2. MAIN CONTAINER - FULL STATUS PAGE
   =================================================================== */

.chatgpt-status-full {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fafafa;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.chatgpt-status-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6b7280 0%, #9ca3af 100%);
}

/* ===================================================================
   3. STATUS HEADER SECTION - SIMPLE & ELEGANT
   =================================================================== */

.status-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: #ffffff;
    color: #374151;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.status-header h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0;
    color: #374151;
    position: relative;
    text-transform: none;
}

/* ===================================================================
   4. CURRENT STATUS DISPLAY
   =================================================================== */

.current-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 40px 30px;
    border-radius: 24px;
    margin: 30px 0;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.current-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #ec4899, #f59e0b);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.current-status:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 64px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08);
}

.status-main-content {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 600px;
}

.status-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-icon {
    font-size: 5rem;
    line-height: 1;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.status-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.3;
    animation: pulseGlow 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
}

.status-info {
    flex: 1;
    text-align: left;
}

.status-info h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e293b;
    line-height: 1.2;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.status-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.status-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}

.status-detail-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.status-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.status-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
}

.status-refresh-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.status-refresh-btn:hover::before {
    left: 100%;
}

.status-refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
}

.status-refresh-btn:active {
    transform: translateY(0);
}

.status-refresh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.status-refresh-btn .btn-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.status-refresh-btn.loading .btn-icon {
    animation: spin 1s linear infinite;
}

.status-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    border: 2px solid rgba(79, 70, 229, 0.2);
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.status-details-btn:hover {
    background: rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.3);
    transform: translateY(-1px);
}

/* Status-specific colors and animations */
.status-online {
    border-left: 4px solid #10b981;
}

.status-online .status-icon {
    color: #10b981;
    animation: pulse 2s infinite;
}

.status-online .status-icon-glow {
    background: radial-gradient(circle, #10b981, transparent);
}

.status-slow {
    border-left: 4px solid #f59e0b;
}

.status-slow .status-icon {
    color: #f59e0b;
    animation: pulse 1.5s infinite;
}

.status-slow .status-icon-glow {
    background: radial-gradient(circle, #f59e0b, transparent);
}

.status-offline {
    border-left: 4px solid #ef4444;
}

.status-offline .status-icon {
    color: #ef4444;
    animation: shake 1s infinite;
}

.status-offline .status-icon-glow {
    background: radial-gradient(circle, #ef4444, transparent);
}

.status-error {
    border-left: 4px solid #6b7280;
}

.status-error .status-icon {
    color: #6b7280;
}

.status-error .status-icon-glow {
    background: radial-gradient(circle, #6b7280, transparent);
}

.status-maintenance {
    border-left: 4px solid #3b82f6;
}

.status-maintenance .status-icon {
    color: #3b82f6;
}

.status-maintenance .status-icon-glow {
    background: radial-gradient(circle, #3b82f6, transparent);
}

/* ===================================================================
   5. STATUS HISTORY SECTION
   =================================================================== */

.status-history {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.status-history h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-log {
    list-style: none;
    padding: 0;
}

.log-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.log-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.log-item.status-online {
    border-left-color: #27ae60;
}

.log-item.status-slow {
    border-left-color: #f39c12;
}

.log-item.status-offline {
    border-left-color: #e74c3c;
}

.log-time {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #6c757d;
    min-width: 50px;
}

.log-status {
    flex: 1;
    font-weight: 500;
}

.log-response {
    font-size: 0.85rem;
    color: #6c757d;
    background: #dee2e6;
    padding: 2px 8px;
    border-radius: 12px;
}

/* ===================================================================
   6. SEO CONTENT SECTIONS
   =================================================================== */

.chatgpt-seo-content {
    margin-top: 40px;
}

.info-section,
.tips-section,
.alternatives-section,
.features-section,
.internal-links {
    background: white;
    padding: 30px;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.info-section:hover,
.tips-section:hover,
.alternatives-section:hover,
.features-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.chatgpt-seo-content h2 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatgpt-seo-content h2::before {
    content: '▶';
    color: #667eea;
    font-size: 0.8em;
}

.chatgpt-seo-content p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: #555;
}

.chatgpt-seo-content ul {
    margin: 15px 0;
    padding-left: 0;
}

.chatgpt-seo-content li {
    list-style: none;
    padding: 8px 0 8px 30px;
    position: relative;
    line-height: 1.6;
}

.chatgpt-seo-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.1em;
}

.chatgpt-seo-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.chatgpt-seo-content a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Internal Links Section */
.related-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.related-links a {
    display: block;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
}

.related-links a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

/* ===================================================================
   7. WIDGET STYLES
   =================================================================== */

.chatgpt-status-widget {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    color: white !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.chatgpt-status-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.chatgpt-status-widget:hover::before {
    left: 100%;
}

.chatgpt-status-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    color: white !important;
    text-decoration: none !important;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.status-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0.6;
    animation: ping 2s infinite;
}

.status-online {
    background: #ffffff;
}

.status-online::after {
    background: #27ae60;
}

.status-slow {
    background: #f39c12;
}

.status-slow::after {
    background: #f39c12;
}

.status-offline {
    background: #e74c3c;
}

.status-offline::after {
    background: #e74c3c;
}

/* ===================================================================
   8. SIMPLE STATUS STYLES
   =================================================================== */

.chatgpt-status-simple {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px solid #dee2e6;
}

/* ===================================================================
   9. ANIMATIONS
   =================================================================== */

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

.chatgpt-status-full > * {
    animation: slideUp 0.6s ease-out;
}

.status-header {
    animation: fadeIn 0.8s ease-out;
}

.current-status {
    animation: slideUp 0.7s ease-out 0.2s both;
}

.status-history {
    animation: slideUp 0.6s ease-out 0.4s both;
}

/* Hover animations */
.status-refresh-btn:hover .btn-icon {
    animation: spin 0.5s ease-in-out;
}

.status-details-btn:hover .btn-icon {
    animation: bounce 0.6s ease;
}

/* Loading state animations */
.status-refresh-btn.loading {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    cursor: not-allowed;
}

.status-refresh-btn.loading .btn-icon {
    animation: spin 1s linear infinite;
}

/* Success state animation */
.status-refresh-btn.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.status-refresh-btn.success .btn-icon {
    animation: bounce 0.6s ease;
}

/* Error state animation */
.status-refresh-btn.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.status-refresh-btn.error .btn-icon {
    animation: shake 0.5s ease;
}

/* ===================================================================
   10. RESPONSIVE DESIGN
   =================================================================== */

@media (max-width: 768px) {
    .chatgpt-status-full {
        margin: 10px;
        padding: 15px;
    }
    
    .status-header {
        padding: 25px 15px;
    }
    
    .status-header h2 {
        font-size: 1.8rem;
    }
    
    .current-status {
        padding: 30px 20px;
    }
    
    .status-main-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .status-info {
        text-align: center;
    }
    
    .status-icon {
        font-size: 4rem;
    }
    
    .status-info h3 {
        font-size: 1.8rem;
    }
    
    .status-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .status-refresh-btn,
    .status-details-btn {
        width: 100%;
        justify-content: center;
    }
    
    .log-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 15px;
    }
    
    .log-time {
        min-width: auto;
        font-size: 0.8rem;
    }
    
    .related-links {
        grid-template-columns: 1fr;
    }
    
    .chatgpt-status-widget {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .chatgpt-status-full {
        margin: 5px;
        padding: 10px;
    }
    
    .status-header {
        padding: 20px 10px;
    }
    
    .status-header h2 {
        font-size: 1.5rem;
    }
    
    .current-status {
        padding: 25px 15px;
    }
    
    .status-icon {
        font-size: 3.5rem;
    }
    
    .status-info h3 {
        font-size: 1.5rem;
    }
    
    .status-detail-item {
        font-size: 0.9rem;
    }
    
    .status-refresh-btn,
    .status-details-btn {
        padding: 14px 20px;
        font-size: 13px;
    }
    
    .info-section,
    .tips-section,
    .alternatives-section,
    .features-section,
    .internal-links {
        padding: 20px;
    }
    
    .chatgpt-seo-content h2 {
        font-size: 1.3rem;
    }
}

/* ===================================================================
   11. ACCESSIBILITY IMPROVEMENTS
   =================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.chatgpt-status-full *:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.chatgpt-status-widget:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .chatgpt-status-full {
        border: 2px solid;
    }
    
    .current-status {
        border: 1px solid;
    }
    
    .log-item {
        border: 1px solid;
    }
}

/* ===================================================================
   12. PRINT STYLES
   =================================================================== */

@media print {
    .chatgpt-status-full {
        background: white;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .status-header {
        background: white !important;
        color: black !important;
        border: 1px solid #000;
    }
    
    .current-status,
    .info-section,
    .tips-section,
    .alternatives-section,
    .features-section {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
    
    .chatgpt-status-widget {
        background: white !important;
        color: black !important;
        border: 1px solid #000;
    }
}

/* ===================================================================
   13. PERFORMANCE OPTIMIZATIONS
   =================================================================== */

/* GPU acceleration for animations */
.status-icon,
.chatgpt-status-widget,
.current-status {
    will-change: transform;
}

/* Contain paint for better performance */
.chatgpt-status-full {
    contain: layout style;
}

/* Optimize reflows */
.log-item,
.related-links a {
    contain: layout;
}

/* ===================================================================
   14. PERFORMANCE INDICATORS
   =================================================================== */

.performance-excellent {
    color: #10b981 !important;
}

.performance-good {
    color: #3b82f6 !important;
}

.performance-slow {
    color: #f59e0b !important;
}

.performance-very-slow {
    color: #ef4444 !important;
}

/* ===================================================================
   15. DARK MODE SUPPORT (if theme supports it)
   =================================================================== */

@media (prefers-color-scheme: dark) {
    .chatgpt-status-full {
        background: #0f172a;
        color: #e2e8f0;
    }
    
    .status-header {
        background: #1e293b;
        color: #f1f5f9;
        border-color: #334155;
    }
    
    .current-status,
    .info-section,
    .tips-section,
    .alternatives-section,
    .features-section,
    .internal-links {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        color: #e2e8f0;
        border: 1px solid #334155;
    }
    
    .status-info h3,
    .chatgpt-seo-content h2 {
        color: #f1f5f9;
        background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .log-item {
        background: #1e293b;
        border-color: #334155;
    }
    
    .log-item:hover {
        background: #334155;
    }
    
    .chatgpt-seo-content p {
        color: #cbd5e1;
    }
    
    .related-links a {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        color: #e2e8f0;
        border-color: #475569;
    }
    
    .chatgpt-status-simple {
        background: #1e293b;
        color: #e2e8f0;
        border-color: #475569;
    }
    
    .status-detail-item {
        color: #94a3b8;
    }
    
    .status-refresh-btn {
        background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    }
    
    .status-details-btn {
        background: rgba(79, 70, 229, 0.15);
        color: #818cf8;
        border-color: rgba(79, 70, 229, 0.3);
    }
    
    .status-details-btn:hover {
        background: rgba(79, 70, 229, 0.25);
        border-color: rgba(79, 70, 229, 0.4);
    }
}

/* End of CSS file */