/**
 * Deal Shortcodes Styling
 *
 * Styles for bookmark button shortcode
 *
 * @package Deal_Management
 * @since 1.0.0
 */

/* Bookmark Button (Shortcode) */
.dm-bookmark-shortcode {
    background: none;
}

.dm-bookmark-shortcode.is-bookmarked {
    color: var(--dm-alt-color-heading) !important;
    background: var(--dm-color-faded);
}

.dm-bookmark-shortcode:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Shortcode Error */
.dm-shortcode-error {
    padding: 8px 12px;
    background: #FEE2E2;
    color: #991B1B;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
}

/* ========================================
   Vote Shortcode Alignment
   ======================================== */

.dm-vote-shortcode {
    display: flex;
}

.dm-vote-shortcode.dm-vote-align-left {
    justify-content: flex-start;
}

.dm-vote-shortcode.dm-vote-align-center {
    justify-content: center;
}

.dm-vote-shortcode.dm-vote-align-right {
    justify-content: flex-end;
}

.dm-vote-shortcode .dm-vote-login-hint {
    margin-left: 12px;
    font-size: 12px;
    color: #718096;
    display: flex;
    align-items: center;
}

.dm-vote-shortcode .dm-vote-login-hint a {
    color: #7C3AED;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.dm-vote-shortcode .dm-vote-login-hint a:hover {
    color: #6D28D9;
    text-decoration: underline;
}

/* ========================================
   Deal Code Shortcode
   ======================================== */

/* Base Inline Style */
.dm-deal-code-shortcode {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
}

.dm-code-label {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

.dm-code-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #7C3AED;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.dm-code-copy-btn:hover {
    background: #6D28D9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(124, 58, 237, 0.3);
}

.dm-code-copy-btn:active {
    transform: translateY(0);
}

.dm-code-copy-btn.dm-code-success {
    background: #10b981;
}

.dm-code-copy-btn.dm-code-error {
    background: #ef4444;
}

.dm-code-copy-btn.dm-copying {
    opacity: 0.7;
    pointer-events: none;
}

/* Style: Box */
.dm-deal-code-shortcode[data-style="box"] {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    gap: 12px;
}

.dm-deal-code-shortcode[data-style="box"] .dm-code-label {
    color: white;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dm-deal-code-shortcode[data-style="box"] .dm-code-value {
    width: 100%;
    text-align: center;
    font-size: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.95);
}

.dm-deal-code-shortcode[data-style="box"] .dm-code-copy-btn {
    width: 100%;
    justify-content: center;
    background: white;
    color: #7C3AED;
}

.dm-deal-code-shortcode[data-style="box"] .dm-code-copy-btn:hover {
    background: #f5f3ff;
    transform: translateY(-1px);
}

.dm-deal-code-shortcode[data-style="box"] .dm-code-copy-btn.dm-code-success {
    background: #10b981;
    color: white;
}

.dm-deal-code-shortcode[data-style="box"] .dm-code-copy-btn.dm-code-error {
    background: #ef4444;
    color: white;
}

/* Style: Badge */
.dm-deal-code-shortcode[data-style="badge"] {
    padding: 8px 12px;
    background: #7C3AED;
    border: none;
    border-radius: 20px;
    gap: 8px;
}

.dm-deal-code-shortcode[data-style="badge"] .dm-code-label {
    color: white;
    font-size: 12px;
}

.dm-deal-code-shortcode[data-style="badge"] .dm-code-value {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 14px;
    padding: 4px 8px;
}

.dm-deal-code-shortcode[data-style="badge"] .dm-code-copy-btn {
    background: white;
    color: #7C3AED;
    padding: 6px 12px;
    font-size: 12px;
}

.dm-deal-code-shortcode[data-style="badge"] .dm-code-copy-btn:hover {
    background: #f5f3ff;
}

.dm-deal-code-shortcode[data-style="badge"] .dm-code-copy-btn.dm-code-success {
    background: #10b981;
    color: white;
}

.dm-deal-code-shortcode[data-style="badge"] .dm-code-copy-btn.dm-code-error {
    background: #ef4444;
    color: white;
}

/* ========================================
   SPRINT 4: Erweiterte Shortcodes
   ======================================== */

/* ========================================
   Deal Price Shortcode
   ======================================== */

.dm-price-shortcode {
    display: flex;
    flex-direction: row;
}

.dm-price-container {
    display: flex;
    align-items: center;
    gap: var(--dm-spacing-m);
    flex-wrap: wrap;
    line-height: var(--dm-line-height-s);
}

.dm-price-current {
    font-weight: var(--dm-font-weight-semibold);
    color: var(--dm-color-heading);
}

.dm-price-discount-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    background: #ef4444;
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
}

.dm-price-savings {
    font-size: 14px;
    color: #10b981;
    font-weight: 500;
}

/* Style: Badge */
.dm-price-shortcode.dm-price-badge {
    flex-direction: row;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dm-price-shortcode.dm-price-badge .dm-price-original {
    color: rgba(255, 255, 255, 0.7);
}

.dm-price-shortcode.dm-price-badge .dm-price-current {
    color: white;
}

.dm-price-shortcode.dm-price-badge .dm-price-discount-badge {
    background: white;
    color: #7C3AED;
}

.dm-price-shortcode.dm-price-badge .dm-price-savings {
    color: white;
}

/* ========================================
   Deal Stats Shortcode
   ======================================== */

.dm-stats-shortcode {
    display: flex;
    gap: 24px;
    align-items: center;
}

.dm-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #64748b;
}

.dm-stat-icon {
    font-size: 16px;
    color: #7C3AED;
}

.dm-stat-value {
    font-weight: 600;
    color: #0f172a;
}

.dm-stat-label {
    font-size: 13px;
    color: #94a3b8;
}

/* Style: Compact */
.dm-stats-shortcode.dm-stats-compact {
    gap: 16px;
}

.dm-stats-shortcode.dm-stats-compact .dm-stat-item {
    font-size: 12px;
    gap: 4px;
}

.dm-stats-shortcode.dm-stats-compact .dm-stat-icon {
    font-size: 14px;
}

/* Style: Minimal */
.dm-stats-shortcode.dm-stats-minimal .dm-stat-item {
    gap: 4px;
}

.dm-stats-shortcode.dm-stats-minimal .dm-stat-value {
    font-size: 13px;
}

/* Style: Boxes */
.dm-stats-shortcode.dm-stats-boxes {
    gap: 12px;
}

.dm-stats-shortcode.dm-stats-boxes .dm-stat-item {
    flex-direction: column;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    gap: 8px;
    min-width: 80px;
    transition: all 0.2s ease;
}

.dm-stats-shortcode.dm-stats-boxes .dm-stat-item:hover {
    background: #F5F3FF;
    border-color: #7C3AED;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(124, 58, 237, 0.15);
}

.dm-stats-shortcode.dm-stats-boxes .dm-stat-icon {
    font-size: 20px;
}

.dm-stats-shortcode.dm-stats-boxes .dm-stat-value {
    font-size: 18px;
    font-weight: 700;
}

.dm-stats-shortcode.dm-stats-boxes .dm-stat-label {
    font-size: 12px;
}

/* ========================================
   Deal Comments Shortcode
   ======================================== */

.dm-comments-shortcode {
    display: inline-flex;
    align-items: center;
    gap: var(--dm-spacing-s);
    color: var(--dm-color-faded);
}

.dm-comments-label {
    color: #64748b;
}

/* Style: Badge */
.dm-comments-shortcode.dm-comments-badge {
    background: #7C3AED;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
}

.dm-comments-shortcode.dm-comments-badge:hover {
    background: #6D28D9;
}

.dm-comments-shortcode.dm-comments-badge .dm-comments-icon {
    color: white;
}

.dm-comments-shortcode.dm-comments-badge .dm-comments-count {
    color: white;
}

.dm-comments-shortcode.dm-comments-badge .dm-comments-label {
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   Deal Sharing Shortcode
   ======================================== */

.dm-sharing-shortcode {
    display: flex;
    gap: 12px;
    align-items: center;
}

.dm-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dm-share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dm-share-btn i {
    font-size: 16px;
}

/* Platform Colors */
.dm-share-btn.dm-share-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.dm-share-btn.dm-share-twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: white;
}

.dm-share-btn.dm-share-whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    color: white;
}

.dm-share-btn.dm-share-email:hover {
    background: #64748b;
    border-color: #64748b;
    color: white;
}

/* Style: Icons-Only */
.dm-sharing-shortcode.dm-sharing-icons-only .dm-share-btn {
    padding: 10px;
    width: 44px;
    height: 44px;
    justify-content: center;
    border-radius: 50%;
}

.dm-sharing-shortcode.dm-sharing-icons-only .dm-share-btn i {
    font-size: 18px;
}

/* Style: Buttons */
.dm-sharing-shortcode.dm-sharing-buttons .dm-share-btn {
    border: none;
}

.dm-sharing-shortcode.dm-sharing-buttons .dm-share-facebook {
    background: #1877f2;
    color: white;
}

.dm-sharing-shortcode.dm-sharing-buttons .dm-share-twitter {
    background: #1da1f2;
    color: white;
}

.dm-sharing-shortcode.dm-sharing-buttons .dm-share-whatsapp {
    background: #25d366;
    color: white;
}

.dm-sharing-shortcode.dm-sharing-buttons .dm-share-email {
    background: #64748b;
    color: white;
}

/* Size Variations */
.dm-sharing-shortcode.dm-sharing-size-small .dm-share-btn {
    padding: 6px 12px;
    font-size: 12px;
}

.dm-sharing-shortcode.dm-sharing-size-small .dm-share-btn i {
    font-size: 14px;
}

.dm-sharing-shortcode.dm-sharing-size-large .dm-share-btn {
    padding: 14px 20px;
    font-size: 16px;
}

.dm-sharing-shortcode.dm-sharing-size-large .dm-share-btn i {
    font-size: 20px;
}

/* ========================================
   Deal Shop Info Shortcode
   ======================================== */

.dm-shopinfo-shortcode {
    display: flex;
    align-items: center;
    gap: var(--dm-spacing-s);
    flex-wrap: wrap;
}

.dm-shopinfo-shortcode:hover {
    color: var(--dm-color-primary);
}

.dm-shop-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dm-shop-logo-img {
    max-width: 100%;
    height: auto;
    display: block;
}

.dm-shop-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dm-alt-color-bg-alt);
    border: 1px solid var(--dm-color-border);
    color: var(--dm-alt-color-heading);
    font-size: var(--dm-font-size-l);
    width: 80px;
    height: 80px;
    border-radius: var(--dm-radius-full);
}

/* Logo Sizes */
.dm-shop-logo-thumbnail {
    width: 32px;
    height: 32px;
}

.dm-shop-logo-thumbnail .dm-shop-logo-placeholder {
    width: 32px;
    height: 32px;
    font-size: 16px;
}

.dm-shop-logo-small {
    width: 48px;
    height: 48px;
}

.dm-shop-logo-small .dm-shop-logo-placeholder {
    width: 48px;
    height: 48px;
    font-size: 20px;
}

.dm-shop-logo-medium {
    width: 20px;
    height: 20px;
}

.dm-shop-logo-medium .dm-shop-logo-placeholder {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.dm-shop-logo-large {
    width: 96px;
    height: 96px;
}

.dm-shop-logo-large .dm-shop-logo-placeholder {
    width: 96px;
    height: 96px;
    font-size: 40px;
}

.dm-shop-name {
    font-weight: var(--dm-font-weight-semibold);
}

.dm-shop-prefix {
    font-weight: var(--dm-font-weight-normal);
}

/* ========================================
   Deal Countdown Shortcode
   ======================================== */

.dm-countdown-shortcode {
    display: inline-flex;
    align-items: center;
    gap: var(--dm-spacing-s);
    background: var(--dm-color-bg-alt);
    border-radius: var(--dm-radius-xl);
    font-size: var(--dm-font-size-xs);
    font-weight: var(--dm-font-weight-normal);
    color: var(--dm-color-faded);
    line-height: var(--dm-line-height-s);
    padding: var(--dm-spacing-s) var(--dm-spacing-l);
}

.dm-countdown-time {
    font-weight: var(--dm-font-weight-semibold);
}

.dm-countdown-value {
    font-weight: var(--dm-font-weight-semibold);
}

.dm-countdown-shortcode.dm-countdown-live {
    background: #fee2e2;
    border-color: #ef4444;
}

.dm-countdown-shortcode.dm-countdown-live .dm-countdown-icon {
    color: #dc2626;
    animation: pulse 1s ease-in-out infinite;
}

.dm-countdown-shortcode.dm-countdown-live .dm-countdown-label {
    color: #991b1b;
}

.dm-countdown-shortcode.dm-countdown-live .dm-countdown-time {
    color: #7f1d1d;
}

/* Expired */
.dm-countdown-shortcode.dm-countdown-expired {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #64748b;
}

/* Pulse Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ========================================
   Deal Shipping Shortcode
   ======================================== */

.dm-shipping-shortcode {
    display: flex;
    align-items: center;
    gap: var(--dm-spacing-m);
    flex-wrap: wrap;
}

/* Alignment */
.dm-shipping-shortcode.dm-shipping-align-left {
    justify-content: flex-start;
}

.dm-shipping-shortcode.dm-shipping-align-center {
    justify-content: center;
}

.dm-shipping-shortcode.dm-shipping-align-right {
    justify-content: flex-end;
}

/* Free Shipping (Green) */
.dm-shipping-shortcode.dm-shipping-free {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

/* Conditional Free Shipping (Orange) */
.dm-shipping-shortcode.dm-shipping-conditional {
    color: var(--dm-color-faded);
}

/* Paid Shipping (Gray) */
.dm-shipping-shortcode.dm-shipping-paid {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

/* Icon Styles */
.dm-shipping-icon {
    font-size: var(--dm-font-size-s);
    display: flex;
    align-items: center;
}

.dm-shipping-free .dm-shipping-icon {
    color: #10b981;
    font-weight: 700;
}

.dm-shipping-paid .dm-shipping-icon {
    color: #94a3b8;
}

.dm-shipping-info {
    font-size: 13px;
    opacity: 0.9;
}

/* Style: Badge */
.dm-shipping-shortcode.dm-shipping-badge {
    border-radius: 20px;
    padding: 6px 12px;
    font-weight: 600;
    font-size: 13px;
}

.dm-shipping-shortcode.dm-shipping-badge .dm-shipping-icon {
    font-size: 14px;
}

/* Style: Compact */
.dm-shipping-shortcode.dm-shipping-compact {
    padding: 4px 10px;
    font-size: 12px;
    gap: 6px;
}

.dm-shipping-shortcode.dm-shipping-compact .dm-shipping-icon {
    font-size: 14px;
}

.dm-shipping-shortcode.dm-shipping-compact .dm-shipping-info {
    font-size: 11px;
}

/* Style: Minimal */
.dm-shipping-shortcode.dm-shipping-minimal {
    background: transparent;
    border: none;
    padding: 0;
    gap: 6px;
}

.dm-shipping-shortcode.dm-shipping-minimal.dm-shipping-free {
    color: #10b981;
}

.dm-shipping-shortcode.dm-shipping-minimal.dm-shipping-conditional {
    color: #f59e0b;
}

.dm-shipping-shortcode.dm-shipping-minimal.dm-shipping-paid {
    color: #64748b;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 640px) {

    /* Code Shortcode Mobile */
    .dm-deal-code-shortcode {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .dm-code-value {
        text-align: center;
    }

    .dm-code-copy-btn {
        width: 100%;
        justify-content: center;
    }

    /* Badge Style bleibt kompakt */
    .dm-deal-code-shortcode[data-style="badge"] {
        flex-direction: row;
        align-items: center;
    }

    /* Vote Alignment auf Mobile */
    .dm-vote-shortcode .dm-vote-login-hint {
        margin-left: 8px;
        font-size: 11px;
    }

    /* Sprint 4: Price Shortcode Mobile */
    .dm-price-shortcode.dm-price-badge {
        flex-direction: column;
    }

    .dm-price-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Sprint 4: Stats Shortcode Mobile */
    .dm-stats-shortcode {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }

    .dm-stats-shortcode.dm-stats-boxes {
        gap: 8px;
    }

    .dm-stats-shortcode.dm-stats-boxes .dm-stat-item {
        min-width: 70px;
        padding: 12px 16px;
    }

    /* Sprint 4: Sharing Shortcode Mobile */
    .dm-sharing-shortcode {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .dm-share-btn {
        font-size: 13px;
        padding: 8px 12px;
    }

    .dm-sharing-shortcode.dm-sharing-size-large .dm-share-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    /* Sprint 4: Shop Info Mobile */
    .dm-shopinfo-shortcode.dm-shopinfo-card {
        min-width: 140px;
        padding: 16px;
    }

    /* Sprint 4: Countdown Mobile */
    .dm-countdown-shortcode {
        font-size: 13px;
    }

    .dm-countdown-time {
        font-size: 14px;
    }

    /* Sprint 4: Shipping Mobile */
    .dm-shipping-shortcode {
        font-size: 13px;
        gap: 6px;
    }

    .dm-shipping-shortcode.dm-shipping-badge {
        font-size: 12px;
    }
}