/* Estilos do Plugin Promoções e Concursos - Integrado ao Design do Site */

* {
    box-sizing: border-box;
}

/* Container Principal */
#pc-form-container,
#pc-voting-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Bould Regular Webfont', sans-serif;
}

/* Títulos seguindo o padrão do site */
.pc-main-title {
    color: #4f4898;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Bould Bold Webfont', sans-serif;
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.2;
}

.pc-subtitle {
    color: #222;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Bould Bold Webfont', sans-serif;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.2;
}

/* Formulário de Inscrição */
#pc-inscription-form {
    background: #fff;
    border-radius: 1rem;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

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

.pc-form-group label {
    display: block;
    color: #222;
    font-weight: 700;
    font-family: 'Bould Bold Webfont', sans-serif;
    margin-bottom: 8px;
    font-size: 1rem;
}

.pc-form-group input[type="text"],
.pc-form-group input[type="email"],
.pc-form-group input[type="tel"],
.pc-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ececec;
    border-radius: 1rem;
    font-size: 16px;
    font-family: 'Bould Regular Webfont', sans-serif;
    background: white;
    transition: border-color 0.3s ease;
}

.pc-form-group input:focus,
.pc-form-group textarea:focus {
    outline: none;
    border-color: #4f4898;
    box-shadow: 0 0 0 3px rgba(79, 72, 152, 0.1);
}

.pc-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Upload de Arquivo */
.pc-content-upload {
    margin-bottom: 15px;
}

.pc-upload-area {
    width: 100%;
    padding: 40px 20px;
    border: 2px dashed #ececec;
    border-radius: 1rem;
    background: white;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pc-upload-area:hover {
    border-color: #4f4898;
    background: rgba(79, 72, 152, 0.05);
}

.pc-upload-text {
    color: #222;
    font-size: 14px;
    font-family: 'Bould Regular Webfont', sans-serif;
}

/* Preview de Mídia */
.pc-preview-container {
    text-align: center;
}

#pc-media-preview img,
#pc-media-preview video {
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Contador de Caracteres */
.pc-char-counter {
    display: block;
    text-align: right;
    color: #666;
    font-size: 12px;
    margin-top: 4px;
    font-family: 'Bould Regular Webfont', sans-serif;
}

.pc-char-counter.pc-warning {
    color: #e74c3c;
}

/* Info da Promoção */
.pc-promo-info {
    display: block;
    color: #4f4898;
    font-size: 12px;
    text-align: center;
    margin-top: 10px;
    font-family: 'Bould Regular Webfont', sans-serif;
}

/* Botão de Submissão - Seguindo padrão do site */
.pc-submit-button {
    width: 100%;
    background-color: #4f4898;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Bould Bold Webfont', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.pc-submit-button:hover:not(:disabled) {
    opacity: 0.8;
    transform: translateY(-2px);
}

.pc-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Mensagens */
.pc-error {
    background: #fff5f5;
    color: #e74c3c;
    padding: 15px 20px;
    border-radius: 1rem;
    border-left: 5px solid #e74c3c;
    margin-bottom: 20px;
    font-family: 'Bould Regular Webfont', sans-serif;
}

.pc-error ul {
    margin: 0;
    padding-left: 20px;
}

.pc-error li {
    margin: 5px 0;
}

.pc-success {
    background: #f0fff4;
    color: #27ae60;
    padding: 12px 16px;
    border-radius: 1rem;
    border-left: 5px solid #27ae60;
    margin-bottom: 20px;
    font-family: 'Bould Regular Webfont', sans-serif;
}

/* Tela de Sucesso */
#pc-success-message {
    text-align: center;
    padding: 60px 20px;
}

.pc-success-content h2 {
    color: #4f4898;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Bould Bold Webfont', sans-serif;
    margin-bottom: 20px;
    line-height: 1.2;
}

.pc-success-content p {
    color: #222;
    font-size: 1.2rem;
    font-family: 'Bould Regular Webfont', sans-serif;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Ícone de Coração */
.pc-heart-icon {
    width: 80px;
    height: 80px;
    margin: 30px auto;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%234f4898" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.682l-1.318-1.364a4.5 4.5 0 00-6.364 0z" /></svg>') no-repeat center;
    background-size: contain;
}

/* Sistema de Votação */
#pc-voting-container {
    background: white;
    border-radius: 1rem;
    padding: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.pc-voting-title {
    color: #4f4898;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Bould Bold Webfont', sans-serif;
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.2;
}

.pc-voting-subtitle {
    color: #222;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Bould Bold Webfont', sans-serif;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

/* Cards dos Participantes */
.pc-participants-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pc-participant-card {
    display: flex;
    background: #fff;
    border-radius: 1rem;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pc-participant-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.pc-participant-card.voted {
    background: rgba(79, 72, 152, 0.05);
    border: 2px solid #4f4898;
    cursor: default;
}

.pc-participant-media {
    width: 120px;
    height: 120px;
    border-radius: 1rem;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 20px;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
}

.pc-participant-media:hover {
    transform: scale(1.05);
}

.pc-participant-media img,
.pc-participant-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pc-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    pointer-events: none;
}

.pc-participant-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pc-participant-name {
    color: #222;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Bould Bold Webfont', sans-serif;
    margin-bottom: 8px;
}

.pc-participant-phrase {
    color: #666;
    font-size: 14px;
    font-family: 'Bould Regular Webfont', sans-serif;
    line-height: 1.5;
    margin-bottom: 12px;
}

.pc-vote-count {
    color: #4f4898;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Bould Bold Webfont', sans-serif;
}

/* Botão de Voto */
.pc-vote-button {
    background-color: #4f4898;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 1rem;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Bould Bold Webfont', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 8px;
}

.pc-vote-button:hover:not(:disabled) {
    opacity: 0.8;
    transform: translateY(-1px);
}

.pc-vote-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Status de Votação */
.pc-voting-status {
    text-align: center;
    padding: 20px;
    background: #f0fff4;
    border-radius: 1rem;
    margin-bottom: 30px;
    border-left: 5px solid #27ae60;
}

.pc-voting-status.voted {
    background: rgba(79, 72, 152, 0.05);
    border-left: 5px solid #4f4898;
}

.pc-voting-status h4 {
    color: #27ae60;
    font-family: 'Bould Bold Webfont', sans-serif;
    font-weight: 700;
    margin-bottom: 8px;
}

.pc-voting-status.voted h4 {
    color: #4f4898;
}

.pc-voting-status p {
    font-family: 'Bould Regular Webfont', sans-serif;
    color: #666;
}

.pc-no-participants {
    text-align: center;
    padding: 40px;
    color: #666;
    font-family: 'Bould Regular Webfont', sans-serif;
}

/* Responsividade */
@media (max-width: 768px) {
    #pc-form-container,
    #pc-voting-container {
        padding: 15px;
    }
    
    #pc-inscription-form {
        padding: 20px;
    }
    
    .pc-main-title,
    .pc-voting-title {
        font-size: 2rem;
    }
    
    .pc-subtitle,
    .pc-voting-subtitle {
        font-size: 1rem;
    }
    
    .pc-participant-card {
        flex-direction: column;
        text-align: center;
    }
    
    .pc-participant-media {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .pc-participant-info {
        align-items: center;
    }
}

/* Painel Administrativo */
.pc-admin-container {
    background: white;
    padding: 20px;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.pc-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.pc-admin-title {
    color: #222;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Bould Bold Webfont', sans-serif;
    margin: 0;
    line-height: 1.2;
}

.pc-admin-button {
    background-color: #4f4898;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 1rem;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Bould Bold Webfont', sans-serif;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.pc-admin-button:hover {
    opacity: 0.8;
    color: white;
    transform: translateY(-1px);
}

.pc-admin-button.secondary {
    background: #666;
}

.pc-admin-button.secondary:hover {
    background: #555;
}

/* Tabela de Participantes */
.pc-participants-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: 'Bould Regular Webfont', sans-serif;
}

.pc-participants-table th,
.pc-participants-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.pc-participants-table th {
    background: #f8f9fa;
    font-weight: 700;
    font-family: 'Bould Bold Webfont', sans-serif;
    color: #222;
}

.pc-participants-table tr:hover {
    background: #f8f9fa;
}

.pc-status-badge {
    padding: 4px 8px;
    border-radius: 1rem;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Bould Bold Webfont', sans-serif;
}

.pc-status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.pc-status-badge.approved {
    background: #d4edda;
    color: #155724;
}

.pc-status-badge.rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Ações em lote */
.pc-bulk-actions {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.pc-bulk-actions select {
    padding: 8px 12px;
    border: 1px solid #ececec;
    border-radius: 1rem;
    font-family: 'Bould Regular Webfont', sans-serif;
}

/* Controles de votação */
.pc-voting-controls {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 1rem;
    margin-bottom: 30px;
    border-left: 5px solid #4f4898;
}

/* Estatísticas */
.pc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.pc-stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 1rem;
    text-align: center;
    border-left: 5px solid #4f4898;
}

.pc-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Bould Bold Webfont', sans-serif;
    color: #4f4898;
    margin-bottom: 8px;
    line-height: 1.2;
}

.pc-stat-label {
    color: #666;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Bould Bold Webfont', sans-serif;
}

/* Ações rápidas */
.pc-admin-actions {
    margin-bottom: 30px;
}

.pc-admin-actions h2 {
    margin-bottom: 15px;
    font-family: 'Bould Bold Webfont', sans-serif;
    color: #222;
}

/* Info dos shortcodes */
.pc-shortcodes-info {
    background: rgba(79, 72, 152, 0.05);
    padding: 20px;
    border-radius: 1rem;
    border-left: 5px solid #4f4898;
}

.pc-shortcodes-info h2 {
    color: #4f4898;
    font-family: 'Bould Bold Webfont', sans-serif;
    margin-bottom: 15px;
}

.pc-shortcodes-info p {
    font-family: 'Bould Regular Webfont', sans-serif;
    color: #666;
}

.pc-shortcodes-info code {
    background: rgba(79, 72, 152, 0.1);
    padding: 4px 8px;
    border-radius: 0.5rem;
    font-family: monospace;
    color: #4f4898;
    font-weight: 700;
}

