/* Interaction Tracker Styles - COMPLETE VERSION */
/* Save this as: /wp-content/plugins/psychedelic-interaction-tracker/assets/tracker-styles.css */

/* ============================================
   DASHBOARD PROGRESS BAR (Prominent)
   ============================================ */

.interaction-tracker-dashboard {
    background: linear-gradient(135deg, #1a1f3a 0%, #0f1428 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 1.75rem;
    color: white;
    margin: 2rem auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    max-width: 66.666%;
    width: 100%;
}

.tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.tracker-header h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: white;
}

.tier-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tracker-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #10b981;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-bar-container {
    position: relative;
    height: 32px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.progress-bar-container.warning {
    border-color: rgba(251, 191, 36, 0.5);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 20px;
    transition: width 0.6s ease;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.progress-bar-container.warning .progress-bar-fill {
    background: linear-gradient(90deg, #f59e0b 0%, #dc2626 100%);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.tracker-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tracker-footer p {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
}

.upgrade-link {
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.upgrade-link:hover {
    color: #059669;
    gap: 0.75rem;
}

/* ============================================
   SMALL PROGRESS BAR (Tool Pages)
   ============================================ */

.interaction-tracker-small {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    backdrop-filter: blur(10px);
}

.tracker-small-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.usage-text {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
}

.upgrade-small {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.upgrade-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.progress-bar-small {
    height: 8px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.progress-bar-small.warning {
    border-color: rgba(251, 191, 36, 0.5);
}

.progress-bar-fill-small {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
}

.progress-bar-small.warning .progress-bar-fill-small {
    background: linear-gradient(90deg, #f59e0b 0%, #dc2626 100%);
}

/* ============================================
   MODAL STYLES
   ============================================ */

.interaction-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.interaction-modal.show {
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, #1a1f3a 0%, #0f1428 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    color: white;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    background: none;
    border: none;
    padding: 0.5rem;
}

.modal-close:hover {
    color: white;
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.modal-icon.warning {
    color: #f59e0b;
}

.modal-icon.error {
    color: #dc2626;
}

.modal-content h2 {
    margin: 0 0 1rem 0;
    font-size: 1.75rem;
    color: white;
    font-weight: 700;
}

.modal-content p {
    color: #94a3b8;
    margin: 0.5rem 0;
    line-height: 1.6;
    font-size: 1rem;
}

.modal-content p strong {
    color: #10b981;
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-actions .btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    text-decoration: none;
    display: inline-block;
}

.modal-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.modal-actions .btn-secondary {
    background: transparent;
    color: #94a3b8;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.modal-actions .btn-secondary:hover {
    border-color: rgba(148, 163, 184, 0.6);
    color: white;
    background: rgba(148, 163, 184, 0.1);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .interaction-tracker-dashboard {
        max-width: 95%;
        padding: 1.5rem;
    }
    
    .tracker-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .tracker-header h3 {
        font-size: 1.25rem;
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
    
    .modal-icon {
        font-size: 3rem;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .modal-actions button,
    .modal-actions .btn-primary,
    .modal-actions .btn-secondary {
        width: 100%;
        padding: 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .interaction-tracker-dashboard {
        max-width: 100%;
        padding: 1.25rem;
    }
    
    .tracker-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .tracker-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .tracker-stats {
        gap: 0.5rem;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
}