/* ClientSync Support - Admin Shortcodes Styles */

.cs-support-shortcodes-modern {
    max-width: 1200px;
    margin: 20px 0;
}

.cs-support-shortcodes-fullwidth {
    width: 100%;
}

.cs-support-shortcodes-inner {
    padding: 0;
}

.cs-shortcodes-title {
    color: #1d2327;
    font-size: 23px;
    font-weight: 400;
    margin: 0 0 20px;
    padding: 9px 0 4px;
    line-height: 1.3;
}

.cs-shortcodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.cs-modern-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    padding: 0;
    overflow: hidden;
}

.cs-modern-card-title {
    background: #f6f7f7;
    border-bottom: 1px solid #c3c4c7;
    color: #1d2327;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    padding: 12px 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cs-modern-card-body {
    padding: 16px;
}

.cs-shortcodes-desc {
    color: #50575e;
    font-size: 13px;
    margin: 0 0 12px;
    line-height: 1.5;
}

.cs-modern-shortcode {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 3px;
    color: #d63638;
    display: block;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    margin: 8px 0;
    padding: 8px 12px;
    word-break: break-all;
    overflow-x: auto;
}

.cs-shortcodes-subtitle {
    color: #1d2327;
    font-size: 13px;
    font-weight: 600;
    margin: 16px 0 8px;
}

.cs-modern-attributes {
    margin: 8px 0 0;
    padding-left: 20px;
}

.cs-modern-attributes li {
    color: #50575e;
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 4px;
}

.cs-modern-attributes li strong {
    color: #1d2327;
    font-weight: 600;
}

/* Responsive Design */
@media screen and (max-width: 782px) {
    .cs-shortcodes-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cs-shortcodes-title {
        font-size: 20px;
    }

    .cs-modern-card-body {
        padding: 12px;
    }

    .cs-modern-shortcode {
        font-size: 11px;
        padding: 6px 8px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .cs-modern-card {
        border-width: 0.5px;
    }
}

/* Dark mode support for WordPress 5.7+ */
@media (prefers-color-scheme: dark) {
    .cs-modern-card {
        background: #1d2327;
        border-color: #3c434a;
    }

    .cs-modern-card-title {
        background: #23282d;
        border-color: #3c434a;
        color: #f0f0f1;
    }

    .cs-shortcodes-title {
        color: #f0f0f1;
    }

    .cs-shortcodes-desc {
        color: #c3c4c7;
    }

    .cs-shortcodes-subtitle {
        color: #f0f0f1;
    }

    .cs-modern-shortcode {
        background: #23282d;
        border-color: #3c434a;
        color: #f92337;
    }

    .cs-modern-attributes li {
        color: #c3c4c7;
    }

    .cs-modern-attributes li strong {
        color: #f0f0f1;
    }
}

/* Focus styles for accessibility */
.cs-modern-shortcode:focus {
    outline: 2px solid #2271b1;
    outline-offset: -2px;
}

/* Print styles */
@media print {
    .cs-modern-card {
        border: 1px solid #000;
        break-inside: avoid;
        margin-bottom: 20px;
    }

    .cs-modern-shortcode {
        background: #f9f9f9 !important;
        color: #000 !important;
    }
}
