/* Gallery Grid */
.contest-votes{
    float:right;
}


.contest-gallery {
    padding: 20px;
}

.contest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);   
    gap: 30px;
    margin-top: 30px;
}

.contest-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.contest-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.contest-card-content {
    padding: 20px;
}

.contest-card-title {
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    color: #333;
}

.contest-card-title a {
    text-decoration: none;
    color: inherit;
}

.contest-card-meta {
    font-size: 0.9rem;
    color: #666;
    margin: 8px 0;
}

.contest-card-meta span {
    font-weight: 600;
    color: #333;
}

.contest-votes {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff6b35;
    margin: 15px 0;
}

.contest-vote-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

.contest-vote-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

.contest-vote-btn:disabled {
    background: #4caf50;
    cursor: not-allowed;
}

.contest-pagination {
    margin-top: 40px;
    text-align: center;
}

.contest-pagination .page-numbers {
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    display: inline-block;
}

.contest-pagination .page-numbers.current {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.contest-no-entries {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #666;
}

/* Single Entry Page */
.contest-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Navigation Arrows */
.contest-single-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.contest-nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 65px;
    background: #fff;
    color: #667eea;
    text-decoration: none;
    font-size: 40px;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
}

.contest-nav-placeholder {
    width: 50px; /* keeps spacing consistent when no link */
}

/* Featured Image */
.contest-single-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.contest-single-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: cover;
}

/* Title & Meta */
.contest-single-title {
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    color: #222;
    text-align: center;
}

.contest-single-author {
    text-align: center;
    color: #777;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.contest-single-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Action Bar */
.contest-single-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.contest-single-actions .contest-vote-btn {
    width: auto;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 30px;
}

.contest-single-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 1.1rem;
    color: #555;
    flex-wrap: wrap;
    justify-content: center;
}

.contest-single-meta .heart,
.contest-single-meta .comments,
.contest-single-meta .share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: default;
}

.contest-single-meta .share {
    cursor: pointer;
    color: #667eea;
    font-weight: 600;
}

.contest-single-meta .share:hover {
    text-decoration: underline;
}

/* Share tooltip */
.share-link {
    position: relative;
}

.share-link::after {
    content: "Link copied!";
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.share-link.copied::after {
    opacity: 1;
}

/* YouTube Video */
.contest-single-video {
    margin: 30px auto;
    max-width: 800px;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.contest-single-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Back to Gallery link */
.contest-back-link {
    display: block;
    text-align: center;
    margin-top: 40px;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    font-size:26px;
}

.contest-back-link:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .contest-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .contest-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        padding: 15px;
    }
    
    .contest-card-image {
        height: 200px;
    }
    
    .contest-single-title {
        font-size: 2rem;
    }
    
    .contest-nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

 @media (max-width: 600px) {
    .contest-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}