/**
 * PoddSite Common Styles
 * 
 * Shared styles used across all PoddSites and the builder
 * These are global utilities that blocks can rely on
 */

/* ========================================
   UNIFIED PLATFORM MODAL STYLES
   Used by: hero_header, hero_mockup, episode_list
   ======================================== */
.platform-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
}

.platform-modal.active {
    display: flex;
}

.platform-modal-content {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.platform-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #e1e5e9;
}

.platform-modal-header h3,
.platform-modal-header label {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.platform-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.platform-modal-close:hover {
    background: #f0f0f0;
    color: #1a1a1a;
}

.platform-modal-body {
    padding: 8px 24px 24px 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.platform-modal-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.platform-modal-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px;
    text-decoration: none;
    color: #1a1a1a;
    border-radius: 12px;
}

.platform-modal-link:hover {
    background: rgba(255, 255, 255, 0.3)
}

.platform-modal-link img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.platform-modal-link .platform-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.platform-modal-link span {
    flex: 1;
    font-weight: 500;
    font-size: 16px;
}

.platform-modal-link .platform-arrow {
    font-size: 18px;
    color: #666;
    transition: transform 0.2s ease;
}

.platform-modal-link:hover .platform-arrow {
    transform: translateX(4px);
}

/* Responsive Design for Modals */
@media (max-width: 768px) {
    .platform-modal-content {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .platform-modal-header {
        padding: 20px 20px 16px 20px;
    }
    
    .platform-modal-body {
        padding: 8px 20px 20px 20px;
    }
    
    .platform-modal-link {
        padding: 14px;
        gap: 12px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .platform-modal-link span {
        font-size: 15px;
    }
}




.block-header {
    margin: 0 0 3rem 0;
}