/* Wisewand Plugin Frontend Styles */

/* Audio Player Styling */
.wisewand-audio-player {
    margin: 20px 0 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid #2271b1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wisewand-audio-player h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    display: flex;
    align-items: center;
}

.wisewand-audio-player h3 span {
    font-size: 20px;
    margin-right: 8px;
}

.wisewand-audio-player audio {
    width: 100%;
    max-width: 100%;
    border-radius: 6px;
    outline: none;
}

.wisewand-audio-player audio:focus {
    box-shadow: 0 0 0 2px #2271b1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wisewand-audio-player {
        margin: 15px 0 20px 0;
        padding: 15px;
        border-radius: 8px;
    }

    .wisewand-audio-player h3 {
        font-size: 14px;
    }

    .wisewand-audio-player h3 span {
        font-size: 18px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .wisewand-audio-player {
        background: linear-gradient(135deg, #2c3338 0%, #1d2327 100%);
        color: #f0f0f1;
        border-left-color: #3858e9;
    }

    .wisewand-audio-player h3 {
        color: #f0f0f1;
    }
}

/* Print styles */
@media print {
    .wisewand-audio-player {
        display: none;
    }
}

/* Accessibility improvements */
.wisewand-audio-player audio[controls] {
    background: #ffffff;
}

.wisewand-audio-player p {
    margin: 10px 0 0 0;
    padding: 10px;
    background: #fff3cd;
    border-radius: 4px;
    color: #856404;
    font-size: 14px;
}

.wisewand-audio-player a {
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
}

.wisewand-audio-player a:hover {
    text-decoration: underline;
}

/* Integration with common themes */
.entry-content .wisewand-audio-player,
.post-content .wisewand-audio-player,
.content .wisewand-audio-player {
    margin-top: 0; /* Remove top margin when it's the first element */
}

.wisewand-audio-player + p,
.wisewand-audio-player + div,
.wisewand-audio-player + h2,
.wisewand-audio-player + h3 {
    margin-top: 20px; /* Ensure proper spacing after audio player */
}