/* Stripchat Model Display - Styles */

/* Container */
.smd-model-container {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header */
.smd-model-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.smd-model-name {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Status Indicator */
.smd-status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.smd-status-indicator.smd-online {
    background: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    animation: pulse 2s infinite;
}

.smd-status-indicator.smd-offline {
    background: #9e9e9e;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Badges */
.smd-live-badge,
.smd-offline-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.smd-live-badge {
    background: #ff4444;
    color: #fff;
    animation: blink 1.5s infinite;
}

.smd-offline-badge {
    background: #e0e0e0;
    color: #666;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Stats */
.smd-model-stats {
    display: flex;
    gap: 15px;
    align-items: center;
}

.smd-viewers {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.smd-favorites {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #e91e63;
    font-weight: 500;
}

.smd-country {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.smd-icon {
    font-size: 16px;
}

/* Stream Container */
.smd-stream-wrapper {
    margin: 20px 0;
}

.smd-live-preview {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.smd-snapshot-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Live Overlay */
.smd-live-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.5) 0%, 
        rgba(0,0,0,0) 30%, 
        rgba(0,0,0,0) 70%, 
        rgba(0,0,0,0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
    pointer-events: none;
}

.smd-live-indicator {
    background: rgba(255, 68, 68, 0.95);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
}

.smd-live-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Stream Placeholder */
.smd-stream-placeholder {
    padding: 60px 20px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 8px;
}

.smd-stream-placeholder p {
    color: #666;
    font-size: 16px;
}

/* Goal Section */
.smd-goal {
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: #fff;
}

.smd-goal-message {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    text-align: center;
}

.smd-goal-progress {
    margin-top: 10px;
}

.smd-progress-bar {
    width: 100%;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

.smd-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #8BC34A 100%);
    transition: width 0.3s ease;
    border-radius: 12px;
}

.smd-goal-stats {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

/* Offline Content */
.smd-offline-content {
    text-align: center;
}

.smd-offline-image {
    position: relative;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
    display: inline-block;
}

.smd-offline-image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 500px;
    margin: 0 auto;
}

.smd-offline-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
    border-radius: 8px;
    max-width: 500px;
    margin: 0 auto;
}

.smd-placeholder-icon {
    font-size: 80px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.smd-placeholder-text {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.smd-offline-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.smd-offline-text {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.smd-offline-info {
    margin: 20px 0;
    padding: 0 20px;
}

.smd-offline-info p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Tags */
.smd-tags {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.smd-tags strong {
    color: #333;
    margin-right: 5px;
}

.smd-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f0f0;
    color: #333;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}

.smd-tag:hover {
    background: #e0e0e0;
}

/* Actions */
.smd-actions {
    margin: 20px 0 0;
    text-align: center;
}

.smd-button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.smd-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.smd-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.smd-button-secondary {
    background: #fff;
    color: #667eea;
    border: 2px solid #667eea;
}

.smd-button-secondary:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-2px);
}

/* Error State */
.smd-model-container.smd-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
}

.smd-error-message {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #856404;
}

.smd-error-icon {
    font-size: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .smd-model-container {
        padding: 15px;
    }
    
    .smd-model-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .smd-model-name {
        font-size: 20px;
    }
    
    .smd-offline-text {
        font-size: 18px;
    }
    
    .smd-button {
        padding: 10px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .smd-model-name {
        font-size: 18px;
        flex-wrap: wrap;
    }
    
    .smd-live-badge,
    .smd-offline-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}
