/* Face of HESA CSS */

/* Hero Section */
/* Simple Header */
.simple-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.simple-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.simple-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.header-content {
    position: relative;
    z-index: 1;
}

.text-gradient {
    background: linear-gradient(45deg, #fff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.info-pill {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.info-pill:hover {
    transform: translateY(-2px);
}

.info-pill.status-active {
    background: rgba(40, 167, 69, 0.3);
    border-color: rgba(40, 167, 69, 0.4);
}

.info-pill.status-inactive {
    background: rgba(220, 53, 69, 0.3);
    border-color: rgba(220, 53, 69, 0.4);
}

.header-accent {
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #fff, #f8f9fa);
    margin: 0 auto;
    border-radius: 2px;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Responsive */
@media (max-width: 768px) {
    .simple-header .display-3 {
        font-size: 2.5rem;
    }
}
/* Contestants Section */
.contestants-section {
    padding: 3rem 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.section-heading h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.section-heading p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.voting-instructions {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.voting-instructions h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.voting-instructions ol {
    padding-left: 1.5rem;
}

.voting-instructions li {
    margin-bottom: 0.5rem;
}

.contestants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.contestant-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contestant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.contestant-image-container {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.contestant-number {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 1;
}

.contestant-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.contestant-card:hover .contestant-image {
    transform: scale(1.05);
}

.contestant-details {
    padding: 1.5rem;
    text-align: center;
}

.contestant-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

/* Simple Description Toggle */
.contestant-description-wrapper {
    margin-bottom: 1rem;
}

.contestant-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.contestant-description.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Show only 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    background: none;
    border: none;
    color: #007bff;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.read-more-btn:hover {
    color: #0056b3;
}

.read-more-btn.hidden {
    display: none;
}

.votes-counter {
    background-color: #f8f9fa;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.votes-count {
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
}

.votes-label {
    color: #666;
    font-size: 0.9rem;
    margin-left: 0.2rem;
}

.vote-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.vote-btn:hover {
    background-color: #0069d9;
}

.vote-btn.disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.no-contestants {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.no-contestants-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

/* Modal Styling */
.modal-content {
    border-radius: 10px;
    overflow: hidden;
}

.modal-header {
    background-color: #007bff;
    color: white;
}

.modal-header .btn-close {
    color: white;
}

.form-text {
    font-size: 0.85rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-details {
        flex-direction: column;
        gap: 0.7rem;
    }
    
    .contestants-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .hero {
        height: 10vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .contestant-image-container {
        height: 250px;
    }
}