/* 
 * Voting Plugin Frontend Styles
 */

.vp-contestant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.vp-contestant-card {
    position: relative;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.vp-contestant-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.vp-stretched-link {
    color: inherit;
    text-decoration: none;
}

.vp-stretched-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.vp-card-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.vp-vote-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    padding: 20px 15px 10px;
    text-align: left;
}

.vp-vote-count {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffd700;
    /* Gold */
}

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

.vp-card-content h3 {
    margin: 0 0 5px;
    font-size: 1.25rem;
    color: #333;
}

.vp-nickname {
    font-style: italic;
    color: #666;
    margin-bottom: 15px;
}

.vp-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.vp-vote-btn {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #09a5db;
    /* Paystack Blue */
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 1rem;
}

.vp-vote-btn:hover {
    background: #0686b2;
}

/* Modal Stylings */
.vp-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.vp-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.vp-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.vp-modal h2 {
    margin: 0 0 20px;
    text-align: center;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.vp-total-display {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.vp-total-display strong {
    color: #28a745;
}

.vp-pay-btn {
    width: 100%;
    padding: 15px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.vp-pay-btn:active {
    transform: scale(0.98);
}

/* Single Contestant Page Details Layout */
.vp-single-contestant-wrapper {
    max-width: 900px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
    overflow: hidden;
}

.vp-single-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 768px) {
    .vp-single-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

.vp-single-image-col {
    position: relative;
    width: 100%;
}

.vp-single-image {
    width: 100%;
    padding-top: 100%;
    /* 1:1 Aspect Ratio on mobile/desktop */
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.5s ease;
}

@media (min-width: 768px) {
    .vp-single-image {
        height: 100%;
        padding-top: 0;
        min-height: 500px;
    }
}

.vp-single-image:hover {
    transform: scale(1.02);
}

.vp-single-vote-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
    color: #ffffff;
    padding: 40px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.vp-single-vote-badge .vp-vote-count {
    font-size: 3rem;
    font-weight: 900;
    color: #ffd700;
    /* Gold */
    line-height: 1;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.vp-single-vote-badge .vp-badge-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    opacity: 0.95;
    margin-top: 6px;
}

.vp-single-info-col {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .vp-single-info-col {
        padding: 45px;
    }
}

.vp-single-header {
    margin-bottom: 25px;
}

.vp-contest-tag {
    display: inline-block;
    background: rgba(9, 165, 219, 0.08);
    color: #09a5db;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.vp-single-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 8px;
    color: #1a1a1a;
    line-height: 1.25;
}

.vp-single-nickname {
    font-size: 1.2rem;
    font-style: italic;
    color: #626262;
    margin: 0;
}

.vp-single-details {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    gap: 30px;
}

.vp-detail-item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vp-detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #718096;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
    font-weight: 700;
}

.vp-detail-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2d3748;
}

.vp-action-container {
    margin-bottom: 30px;
}

.vp-single-vote-btn {
    font-size: 1.15rem;
    padding: 16px 32px;
    border-radius: 50px;
    background: linear-gradient(135deg, #09a5db 0%, #0686b2 100%);
    box-shadow: 0 8px 24px rgba(9, 165, 219, 0.35);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.vp-single-vote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(9, 165, 219, 0.45);
    background: linear-gradient(135deg, #0ab1eb 0%, #0796c7 100%);
}

.vp-btn-icon {
    font-size: 1.3rem;
}

/* Sharing Section CSS */
.vp-share-container {
    margin-top: 10px;
    padding-top: 30px;
    border-top: 1px solid #edf2f7;
}

.vp-share-container h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #2d3748;
}

.vp-share-container p {
    font-size: 0.85rem;
    color: #718096;
    margin: 0 0 20px;
    line-height: 1.5;
}

.vp-share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 480px) {
    .vp-share-buttons {
        grid-template-columns: repeat(4, 1fr);
    }
}

.vp-share-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none !important;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.vp-share-button:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.vp-share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    transition: background 0.2s ease, color 0.2s ease;
}

/* Social Customizations */
.vp-share-copy:hover .vp-share-icon {
    background: #e2e8f0;
    color: #1e293b;
}

.vp-share-whatsapp:hover {
    color: #25D366;
    border-color: #c6f6d5;
    background: #f0fff4;
}

.vp-share-whatsapp:hover .vp-share-icon {
    background: #c6f6d5;
    color: #25D366;
}

.vp-share-twitter:hover {
    color: #1a1a1a;
    border-color: #e2e8f0;
    background: #f8fafc;
}

.vp-share-twitter:hover .vp-share-icon {
    background: #e2e8f0;
    color: #1a1a1a;
}

.vp-share-facebook:hover {
    color: #1877F2;
    border-color: #bee3f8;
    background: #ebf8ff;
}

.vp-share-facebook:hover .vp-share-icon {
    background: #bee3f8;
    color: #1877F2;
}

/* Clipboard Feedback State */
.vp-share-copy.vp-copied {
    background: #ebf8ff;
    border-color: #90cdf4;
    color: #2b6cb0;
}

.vp-share-copy.vp-copied .vp-share-icon {
    background: #bee3f8;
    color: #2b6cb0;
}

/* Search field styles */
.vp-search-container {
    margin: 20px 0 40px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.vp-search-wrapper {
    display: flex;
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    align-items: stretch;
}

.vp-search-wrapper:focus-within {
    border-color: #09a5db;
    box-shadow: 0 10px 25px rgba(9, 165, 219, 0.12);
}

.vp-search-wrapper input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 10px 15px !important;
    font-size: 0.95rem;
    color: #2d3748;
    outline: none !important;
    box-shadow: none !important;
    height: auto !important;
    margin: 0 !important;
}

.vp-search-wrapper input::placeholder {
    color: #a0aec0;
}

.vp-search-btn {
    background: #09a5db;
    color: #ffffff;
    border: none !important;
    padding: 0 20px !important;
    border-radius: 50px !important;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s ease;
    font-size: 0.9rem;
    height: auto !important;
    margin: 0;
    white-space: nowrap;
}

.vp-search-btn:hover {
    background: #0686b2;
}

.vp-search-btn span {
    font-size: 1.1rem;
}