/**
 * Pretpot Recommendation with Voicenote Widget Styles
 */

.pretpot-voice-recommendation {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Profile Section */
.pretpot-profile-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.pretpot-profile-image-wrapper {
    flex-shrink: 0;
}

.pretpot-profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Square shape */
.pretpot-profile-shape-square .pretpot-profile-image {
    border-radius: 12px;
}

.pretpot-profile-info {
    flex: 1;
    min-width: 0;
}

.pretpot-profile-name {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pretpot-profile-position {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

/* Divider */
.pretpot-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 20px 0;
}

/* Description */
.pretpot-description {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 25px 0;
    font-weight: 400;
}

/* Audio Player */
.pretpot-audio-player {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    overflow: hidden;
}

.pretpot-audio-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
}

.pretpot-audio-btn:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.25);
}

.pretpot-audio-btn:active {
    transform: scale(0.95);
}

.pretpot-audio-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: block;
}

.pretpot-audio-text {
    flex: 1;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pretpot-audio-duration {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.pretpot-audio-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0 0 0 50px;
    transition: width 0.1s linear;
}

/* Playing State */
.pretpot-audio-btn.playing {
    background: rgba(76, 175, 80, 0.4);
}

@keyframes pretpot-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
}

.pretpot-audio-btn.playing {
    animation: pretpot-pulse 1.5s infinite;
}

/* Social Links */
.pretpot-social-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.pretpot-social-btn {
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.pretpot-social-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.pretpot-social-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: block;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 480px) {
    .pretpot-voice-recommendation {
        padding: 20px;
    }

    .pretpot-profile-image {
        width: 60px;
        height: 60px;
    }

    .pretpot-profile-name {
        font-size: 18px;
    }

    .pretpot-audio-btn {
        width: 40px;
        height: 40px;
    }

    .pretpot-social-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Ensure icons are always visible */
.pretpot-audio-btn svg,
.pretpot-social-btn svg {
    opacity: 1 !important;
    visibility: visible !important;
}