/**
 * Coupon Content Styles
 * Styles for better readability of coupon content from CKEditor
 */

/* Base coupon content styles */
.coupon-content {
    font-size: 1rem;
    line-height: 1.75;
}

/* Headings */
.coupon-content h1,
.coupon-content h2,
.coupon-content h3,
.coupon-content h4,
.coupon-content h5,
.coupon-content h6 {
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    color: inherit;
}

/* Paragraphs */
.coupon-content p {
    margin-bottom: 0.5em;
}

/* Lists */
.coupon-content ul,
.coupon-content ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.coupon-content li {
    margin-bottom: 0.5em;
}

/* Links */
.coupon-content a {
    color: #f97316;
    text-decoration: underline;
}

.coupon-content a:hover {
    color: #ea580c;
}

/* Inline code */
.coupon-content code {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.875em;
}

.dark .coupon-content code {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Code blocks */
.coupon-content pre {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 1em;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1em;
}

.dark .coupon-content pre {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Blockquotes */
.coupon-content blockquote {
    border-left: 4px solid #f97316;
    padding-left: 1em;
    margin: 1em 0;
    font-style: italic;
    color: #6b7280;
}

.dark .coupon-content blockquote {
    color: #9ca3af;
}

/* Images */
.coupon-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1em 0;
}

/* Tables */
.coupon-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.coupon-content th,
.coupon-content td {
    border: 1px solid #e5e7eb;
    padding: 0.5em;
    text-align: left;
}

.dark .coupon-content th,
.dark .coupon-content td {
    border-color: #374151;
}

.coupon-content th {
    background-color: rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

.dark .coupon-content th {
    background-color: rgba(255, 255, 255, 0.05);
}
