/**
 * CardCrafter Styles
 * Beautiful, responsive card layouts
 *
 * @version 1.13.0
 *
 * WCAG 2.1 AA Accessibility Features:
 * - High contrast focus indicators
 * - Screen reader utility classes
 * - Focus-visible states for keyboard navigation
 * - Skip link support
 * - Reduced motion support
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --cardcrafter-card-bg: #ffffff;
    --cardcrafter-card-border: #e5e7eb;
    --cardcrafter-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --cardcrafter-card-shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.15);
    --cardcrafter-card-radius: 12px;
    --cardcrafter-title-color: #1f2937;
    --cardcrafter-subtitle-color: #6b7280;
    --cardcrafter-text-color: #4b5563;
    --cardcrafter-link-color: #3b82f6;
    --cardcrafter-link-hover: #2563eb;
    --cardcrafter-gap: 24px;
    --cardcrafter-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Accessibility-specific variables */
    --cardcrafter-focus-color: #2563eb;
    --cardcrafter-focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.4);
    --cardcrafter-focus-outline: 3px solid var(--cardcrafter-focus-color);
}

/* ==========================================================================
   Accessibility: Screen Reader Only (WCAG 2.1)
   ========================================================================== */
.cardcrafter-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Allow screen reader content to become visible on focus */
.cardcrafter-sr-only.cardcrafter-sr-focusable:focus,
.cardcrafter-sr-only.cardcrafter-sr-focusable:active {
    position: static;
    width: auto;
    height: auto;
    padding: 8px 16px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* ==========================================================================
   Accessibility: Skip Link (WCAG 2.4.1)
   ========================================================================== */
.cardcrafter-skip-link {
    background: var(--cardcrafter-link-color);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    z-index: 10000;
    border-radius: var(--cardcrafter-card-radius);
}

.cardcrafter-skip-link:focus {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 12px 20px;
    background: var(--cardcrafter-link-color);
    color: #ffffff;
    outline: var(--cardcrafter-focus-outline);
    outline-offset: 2px;
}

/* ==========================================================================
   Accessibility: Enhanced Focus Indicators (WCAG 2.4.7)
   ========================================================================== */

/* Global focus-visible for keyboard navigation */
.cardcrafter-container *:focus-visible {
    outline: var(--cardcrafter-focus-outline);
    outline-offset: 2px;
}

/* Card focus state for keyboard navigation */
.cardcrafter-card:focus,
.cardcrafter-card:focus-visible,
.cardcrafter-card.cardcrafter-card-focused {
    outline: var(--cardcrafter-focus-outline);
    outline-offset: 2px;
    transform: translateY(-4px);
    box-shadow: var(--cardcrafter-card-shadow-hover), var(--cardcrafter-focus-ring);
}

/* Focus within card (when child elements are focused) */
.cardcrafter-card:focus-within {
    box-shadow: var(--cardcrafter-card-shadow-hover), var(--cardcrafter-focus-ring);
}

/* Grid wrapper focus for keyboard navigation */
.cardcrafter-grid-wrapper:focus {
    outline: 2px dashed var(--cardcrafter-focus-color);
    outline-offset: 4px;
}

.cardcrafter-grid-wrapper:focus:not(:focus-visible) {
    outline: none;
}

/* Input focus enhancements */
.cardcrafter-search-input:focus,
.cardcrafter-search-input:focus-visible {
    border-color: var(--cardcrafter-focus-color);
    box-shadow: var(--cardcrafter-focus-ring);
    outline: none;
}

.cardcrafter-sort-select:focus,
.cardcrafter-sort-select:focus-visible,
.cardcrafter-per-page-select:focus,
.cardcrafter-per-page-select:focus-visible {
    border-color: var(--cardcrafter-focus-color);
    box-shadow: var(--cardcrafter-focus-ring);
    outline: none;
}

/* Button focus states */
.cardcrafter-pagination-btn:focus,
.cardcrafter-pagination-btn:focus-visible {
    outline: var(--cardcrafter-focus-outline);
    outline-offset: 2px;
    box-shadow: var(--cardcrafter-focus-ring);
}

.cardcrafter-export-button:focus,
.cardcrafter-export-button:focus-visible {
    outline: var(--cardcrafter-focus-outline);
    outline-offset: 2px;
    box-shadow: var(--cardcrafter-focus-ring);
}

.cardcrafter-export-item:focus,
.cardcrafter-export-item:focus-visible {
    outline: none;
    background: #e0e7ff;
    color: var(--cardcrafter-link-color);
}

/* Card link focus */
.cardcrafter-card-link:focus,
.cardcrafter-card-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--cardcrafter-link-color);
}

/* ==========================================================================
   Accessibility: Reduced Motion (WCAG 2.3.3)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .cardcrafter-card,
    .cardcrafter-card-image img,
    .cardcrafter-card-link,
    .cardcrafter-pagination-btn,
    .cardcrafter-export-button,
    .cardcrafter-spinner {
        transition: none;
        animation: none;
    }

    .cardcrafter-card:hover {
        transform: none;
    }

    .cardcrafter-card:hover .cardcrafter-card-image img {
        transform: none;
    }

    .cardcrafter-card-link:hover {
        transform: none;
    }

    .cardcrafter-card-link:hover::after {
        transform: none;
    }

    .cardcrafter-pagination-btn:hover:not(:disabled) {
        transform: none;
    }

    .cardcrafter-export-button:hover {
        transform: none;
    }

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

    .cardcrafter-spinner {
        animation: cc-spin 2s linear infinite;
    }
}

/* ==========================================================================
   Accessibility: High Contrast Mode Support
   ========================================================================== */
@media (forced-colors: active) {
    .cardcrafter-card {
        border: 2px solid CanvasText;
    }

    .cardcrafter-card:focus,
    .cardcrafter-card.cardcrafter-card-focused {
        outline: 3px solid Highlight;
    }

    .cardcrafter-card-link {
        border: 2px solid LinkText;
    }

    .cardcrafter-pagination-btn {
        border: 2px solid ButtonText;
    }

    .cardcrafter-pagination-current {
        background: Highlight;
        color: HighlightText;
    }

    .cardcrafter-search-input,
    .cardcrafter-sort-select,
    .cardcrafter-per-page-select {
        border: 2px solid CanvasText;
    }

    .cardcrafter-search-input:focus,
    .cardcrafter-sort-select:focus,
    .cardcrafter-per-page-select:focus {
        outline: 3px solid Highlight;
    }
}

/* ==========================================================================
   Container
   ========================================================================== */
.cardcrafter-container {
    width: 100%;
    max-width: 100%;
}

/* ==========================================================================
   Demo Banner
   ========================================================================== */
.cardcrafter-demo-banner {
    background: #0073aa;
    color: white;
    padding: 12px 20px;
    border-radius: var(--cardcrafter-card-radius);
    margin-bottom: var(--cardcrafter-gap);
    text-align: center;
}

.cardcrafter-demo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cardcrafter-demo-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cardcrafter-demo-content p {
    margin: 0;
    font-size: 14px;
}

.cardcrafter-try-own-data {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.cardcrafter-try-own-data:hover {
    color: white;
    border-bottom-color: white;
    text-decoration: none;
}

/* ==========================================================================
   WordPress Data Banner
   ========================================================================== */
.cardcrafter-wp-banner {
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    color: white;
    padding: 12px 20px;
    border-radius: var(--cardcrafter-card-radius);
    margin-bottom: var(--cardcrafter-gap);
    text-align: center;
}

.cardcrafter-wp-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cardcrafter-wp-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cardcrafter-wp-content p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

/* ==========================================================================
   Loading State
   ========================================================================== */
.cardcrafter-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--cardcrafter-subtitle-color);
}

.cardcrafter-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--cardcrafter-card-border);
    border-top-color: var(--cardcrafter-link-color);
    border-radius: 50%;
    animation: cc-spin 0.8s linear infinite;
    margin-bottom: 16px;
}

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

/* ==========================================================================
   Toolbar (Search & Sort)
   ========================================================================== */
.cardcrafter-toolbar {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    align-items: center;
    background: #f9fafb;
    padding: 16px;
    border-radius: var(--cardcrafter-card-radius);
    border: 1px solid var(--cardcrafter-card-border);
}

.cardcrafter-search-wrapper {
    flex: 1;
    min-width: 200px;
}

.cardcrafter-search-input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--cardcrafter-card-border);
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color var(--cardcrafter-transition);
}

.cardcrafter-search-input:focus {
    border-color: var(--cardcrafter-link-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.cardcrafter-sort-wrapper {
    min-width: 150px;
}

.cardcrafter-sort-select {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--cardcrafter-card-border);
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    cursor: pointer;
    outline: none;
}

.cardcrafter-sort-select:focus {
    border-color: var(--cardcrafter-link-color);
}

.cardcrafter-per-page-wrapper {
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cardcrafter-per-page-label {
    font-weight: 500;
    color: var(--cardcrafter-text-color);
    white-space: nowrap;
    font-size: 14px;
}

.cardcrafter-per-page-select {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--cardcrafter-card-border);
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    outline: none;
}

.cardcrafter-per-page-select:focus {
    border-color: var(--cardcrafter-link-color);
}

.cardcrafter-no-results {
    width: 100%;
    padding: 40px;
    text-align: center;
    color: var(--cardcrafter-subtitle-color);
    background: #f9fafb;
    border-radius: var(--cardcrafter-card-radius);
    border: 1px dashed var(--cardcrafter-card-border);
}

/* ==========================================================================
   Error State
   ========================================================================== */
.cardcrafter-error {
    padding: 40px 20px;
    text-align: center;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--cardcrafter-card-radius);
    color: #dc2626;
}

/* ==========================================================================
   Grid Layout
   ========================================================================== */
.cardcrafter-grid {
    display: grid;
    gap: var(--cardcrafter-gap);
    width: 100%;
}

/* Column configurations */
.cardcrafter-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cardcrafter-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cardcrafter-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
    .cardcrafter-cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .cardcrafter-cols-3,
    .cardcrafter-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {

    .cardcrafter-cols-2,
    .cardcrafter-cols-3,
    .cardcrafter-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   List Layout
   ========================================================================== */
.cardcrafter-layout-list {
    grid-template-columns: 1fr !important;
}

.cardcrafter-layout-list .cardcrafter-card-inner {
    display: flex;
    flex-direction: row;
}

.cardcrafter-layout-list .cardcrafter-card-image {
    flex: 0 0 200px;
    aspect-ratio: auto;
    height: 100%;
}

.cardcrafter-layout-list .cardcrafter-card-image img {
    height: 100%;
    object-fit: cover;
}

.cardcrafter-layout-list .cardcrafter-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cardcrafter-layout-list .cardcrafter-card-link {
    align-self: flex-start;
    width: auto;
}

@media (max-width: 600px) {
    .cardcrafter-layout-list .cardcrafter-card-inner {
        flex-direction: column;
    }

    .cardcrafter-layout-list .cardcrafter-card-image {
        flex: none;
        aspect-ratio: 16/9;
        height: auto;
    }
}

/* ==========================================================================
   Masonry Layout (CSS-only approximation)
   ========================================================================== */
.cardcrafter-layout-masonry {
    display: block;
    column-count: 3;
    column-gap: var(--cardcrafter-gap);
}

.cardcrafter-layout-masonry.cardcrafter-cols-2 {
    column-count: 2;
}

.cardcrafter-layout-masonry.cardcrafter-cols-4 {
    column-count: 4;
}

.cardcrafter-layout-masonry .cardcrafter-card {
    break-inside: avoid;
    margin-bottom: var(--cardcrafter-gap);
}

.cardcrafter-layout-masonry .cardcrafter-card-image {
    aspect-ratio: auto;
}

@media (max-width: 1024px) {
    .cardcrafter-layout-masonry.cardcrafter-cols-4 {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .cardcrafter-layout-masonry {
        column-count: 2 !important;
    }
}

@media (max-width: 480px) {
    .cardcrafter-layout-masonry {
        column-count: 1 !important;
    }
}

/* ==========================================================================
   Card Styles
   ========================================================================== */
.cardcrafter-card {
    background: var(--cardcrafter-card-bg);
    border-radius: var(--cardcrafter-card-radius);
    overflow: hidden;
    box-shadow: var(--cardcrafter-card-shadow);
    border: 1px solid var(--cardcrafter-card-border);
    transition: transform var(--cardcrafter-transition), box-shadow var(--cardcrafter-transition);
}

.cardcrafter-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cardcrafter-card-shadow-hover);
}

.cardcrafter-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ==========================================================================
   Card Image
   ========================================================================== */
.cardcrafter-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.cardcrafter-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--cardcrafter-transition);
}

.cardcrafter-card:hover .cardcrafter-card-image img {
    transform: scale(1.05);
}

/* ==========================================================================
   Card Content
   ========================================================================== */
.cardcrafter-card-content {
    padding: 20px;
    flex: 1;
}

.cardcrafter-card-title {
    margin: 0 0 8px 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--cardcrafter-title-color);
    line-height: 1.4;
}

.cardcrafter-card-subtitle {
    margin: 0 0 12px 0;
    font-size: 0.875rem;
    color: var(--cardcrafter-subtitle-color);
    font-weight: 500;
}

.cardcrafter-card-description {
    margin: 0 0 16px 0;
    font-size: 0.9375rem;
    color: var(--cardcrafter-text-color);
    line-height: 1.6;
}

.cardcrafter-card-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--cardcrafter-link-color);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background var(--cardcrafter-transition), transform var(--cardcrafter-transition);
}

.cardcrafter-card-link:hover {
    background: var(--cardcrafter-link-hover);
    transform: translateX(4px);
}

.cardcrafter-card-link::after {
    content: '→';
    margin-left: 8px;
    transition: transform var(--cardcrafter-transition);
}

.cardcrafter-card-link:hover::after {
    transform: translateX(4px);
}

/* ==========================================================================
   Dark Mode Support
   ========================================================================== */
/* ==========================================================================
   Pagination Styles
   ========================================================================== */
.cardcrafter-pagination-wrapper {
    margin-top: 32px;
}

.cardcrafter-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f9fafb;
    border-radius: var(--cardcrafter-card-radius);
    border: 1px solid var(--cardcrafter-card-border);
}

.cardcrafter-pagination-info {
    color: var(--cardcrafter-subtitle-color);
    font-size: 14px;
    font-weight: 500;
}

.cardcrafter-pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.cardcrafter-pagination-btn {
    padding: 8px 16px;
    border: 1px solid var(--cardcrafter-card-border);
    background: #fff;
    color: var(--cardcrafter-text-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--cardcrafter-transition);
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cardcrafter-pagination-btn:hover:not(:disabled) {
    border-color: var(--cardcrafter-link-color);
    color: var(--cardcrafter-link-color);
    transform: translateY(-2px);
}

.cardcrafter-pagination-btn:disabled {
    background: #f5f5f5;
    color: #d1d5db;
    cursor: not-allowed;
    opacity: 0.6;
}

.cardcrafter-pagination-current {
    background: var(--cardcrafter-link-color);
    color: #fff;
    border-color: var(--cardcrafter-link-color);
}

.cardcrafter-pagination-current:hover {
    background: var(--cardcrafter-link-hover);
    border-color: var(--cardcrafter-link-hover);
    color: #fff;
    transform: none;
}

.cardcrafter-pagination-prev,
.cardcrafter-pagination-next {
    font-weight: 600;
    padding-left: 20px;
    padding-right: 20px;
}

@media (max-width: 600px) {
    .cardcrafter-pagination {
        padding: 16px;
        gap: 12px;
    }
    
    .cardcrafter-pagination-controls {
        gap: 4px;
    }
    
    .cardcrafter-pagination-btn {
        min-width: 40px;
        height: 40px;
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .cardcrafter-pagination-prev,
    .cardcrafter-pagination-next {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ==========================================================================
   Dark Mode Support
   ========================================================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --cardcrafter-card-bg: #1f2937;
        --cardcrafter-card-border: #374151;
        --cardcrafter-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        --cardcrafter-card-shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.4);
        --cardcrafter-title-color: #f9fafb;
        --cardcrafter-subtitle-color: #9ca3af;
        --cardcrafter-text-color: #d1d5db;
    }
    
    .cardcrafter-pagination {
        background: #374151;
        border-color: #4b5563;
    }
    
    .cardcrafter-pagination-btn {
        background: #4b5563;
        border-color: #6b7280;
        color: #f9fafb;
    }
    
    .cardcrafter-pagination-btn:disabled {
        background: #374151;
        color: #6b7280;
    }
    
    .cardcrafter-export-button {
        background: #0073aa;
    }
    
    .cardcrafter-export-dropdown {
        background: #374151;
        border-color: #4b5563;
    }
    
    .cardcrafter-export-item {
        background: #374151;
        color: #f9fafb;
    }
    
    .cardcrafter-export-item:hover {
        background: #4b5563;
    }
}

/* ==========================================================================
   Export Functionality Styles
   ========================================================================== */

/* Export Wrapper */
.cardcrafter-export-wrapper {
    position: relative;
    display: inline-block;
}

/* Export Button */
.cardcrafter-export-button {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--cardcrafter-transition);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.cardcrafter-export-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.cardcrafter-export-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.cardcrafter-export-button::after {
    content: '▼';
    font-size: 10px;
    margin-left: 4px;
}

/* Export Dropdown */
.cardcrafter-export-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--cardcrafter-card-border);
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 4px;
    overflow: hidden;
    min-width: 180px;
}

/* Export Items */
.cardcrafter-export-item {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: white;
    text-align: left;
    font-size: 14px;
    color: var(--cardcrafter-title-color);
    cursor: pointer;
    transition: all var(--cardcrafter-transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cardcrafter-export-item:hover {
    background: #f3f4f6;
    color: var(--cardcrafter-link-color);
}

.cardcrafter-export-item:focus {
    outline: none;
    background: #f3f4f6;
}

/* Export Messages */
.cardcrafter-export-success,
.cardcrafter-export-error {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Export Styles */
@media (max-width: 768px) {
    .cardcrafter-export-button {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .cardcrafter-export-dropdown {
        position: fixed;
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        width: auto;
        min-width: auto;
    }
    
    .cardcrafter-export-item {
        padding: 16px 20px;
        font-size: 16px;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .cardcrafter-export-item:last-child {
        border-bottom: none;
    }
}