/* FANY1 USER DASHBOARD - PROFESSIONAL DARK THEME */

.user-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    color: #ffffff;
}

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, rgba(0, 175, 240, 0.1), rgba(255, 165, 0, 0.1));
    border: 1px solid rgba(0, 175, 240, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.dashboard-header__content h1.dashboard-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #00AFF0, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-subtitle {
    font-size: 1.1rem;
    color: #b3b3b3;
    margin: 0;
}

.dashboard-header__stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 100px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.stat-card__value {
    font-size: 2rem;
    font-weight: 700;
    color: #00AFF0;
    line-height: 1;
}

.stat-card__label {
    font-size: 0.85rem;
    color: #b3b3b3;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.video-card {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 175, 240, 0.2);
    border-color: rgba(0, 175, 240, 0.3);
}

.video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00AFF0, #ffa500);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover::before {
    opacity: 1;
}

/* Video Card Header */
.video-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.video-card__status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-card__status--success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.video-card__status--processing {
    background: rgba(0, 175, 240, 0.2);
    color: #00AFF0;
    border: 1px solid rgba(0, 175, 240, 0.3);
}

.video-card__status--queued {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.video-card__status--failed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-icon {
    width: 16px;
    height: 16px;
}

.status-icon.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.video-card__date {
    font-size: 0.8rem;
    color: #888;
}

/* Video Content */
.video-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.video-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 68px;
    border-radius: 6px;
    overflow: hidden;
    background: #333;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-details {
    flex: 1;
    min-width: 0;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.video-meta span {
    font-size: 0.85rem;
    color: #b3b3b3;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.video-platform {
    color: #00AFF0 !important;
    font-weight: 500;
}

.video-id {
    font-size: 0.8rem;
    color: #888;
}

.video-id__label {
    color: #666;
}

.video-id__value {
    font-family: 'Courier New', monospace;
    color: #00AFF0;
}

/* Video Actions */
.video-card__actions {
    display: flex;
    gap: 0.75rem;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.button:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.button:hover:before {
    width: 300px;
    height: 300px;
}

.button--primary {
    background: linear-gradient(135deg, #00AFF0, #0088cc);
    color: white;
}

.button--primary:hover {
    background: linear-gradient(135deg, #0088cc, #006699);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 175, 240, 0.4);
}

.button--secondary, .button--view-analysis {
    background: rgba(255, 255, 255, 0.1);
    color: #b3b3b3;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.button--secondary:hover, .button--view-analysis:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.button--tertiary {
    background-color: #bb86fc;
    color: #121212;
}

.button--tertiary:hover {
    background-color: #a36ef4;
}

.button--danger {
    background-color: #cf6679;
    color: #121212;
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.button__icon {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
}

.button__text {
    position: relative;
    z-index: 1;
}

.button__spinner {
    position: relative;
    z-index: 1;
}

.button__spinner .spinner {
    width: 18px;
    height: 18px;
}

.button__spinner .path {
    stroke: currentColor;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.empty-state__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    opacity: 0.3;
}

.empty-state__icon svg {
    width: 100%;
    height: 100%;
    color: #666;
}

.empty-state__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.empty-state__description {
    font-size: 1rem;
    color: #b3b3b3;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .user-dashboard {
        padding: 1rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .dashboard-header__content h1.dashboard-title {
        font-size: 2rem;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .video-info {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .video-thumbnail {
        width: 100%;
        height: 180px;
    }
    
    .video-card__actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .dashboard-header__stats {
        justify-content: center;
        width: 100%;
    }
    
    .stat-card {
        flex: 1;
        min-width: 80px;
    }
    
    .video-card {
        padding: 1rem;
    }
} 