/* WcUseronline Frontend Styles */

/* Widget Styles */
.wcuo-widget {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.wcuo-widget:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Widget Stats */
.wcuo-widget-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wcuo-widget-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.wcuo-widget-stat:hover {
    transform: scale(1.02);
}

.wcuo-stat-users .wcuo-widget-stat {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.wcuo-stat-visitors .wcuo-widget-stat {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
}

.wcuo-stat-total .wcuo-widget-stat {
    background: linear-gradient(135deg, #fff3e0, #ffcc02);
}

.wcuo-stat-icon {
    font-size: 1.8em;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wcuo-stat-content {
    flex: 1;
}

.wcuo-stat-number {
    display: block;
    font-size: 1.8em;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.wcuo-stat-label {
    display: block;
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 500;
    margin-top: 4px;
}

/* Widget List */
.wcuo-widget-list {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f1f3f4;
}

.wcuo-widget-list-title {
    margin: 0 0 15px 0;
    font-size: 1em;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wcuo-widget-users {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

.wcuo-widget-user {
    padding: 10px;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.wcuo-widget-user:hover {
    background: #f8f9fa;
}

.wcuo-widget-user:last-child {
    border-bottom: none;
}

.wcuo-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wcuo-user-type {
    font-size: 1.2em;
    width: 30px;
    text-align: center;
}

.wcuo-user-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wcuo-user-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9em;
}

.wcuo-user-meta {
    font-size: 0.75em;
    color: #6c757d;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.wcuo-user-country,
.wcuo-user-time {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
}

.wcuo-registered {
    border-left: 3px solid #4facfe;
}

.wcuo-visitor {
    border-left: 3px solid #43e97b;
}

/* Widget Footer */
.wcuo-widget-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f1f3f4;
    text-align: center;
}

.wcuo-last-update {
    color: #6c757d;
    font-size: 0.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Visitors Widget Specific */
.wcuo-visitors-widget {
    background: linear-gradient(135deg, #e8f5e8, #f1f8e9);
    border-color: #43e97b;
}

.wcuo-visitors-count {
    text-align: center;
    margin-bottom: 20px;
}

.wcuo-count-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
}

.wcuo-count-icon {
    font-size: 2.5em;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #43e97b;
    color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(67, 233, 123, 0.3);
}

.wcuo-count-content {
    text-align: left;
}

.wcuo-count-number {
    display: block;
    font-size: 2.2em;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.wcuo-count-label {
    display: block;
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 500;
    margin-top: 4px;
}

.wcuo-visitors-details {
    margin-top: 20px;
}

.wcuo-details-title {
    margin: 0 0 15px 0;
    font-size: 0.9em;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wcuo-countries {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wcuo-country-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.2s ease;
}

.wcuo-country-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

.wcuo-country-flag {
    font-size: 1.1em;
}

.wcuo-country-name {
    flex: 1;
    font-weight: 500;
    color: #495057;
    font-size: 0.85em;
}

.wcuo-country-count {
    background: #43e97b;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
}

.wcuo-visitors-info {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.wcuo-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.8em;
    color: #6c757d;
}

.wcuo-info-icon {
    font-size: 1.1em;
}

/* Shortcode Styles */
.wcuo-shortcode {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.wcuo-shortcode-stat {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.wcuo-shortcode-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.wcuo-shortcode-stat:last-child {
    margin-bottom: 0;
}

.wcuo-stat-users .wcuo-shortcode-stat {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #ffffff;
}

.wcuo-stat-visitors .wcuo-shortcode-stat {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: #ffffff;
}

.wcuo-stat-total .wcuo-shortcode-stat {
    background: linear-gradient(135deg, #fa709a, #fee140);
    color: #ffffff;
}

.wcuo-shortcode-icon {
    font-size: 3em;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.wcuo-shortcode-content {
    flex: 1;
}

.wcuo-shortcode-number {
    display: block;
    font-size: 3em;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wcuo-shortcode-label {
    display: block;
    font-size: 1.1em;
    font-weight: 500;
    margin-top: 8px;
    opacity: 0.9;
}

/* Shortcode Details */
.wcuo-shortcode-details {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #f1f3f4;
}

.wcuo-shortcode-title {
    margin: 0 0 20px 0;
    font-size: 1.2em;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wcuo-shortcode-users,
.wcuo-shortcode-visitors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.wcuo-shortcode-user,
.wcuo-shortcode-visitor {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #dee2e6;
    transition: all 0.3s ease;
}

.wcuo-shortcode-user:hover,
.wcuo-shortcode-visitor:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wcuo-shortcode-user.wcuo-registered {
    border-left-color: #4facfe;
}

.wcuo-shortcode-user.wcuo-visitor,
.wcuo-shortcode-visitor {
    border-left-color: #43e97b;
}

.wcuo-user-avatar,
.wcuo-visitor-avatar {
    font-size: 1.5em;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.wcuo-user-info,
.wcuo-visitor-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wcuo-user-name,
.wcuo-visitor-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95em;
}

.wcuo-user-meta,
.wcuo-visitor-meta {
    font-size: 0.8em;
    color: #6c757d;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.wcuo-user-location,
.wcuo-user-time,
.wcuo-visitor-location,
.wcuo-visitor-browser,
.wcuo-visitor-time {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Widget Style Variations */
.wcuo-widget-compact {
    padding: 15px;
}

.wcuo-widget-compact .wcuo-widget-stat {
    padding: 10px;
    gap: 8px;
}

.wcuo-widget-compact .wcuo-stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.4em;
}

.wcuo-widget-compact .wcuo-stat-number {
    font-size: 1.4em;
}

.wcuo-widget-compact .wcuo-stat-label {
    font-size: 0.8em;
}

.wcuo-widget-colorful {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
}

.wcuo-widget-colorful .wcuo-widget-stat {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.wcuo-widget-colorful .wcuo-stat-number,
.wcuo-widget-colorful .wcuo-stat-label,
.wcuo-widget-colorful .wcuo-user-name {
    color: #ffffff;
}

.wcuo-widget-colorful .wcuo-user-meta {
    color: rgba(255, 255, 255, 0.8);
}

.wcuo-widget-minimal {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 10px;
}

.wcuo-widget-minimal .wcuo-widget-stat {
    background: transparent;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.wcuo-widget-minimal .wcuo-stat-icon {
    background: transparent;
    box-shadow: none;
}

/* Shortcode Style Variations */
.wcuo-shortcode-compact {
    padding: 15px;
}

.wcuo-shortcode-compact .wcuo-shortcode-stat {
    padding: 15px;
    gap: 15px;
}

.wcuo-shortcode-compact .wcuo-shortcode-icon {
    width: 60px;
    height: 60px;
    font-size: 2em;
}

.wcuo-shortcode-compact .wcuo-shortcode-number {
    font-size: 2em;
}

.wcuo-shortcode-minimal {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 10px;
}

.wcuo-shortcode-minimal .wcuo-shortcode-stat {
    background: #f8f9fa;
    color: #495057;
}

.wcuo-shortcode-minimal .wcuo-shortcode-icon {
    background: #ffffff;
    color: #495057;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wcuo-widget,
    .wcuo-shortcode {
        padding: 15px;
        margin: 15px 0;
    }
    
    .wcuo-widget-stat,
    .wcuo-shortcode-stat {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .wcuo-shortcode-users,
    .wcuo-shortcode-visitors {
        grid-template-columns: 1fr;
    }
    
    .wcuo-shortcode-user,
    .wcuo-shortcode-visitor {
        flex-direction: column;
        text-align: center;
    }
    
    .wcuo-user-meta,
    .wcuo-visitor-meta {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .wcuo-shortcode-icon {
        width: 60px;
        height: 60px;
        font-size: 2em;
    }
    
    .wcuo-shortcode-number {
        font-size: 2em;
    }
    
    .wcuo-shortcode-label {
        font-size: 1em;
    }
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wcuo-widget,
.wcuo-shortcode {
    animation: fadeInUp 0.6s ease-out;
}

.wcuo-widget-stat,
.wcuo-shortcode-stat {
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.1s;
    animation-fill-mode: both;
}

/* Loading States */
.wcuo-loading {
    opacity: 0.6;
    pointer-events: none;
}

.wcuo-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
