/* ==========================================================
   FRASE DEL DÍA — Estilos Frontend
   ========================================================== */

.fdd-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0a1432 0%, #0d1d4a 100%);
    border-radius: 10px;
    padding: 24px 28px 18px;
    max-width: 620px;
    margin: 16px auto;
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.38);
    overflow: hidden;
    font-family: Georgia, 'Times New Roman', serif;
}

/* ---- Cabecera ---- */
.fdd-header {
    margin-bottom: 18px;
}

.fdd-logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fdd-logo-icon {
    background: rgba(255,255,255,0.12);
    border-radius: 6px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #a0b8e8;
    flex-shrink: 0;
}

.fdd-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.fdd-label-small {
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #a0b8e8;
    text-transform: lowercase;
}

.fdd-label-big {
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #ffffff;
    text-transform: uppercase;
}

/* ---- Cuerpo ---- */
.fdd-body {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
}

/* ---- Foto del editor ---- */
.fdd-editor-photo {
    flex-shrink: 0;
}

.fdd-editor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(160, 184, 232, 0.4);
    display: block;
}

.fdd-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    color: #a0b8e8;
    border: 2px solid rgba(160,184,232,0.3);
}

/* ---- Área de la frase ---- */
.fdd-quote-area {
    flex: 1;
}

.fdd-quote-text {
    margin: 0 0 10px 0;
    padding: 0;
    border: none;
    font-style: italic;
    font-size: 1.15em;
    line-height: 1.55;
    color: #e8efff;
    text-align: center;
}

.fdd-quote-author {
    margin: 0 0 4px 0;
    text-align: center;
    font-style: italic;
    font-size: 1.05em;
    color: #ffffff;
}

.fdd-quote-author strong {
    font-style: normal;
    font-size: 1.1em;
}

.fdd-quote-extra {
    margin: 0;
    text-align: center;
    font-size: 0.82em;
    color: #a0b8e8;
    font-style: normal;
    font-family: Arial, sans-serif;
}

/* ---- Pie ---- */
.fdd-footer {
    margin-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 10px;
    font-family: Arial, sans-serif;
    font-size: 0.8em;
    color: #a0b8e8;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.fdd-editor-sep {
    opacity: 0.5;
}

.fdd-fecha {
    margin-left: auto;
}

/* ---- Mensaje sin frase ---- */
.fdd-no-frase {
    padding: 12px 16px;
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 520px) {
    .fdd-card {
        padding: 18px 16px 14px;
        border-radius: 8px;
    }

    .fdd-body {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .fdd-editor-avatar,
    .fdd-avatar-placeholder {
        width: 64px;
        height: 64px;
    }

    .fdd-quote-text {
        font-size: 1em;
    }

    .fdd-label-big {
        font-size: 13px;
    }

    .fdd-footer {
        justify-content: center;
    }

    .fdd-fecha {
        margin-left: 0;
    }
}

/* ==========================================================
   SECCIÓN COMPARTIR EN REDES
   ========================================================== */

.fdd-share {
    margin-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 12px;
}

.fdd-share-label {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7a9ccc;
    margin-bottom: 8px;
}

.fdd-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.fdd-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px 5px 9px;
    border-radius: 20px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: opacity 0.18s, transform 0.12s;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.fdd-share-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    text-decoration: none;
}

.fdd-share-btn svg {
    flex-shrink: 0;
}

/* Colores individuales */
.fdd-share-x       { background: #000;    color: #fff; }
.fdd-share-fb      { background: #1877f2; color: #fff; }
.fdd-share-wa      { background: #25d366; color: #fff; }
.fdd-share-tg      { background: #2aabee; color: #fff; }
.fdd-share-copy    { background: rgba(255,255,255,0.15); color: #e8efff; border: 1px solid rgba(255,255,255,0.2); }
.fdd-share-copy:hover { background: rgba(255,255,255,0.25); }

/* Crédito */
.fdd-share-credit {
    margin: 8px 0 0;
    font-family: Arial, sans-serif;
    font-size: 11px;
    color: #7a9ccc;
}
.fdd-share-credit strong { color: #a0b8e8; }
.fdd-share-credit a { color: #a0b8e8; text-decoration: underline; }
.fdd-share-credit a:hover { color: #fff; }

/* Responsive compartir */
@media (max-width: 520px) {
    .fdd-share-buttons { gap: 5px; }
    .fdd-share-btn { font-size: 11px; padding: 4px 9px 4px 7px; }
}
