<?php
    $image  = $args['image'] ?? '';
    $title  = $args['title'] ?? '';
    $link   = $args['link']  ?? '#';
    $acf    = $args['acf']   ?? '';
?>

<article class="podcast-card">
    <div class="card-img">
        <img src="<?php echo $image; ?>" alt="">
    </div>
    
    <div class="card-head">
        <div class="card-head--img">
            <img src="/wp-content/uploads/2025/10/Headphones.svg" alt="">
        </div>
        <ul class="card-head--attr">
            <li>
                <span>Czas trwania: <?php echo $acf; ?></span>
            </li>
            <li>
                <span><?php echo get_the_date('j F Y'); ?></span>
            </li>
        </ul>
    </div>
    <div class="card-body">
        <h2>
            <a href="<?php echo $link; ?>"><?php echo $title; ?></a>
        </h2>
    </div>
    <div class="card-footer">
        <div class="card-footer--nav">
            <a href="<?php echo $link; ?>" class="btn-1">
                <img src="/wp-content/uploads/2025/10/Vector.svg" alt="">
                <span>Posłuchaj tego odcinka</span>
            </a>
        </div>
        <div class="audio-player">
        </div>
    </div>
</article>