/* Clip des Monats - Voting Styles */

:root {
    --voted-clip-color: #28a745;
}

.voting-container {
    margin: 2rem 0;
}

.loading-message,
.error-message,
.voted-message {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 2rem 0;
}

.error-message {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.voted-message {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.voted-message .note {
    font-size: 0.9rem;
    color: #999;
    margin-top: 1rem;
}

/* Voted clips section */
.voted-clips-section {
    margin-top: 2rem;
}

.voted-clips-section h3 {
    color: #7C4DFF;
    text-align: center;
    margin-top: 24px;
    margin-bottom: 16px;
}

/* Voted clip highlight - using CSS custom property for consistency */
.clip-card.voted-clip {
    border: 2px solid var(--voted-clip-color);
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.3);
    background: rgba(40, 167, 69, 0.05);
}

.clip-card.voted-clip:hover {
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.4);
}

/* Your vote badge */
.your-vote-badge {
    background: var(--voted-clip-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.95rem;
}

/* Voting Header */
.voting-header,
.results-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(124, 77, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(124, 77, 255, 0.3);
}

.voting-header h2,
.results-header h2 {
    color: #7C4DFF;
    margin-bottom: 1rem;
}

.voting-header p,
.results-header p {
    margin: 0.5rem 0;
}

/* Clips Grid */
.clips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .clips-grid {
        grid-template-columns: 1fr;
    }
}

/* Clip Card */
.clip-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.clip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.clip-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.clip-info {
    padding: 1rem;
}

.clip-title {
    font-size: 1.1rem;
    margin: 0 0 0.75rem 0;
    color: #fff;
    line-height: 1.4;
    min-height: 2.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.clip-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #999;
}

.clip-meta span {
    white-space: nowrap;
}

.clip-creator {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 1rem;
}

.vote-btn {
    width: 100%;
    margin-bottom: 0.5rem;
}

.clip-info .btn-secondary {
    width: 100%;
    text-align: center;
    display: block;
    text-decoration: none;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}

/* Result Card */
.result-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #7C4DFF;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.result-card:nth-child(1) .rank-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.result-card:nth-child(2) .rank-badge {
    background: linear-gradient(135deg, #C0C0C0, #808080);
}

.result-card:nth-child(3) .rank-badge {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
}

.clip-votes {
    font-size: 1.1rem;
    color: #7C4DFF;
    margin-bottom: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: #7C4DFF;
    color: #fff;
}

.btn-primary:hover {
    background: #6639E5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(124, 77, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Second Voting Styles */
.second-voting-notice {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    font-weight: 500;
}

/* Clip des Jahres Styles */
.cdj-period-header {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #FFD700;
}

.cdj-month-section {
    margin-bottom: 3rem;
}

.cdj-month-header {
    color: #FFD700;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.winner-card {
    border: 2px solid #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.winner-card:hover {
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
}

.no-results-message {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 2rem 0;
}

.no-results-message h2 {
    margin-bottom: 1rem;
    color: #7C4DFF;
}

.no-results-message p {
    margin: 0.75rem 0;
    color: #ccc;
    line-height: 1.6;
}

/* Embed wrapper and placeholder */
.clip-embed-wrapper {
    position: relative;
    background: #000;
}

.clip-embed-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

.embed-loading {
    color: #999;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .voting-header,
    .results-header {
        padding: 1rem;
    }
    
    .clip-info {
        padding: 0.75rem;
    }
    
    .clip-title {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .cdj-month-header {
        font-size: 1.4rem;
    }
}
