/**
 * WP 3D FlipBook Frontend Styles
 */

/* Container */
.wp3dfb-container {
    margin: 20px 0;
}

/* Title */
.wp3dfb-title {
    margin: 0 0 15px;
    font-size: 1.4em;
    font-weight: 600;
}

/* FlipBook */
.wp3dfb-book {
    width: 100%;
    min-height: 400px;
    position: relative;
}

/* Actions */
.wp3dfb-actions {
    margin-top: 15px;
    text-align: center;
}

.wp3dfb-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s ease;
}

.wp3dfb-download-btn:hover {
    background: #005a87;
    color: #fff;
}

.wp3dfb-download-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Error Message */
.wp3dfb-error {
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
}

/* Loading State */
.wp3dfb-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: #f5f5f5;
}

.wp3dfb-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid #ddd;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: wp3dfb-spin 0.8s linear infinite;
}

@keyframes wp3dfb-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .wp3dfb-book {
        min-height: 300px;
    }
    
    .wp3dfb-download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    .wp3dfb-error {
        background: #332701;
        border-color: #665200;
        color: #ffc107;
    }
}
