/**
 * Biscotti CMP Frontend Shortcode Styles
 * Used for cookie tables, consent links, data export, and legal content
 */

/* Cookie Table Styles */
.biscotti-cookie-table {
    margin: 20px 0;
}

.biscotti-category-title {
    margin: 24px 0 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid #9B6B3C;
}

.biscotti-category-desc {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 16px;
}

.biscotti-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.biscotti-table th,
.biscotti-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.biscotti-table th {
    background: #f5f5f5;
    font-weight: 600;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.biscotti-table code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.biscotti-last-updated {
    color: #999;
    margin-top: 16px;
}

/* Data Export Styles */
.biscotti-data-export {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}

.biscotti-export-btn {
    background: #9B6B3C;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.biscotti-export-btn:hover {
    background: #855530;
}

/* Do Not Sell (CCPA) Styles */
.biscotti-dns-container {
    margin: 16px 0;
}

.biscotti-dns-link {
    color: #9B6B3C;
    text-decoration: underline;
    font-weight: 600;
}

.biscotti-dns-desc {
    color: #666;
    font-size: 0.9em;
    margin-top: 8px;
}

/* Legal Content Styles (Impressum, Privacy Policy, Cookie Policy) */
.biscotti-legal-content {
    line-height: 1.7;
}

.biscotti-legal-content h1,
.biscotti-legal-content h2,
.biscotti-legal-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.biscotti-legal-content h2 {
    border-bottom: 2px solid #9B6B3C;
    padding-bottom: 0.25em;
}

.biscotti-legal-content ul,
.biscotti-legal-content ol {
    margin-left: 1.5em;
}

.biscotti-error {
    color: #c0392b;
    padding: 1em;
    background: #fdf0ef;
    border-radius: 6px;
}

/* Consent Link Styles */
.biscotti-consent-link {
    color: #9B6B3C;
    text-decoration: underline;
    cursor: pointer;
}

.biscotti-consent-link:hover {
    color: #8B5A2B;
}

/* =========================================================================
   Content Blocker placeholder (biscotti/content-blocker, [biscotti_block],
   auto-blocked oEmbeds). Server-rendered; released by biscotti.js on consent.
   ========================================================================= */
.biscotti-content-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 240px;
    width: 100%;
    padding: 24px;
    text-align: center;
    background-color: #f2efe9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #e0d8cc;
    border-radius: 8px;
    overflow: hidden;
}

/* Semi-transparent dark overlay when a preview image is set (Req 6.1). */
.biscotti-content-placeholder[style*="background-image"]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}

.biscotti-content-placeholder__inner {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.biscotti-content-placeholder[style*="background-image"] .biscotti-content-placeholder__title,
.biscotti-content-placeholder[style*="background-image"] .biscotti-content-placeholder__text {
    color: #ffffff;
}

.biscotti-content-placeholder__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
}

.biscotti-content-placeholder__text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    opacity: 0.95;
}

.biscotti-content-placeholder__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    margin-top: 6px;
}

.biscotti-content-placeholder__accept {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
    background-color: var(--biscotti-primary, #8B5A2B);
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.biscotti-content-placeholder__accept:hover {
    filter: brightness(0.94);
}

.biscotti-content-placeholder__settings {
    font-size: 0.85rem;
    text-decoration: underline;
    color: inherit;
    cursor: pointer;
}
