.iframe-embed-wrapper {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.iframe-embed-wrapper:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.iframe-embed-container {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
    background: #f8f9fa;
}

.iframe-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}

.iframe-embed-controls {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px 0;
    border: none;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.iframe-embed-controls button {
    background: rgba(255,255,255,0.9);
    color: #333;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 70px;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.iframe-embed-controls button:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.iframe-embed-controls button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.iframe-embed-controls button .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* 预设模板样式 */
.youtube-embed {
    border-left: 4px solid #ff0000;
}

.vimeo-embed {
    border-left: 4px solid #1ab7ea;
}

.google-maps-embed {
    border-left: 4px solid #4285f4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .iframe-embed-controls {
        padding: 10px 0;
        gap: 8px;
    }
    
    .iframe-embed-controls button {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 60px;
    }
    
    .iframe-embed-controls button .dashicons {
        font-size: 12px;
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .iframe-embed-controls {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
    
    .iframe-embed-controls button {
        width: 80%;
        max-width: 200px;
    }
}

/* 加载状态 */
.iframe-embed-container.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 错误状态 */
.iframe-embed-error {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f8f9fa;
    color: #6c757d;
    text-align: center;
    min-height: 200px;
}

.iframe-embed-error .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    color: #dc3545;
}

/* 全屏模式样式 */
.iframe-embed-wrapper.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    margin: 0;
    border-radius: 0;
}

.iframe-embed-wrapper.fullscreen .iframe-embed-container {
    height: 100vh;
    padding-bottom: 0;
}

.iframe-embed-wrapper.fullscreen .iframe-embed-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    border-radius: 20px;
    padding: 8px;
    z-index: 1000000;
}

.iframe-embed-wrapper.fullscreen .iframe-embed-controls button {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 15px;
    padding: 6px 12px;
    font-size: 12px;
}

.iframe-embed-wrapper.fullscreen .iframe-embed-controls button:hover {
    background: rgba(255,255,255,0.3);
}

/* 暗色主题支持 */
@media (prefers-color-scheme: dark) {
    .iframe-embed-container {
        background: #2d3748;
    }
    
    .iframe-embed-controls {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    }
    
    .iframe-embed-controls button {
        background: rgba(255,255,255,0.1);
        color: #e2e8f0;
    }
    
    .iframe-embed-controls button:hover {
        background: rgba(255,255,255,0.2);
    }
} 