@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

.comentarios-gemini-wrapper {
    border-radius: 0;
    width: 100%;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

#comentarios-gemini-form-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#comentarios-gemini-form-container h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.8em;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

#comentarios-gemini-form-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

#comentarios-gemini-form-container h2 .fa-comments,
#comentarios-gemini-form-container h2 .fa-reply {
    color: #e74c3c;
    margin-right: 10px;
}

#comentarios-gemini-form-container p {
    text-align: center;
    color: #7f8c8d;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 1.05em;
}

.comgem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 768px) {
    .comgem-grid {
        grid-template-columns: 1fr 1fr;
    }
    .comgem-grid .comgem-col-full {
        grid-column: 1 / -1;
    }
}

.comgem-col label, .comgem-col-full label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95em;
}

.comgem-col .required, .comgem-col-full .required {
    color: #e74c3c;
    margin-left: 4px;
}

.comgem-col input[type="text"],
.comgem-col-full input[type="text"],
.comgem-col-full textarea {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-size: 1em;
    background: #f8f9fa;
}

.comgem-col input[type="text"]:focus,
.comgem-col-full input[type="text"]:focus,
.comgem-col-full textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
    background: #fff;
}

.shortcut-buttons {
    margin-bottom: 15px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.shortcut-btn {
    background: linear-gradient(145deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 0.9rem;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.shortcut-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
}

.image-preview, .thumbnail-preview, .video-preview {
    margin-top: 15px;
    width: 100%;
    border-radius: 10px;
    display: none;
    gap: 12px;
    padding: 15px;
}

.image-preview, .thumbnail-preview {
    border: 2px dashed #bdc3c7;
    background: #f8f9fa;
    flex-wrap: wrap;
}

.video-preview {
    border: none;
    background: transparent;
    padding: 0;
}

.thumbnail-preview.has-image {
    display: flex;
    border-color: #3498db;
    background: #f1f8ff;
}

.image-preview img, .thumbnail-preview img {
    max-width: 100px;
    max-height: 100px;
    height: auto;
    width: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.video-preview video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.media-box {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.media-box h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
}

#waveform {
    margin-bottom: 20px;
    height: 100px;
    border-radius: 8px;
    background: rgba(236, 240, 241, 0.5);
}

.comgem-video-preview-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto 20px auto;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    aspect-ratio: 9 / 16;
}

@media (min-width: 768px) {
    .comgem-video-preview-wrapper {
        max-width: 270px;
    }
}

.comgem-video-preview-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.controls button {
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-size: 1.2em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#comgem-submit-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.25em;
    font-weight: 700;
    background: linear-gradient(145deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
    position: relative;
}

#comgem-submit-btn .spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    width: 24px;
    height: 24px;
    animation: spin 1s ease-in-out infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

.custom-file-upload .file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border: 2px dashed #bdc3c7;
    border-radius: 10px;
    cursor: pointer;
    color: #7f8c8d;
    font-weight: 500;
    gap: 10px;
}

.comgem-video-aspect-wrapper {
    position: relative !important;
    width: 100% !important;
    max-width: 320px !important;
    height: auto !important;
    margin: 25px auto !important;
    background-color: #000 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
    aspect-ratio: 9 / 16 !important;
}

.comgem-video-aspect-wrapper video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.comgem-comments-area {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.comgem-comments-area h3 {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: #333;
}

.comgem-comment-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.comgem-comment-author {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #555;
}

.comgem-comment-content p:first-child {
    margin-top: 0;
}

.comgem-comment-content p:last-child {
    margin-bottom: 0;
}

.comgem-comment-actions {
    margin-top: 15px;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

.comgem-reply-btn, .comgem-cancel-reply-btn {
    background-color: #f0f2f5;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    color: #555;
    transition: all 0.2s ease;
}

.comgem-reply-btn i {
    margin-right: 5px;
}

.comgem-reply-btn:hover, .comgem-cancel-reply-btn:hover {
    background-color: #e4e6e9;
    border-color: #bbb;
}

.comgem-cancel-reply-btn {
    background-color: #ffebee;
    border-color: #ffcdd2;
    color: #c62828;
    margin-left: 10px;
}

.comgem-comment-replies {
    margin-left: 20px;
    padding-left: 20px;
    border-left: 2px solid #e0e6ed;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .comgem-comment-replies {
        margin-left: 40px;
        padding-left: 25px;
    }
}

#comgem-response {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

#comgem-response.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

#comgem-response.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* --- INCIO DAS NOVAS REGRAS DE CORREO --- */

/* CORREO 1: Ajusta o tamanho do cone de comentrios no ttulo do formulrio */
#comentarios-gemini-form-container h2 .fa-comments {
    font-size: 1.5rem;
    vertical-align: -2px;
}

/* CORREO 2: Ajusta o tamanho das imagens (emojis) dentro dos botes de atalho */
.shortcut-btn img.emoji {
    width: 1.3em !important;
    height: 1.3em !important;
    vertical-align: middle !important;
}

/* --- FIM DAS NOVAS REGRAS DE CORREO --- */