/* General Overrides to Hide Themes Default Elements on Single President Page */
.single-president aside,
.single-president #secondary,
.single-president .sidebar,
.single-president #sidebar,
.single-president .widget-area {
    display: none !important;
}

.single-president #primary,
.single-president #content,
.single-president .site-main,
.single-president .content-area {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

.single-president .post-thumbnail,
.single-president .wp-post-image,
.single-president .entry-thumbnail,
.single-president .ast-post-thumbnail {
    display: none !important;
}

.single-president .entry-content,
.single-president .ast-entry-content {
    max-width: 1200px !important;
    margin: 0 auto;
}

/* Base Premium Styles */
.pv-voting-wrapper {
    margin-top: 40px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    font-family: 'Inter', 'Roboto', sans-serif;
    color: #2d3748;
    border: 1px solid rgba(255,255,255,0.4);
}

.pv-hero-section {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    border: 1px solid #edf2f7;
    flex-wrap: wrap;
    font-family: 'Inter', 'Roboto', sans-serif;
}

.pv-hero-image img {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 6px solid #fff;
}

.pv-hero-content {
    flex: 1;
    min-width: 280px;
    font-size: 18px;
    line-height: 1.8;
    color: #4a5568;
}

.pv-section-title {
    text-align: center;
    margin-bottom: 40px !important;
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #2d3748;
}

.pv-single-flag {
    height: 40px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.pv-voting-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media(min-width: 768px) {
    .pv-voting-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.pv-single-col-wrapper .pv-voting-grid {
    grid-template-columns: 1fr !important;
}

.pv-voting-col {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.pv-voting-col h3 {
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    text-align: center;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 15px;
}

/* Speedometer CSS Integrations */
.pv-speedometer-container {
    width: 100%;
    max-width: 250px;
    margin: 0 auto 10px;
    position: relative;
    text-align: center;
}

.pv-speedometer-svg {
    width: 100%;
    display: block;
}

.pv-meter-animated {
    transition: stroke-dashoffset 2s cubic-bezier(0.2, 1, 0.3, 1);
}

.pv-speedometer-value {
    margin-top: -30px;
    font-size: 32px;
    font-weight: 800;
}

.pv-meter-labels {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 30px;
}

.pv-green { color: #38a169; }
.pv-red { color: #e53e3e; }
.pv-blue { color: #3182ce; }
.pv-orange { color: #dd6b20; }

/* Form Styles */
.pv-form-container {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 30px;
}

.pv-form-container h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #4a5568;
    text-align: center;
}

.pv-form-group {
    margin-bottom: 15px;
}

.pv-form-group input,
.pv-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.pv-form-group input:focus,
.pv-form-group textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
    outline: none;
}

.pv-vote-toggles {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.pv-radio-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.pv-radio-btn input {
    display: none;
}
.pv-radio-btn:hover {
    background: #f7fafc;
}

.pv-good-btn.selected { border-color: #48bb78; background: #f0fff4; color: #38a169; }
.pv-bad-btn.selected { border-color: #f56565; background: #fff5f5; color: #e53e3e; }

.pv-voting-col:nth-child(2) .pv-good-btn.selected { border-color: #4299e1; background: #ebf8ff; color: #3182ce; }
.pv-voting-col:nth-child(2) .pv-bad-btn.selected { border-color: #ed8936; background: #fffaf0; color: #dd6b20; }

.pv-submit-btn {
    background: #48bb78;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s, transform 0.1s;
}
.pv-submit-btn:hover { opacity: 0.9; }
.pv-submit-btn:active { transform: scale(0.98); }

.pv-honeypot { display: none !important; }

/* Comments */
.pv-comments-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}
.pv-comments-list::-webkit-scrollbar { width: 6px; }
.pv-comments-list::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 10px; }

.pv-comment-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 18px;
    margin-bottom: 12px;
    border-radius: 8px;
    transition: transform 0.2s;
}
.pv-comment-box:hover {
    transform: translateX(4px);
}
.pv-cb-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #4a5568;
}
.pv-comment-box p {
    margin: 0;
    font-size: 14px;
    color: #718096;
    line-height: 1.6;
}
.pv-no-comments {
    color: #a0aec0;
    font-style: italic;
    font-size: 15px;
    text-align: center;
}

/* Card Grid Styles (Top Presidents / All Presidents) */
.pv-presidents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}
.pv-president-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}
.pv-president-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    z-index: 2;
}
.pv-card-img {
    position: relative;
    overflow: hidden;
}
.pv-card-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}
.pv-card-img img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.5s;
}
.pv-president-card:hover .pv-card-img img {
    transform: scale(1.05);
}
.pv-card-body {
    padding: 25px;
    background: #ffffff;
    border-radius: 0 0 20px 20px;
}
.pv-card-title {
    margin: 0 0 8px 0 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
}
.pv-card-title a { color: #1a202c !important; text-decoration: none !important; transition: color 0.2s; }
.pv-card-title a:hover { color: #3182ce !important; text-decoration: none !important; }

.pv-card-country {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #4a5568;
    background: #f7fafc;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid #edf2f7;
}
.pv-card-flag {
    width: 24px;
    height: 18px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.pv-card-mini-meter { 
    margin-bottom: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: 12px;
}
.pv-mini-label {
    font-size: 13px;
    font-weight: 700;
    color: #4a5568;
}
.pv-mini-label span { color: #718096; margin-left: 5px; font-weight: 800; }

.pv-gauge-mini {
    width: 45px;
    height: 22.5px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* All Countries Simple List */
.pv-countries-wrapper {
    margin-bottom: 40px;
}
.pv-countries-header {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #edf2f7;
    margin-bottom: 25px;
}
.pv-search-box {
    position: relative;
    margin-bottom: 20px;
}
.pv-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}
#pv-country-search {
    width: 100%;
    padding: 15px 15px 15px 45px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    box-sizing: border-box;
}
#pv-country-search:focus {
    border-color: #4299e1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}
.pv-alpha-filter {
    display: flex;
    justify-content: center;
}
.pv-alpha-select {
    width: 100%;
    max-width: 300px;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f7fafc;
    color: #4a5568;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.pv-alpha-select:focus {
    border-color: #4299e1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
    background-color: #ffffff;
}

.pv-countries-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    padding: 20px 0;
}
.pv-country-card-item {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.pv-country-card-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(66, 153, 225, 0.15);
    border-color: rgba(66, 153, 225, 0.3);
}
.pv-cc-flag-wrap {
    width: 100%;
    height: 140px;
    background: #edf2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.pv-cc-flag-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.pv-country-card-item:hover .pv-cc-flag-img {
    transform: scale(1.1);
}
.pv-cc-flag-placeholder {
    color: #a0aec0;
    font-weight: 600;
    font-size: 14px;
}
.pv-cc-title {
    padding: 20px 15px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 30%);
}
