/**
 * Content Page Styles
 *
 * Styles for static content pages (About, Privacy, Terms, etc.)
 * Uses same design language as toplist pages
 *
 * @package WebsiteBuilderVergleich
 */

/* Simplified Hero - compact version */
.wbv-content-hero {
    background: #3b82f6;
    padding: 30px 0 25px;
    text-align: center;
}

.wbv-content-hero-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

/* Ensure header matches toplist pages */
.wbv-content-page .wbv-header {
    padding: 16px 0;
}

.wbv-content-page .wbv-header-logo img {
    height: 45px;
    width: auto;
}

.wbv-content-page .wbv-header-nav a {
    font-size: 14px;
    padding: 8px 16px;
}

/* Content Section */
.wbv-content-section {
    background: #ffffff;
    padding: 60px 0 80px;
    min-height: 50vh;
}

.wbv-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Article Styles */
.wbv-content-article {
    color: #333333;
    font-size: 1.05rem;
    line-height: 1.8;
}

.wbv-content-article h2 {
    color: #1e293b;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3b82f6;
}

.wbv-content-article h2:first-child {
    margin-top: 0;
}

.wbv-content-article h3 {
    color: #1e293b;
    font-size: 1.35rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
}

.wbv-content-article h4 {
    color: #334155;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
}

.wbv-content-article p {
    margin: 0 0 1.25rem;
}

.wbv-content-article a {
    color: #3b82f6;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.wbv-content-article a:hover {
    color: #2563eb;
}

/* Lists */
.wbv-content-article ul,
.wbv-content-article ol {
    margin: 0 0 1.5rem;
    padding-left: 1.5rem;
}

.wbv-content-article li {
    margin-bottom: 0.5rem;
}

.wbv-content-article ul li {
    list-style-type: disc;
}

.wbv-content-article ol li {
    list-style-type: decimal;
}

/* Blockquotes */
.wbv-content-article blockquote {
    margin: 1.5rem 0;
    padding: 1.5rem 2rem;
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    font-style: italic;
    color: #555;
}

.wbv-content-article blockquote p:last-child {
    margin-bottom: 0;
}

/* Tables */
.wbv-content-article table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.wbv-content-article th,
.wbv-content-article td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.wbv-content-article th {
    background: #3b82f6;
    color: #ffffff;
    font-weight: 600;
}

.wbv-content-article tr:last-child td {
    border-bottom: none;
}

.wbv-content-article tr:nth-child(even) {
    background: #fafafa;
}

/* Code */
.wbv-content-article code {
    background: #f0f9ff;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
    color: #1e40af;
}

.wbv-content-article pre {
    background: #1e293b;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.wbv-content-article pre code {
    background: transparent;
    padding: 0;
    color: #e2e8f0;
    font-size: 0.95rem;
}

/* Images */
.wbv-content-article img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Horizontal Rule */
.wbv-content-article hr {
    border: none;
    border-top: 2px solid #e5e5e5;
    margin: 2.5rem 0;
}

/* Contact Form Styles */
.wbv-contact-info {
    background: #f0f9ff;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.wbv-contact-info p {
    margin: 0.5rem 0;
}

.wbv-contact-info strong {
    color: #1e293b;
}

/* Legal Notice Box */
.wbv-legal-notice {
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
    border: 1px solid #93c5fd;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.wbv-legal-notice h4 {
    color: #1e40af;
    margin-top: 0;
}

/* Rating Criteria Box */
.wbv-rating-criteria {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.wbv-rating-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 1.5rem;
    transition: box-shadow 0.2s ease;
}

.wbv-rating-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wbv-rating-item h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0;
    color: #1e293b;
}

.wbv-rating-item .icon {
    font-size: 1.5rem;
}

.wbv-rating-item p {
    margin-bottom: 0;
    color: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .wbv-content-hero {
        padding: 20px 0 15px;
    }

    .wbv-content-hero-title {
        font-size: 1.25rem;
    }

    .wbv-content-section {
        padding: 40px 0 60px;
    }

    .wbv-content-wrapper {
        padding: 0 1rem;
    }

    .wbv-content-article {
        font-size: 1rem;
    }

    .wbv-content-article h2 {
        font-size: 1.5rem;
    }

    .wbv-content-article h3 {
        font-size: 1.2rem;
    }

    .wbv-content-article blockquote {
        padding: 1rem 1.25rem;
    }

    .wbv-rating-criteria {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .wbv-rating-criteria {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .wbv-content-section {
        background: #1a1a2e;
    }

    .wbv-content-article {
        color: #e0e0e0;
    }

    .wbv-content-article h2 {
        color: #ffffff;
    }

    .wbv-content-article h3,
    .wbv-content-article h4 {
        color: #e0d4f0;
    }

    .wbv-content-article a {
        color: #b88ce8;
    }

    .wbv-content-article a:hover {
        color: #d4b8f0;
    }

    .wbv-content-article blockquote {
        background: #252540;
        color: #c0c0c0;
    }

    .wbv-content-article table {
        background: #252540;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .wbv-content-article th {
        background: #1a0a2e;
    }

    .wbv-content-article td {
        border-color: #3d3d5c;
    }

    .wbv-content-article tr:nth-child(even) {
        background: #2a2a45;
    }

    .wbv-content-article code {
        background: #2a2a45;
        color: #b88ce8;
    }

    .wbv-contact-info,
    .wbv-legal-notice {
        background: #252540;
        border-color: #3d3d5c;
    }

    .wbv-rating-item {
        background: #252540;
        border-color: #3d3d5c;
    }

    .wbv-rating-item h4 {
        color: #ffffff;
    }

    .wbv-rating-item p {
        color: #b0b0b0;
    }
}

/* =====================================================
   Author Profile Sections (About Page)
   ===================================================== */

.wbv-about-intro {
    margin-bottom: 2.5rem;
}

.wbv-about-intro h2 {
    margin-top: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.wbv-about-intro p:last-child {
    margin-bottom: 0;
}

.wbv-author-profile {
    display: flex;
    gap: 1.5rem;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.wbv-author-profile:hover {
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.wbv-author-profile__image {
    flex-shrink: 0;
}

.wbv-author-profile__image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #3b82f6;
    object-fit: cover;
    margin: 0;
}

.wbv-author-profile__content {
    flex: 1;
    min-width: 0;
}

.wbv-author-profile__content h3 {
    color: #1e293b;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.25rem !important;
}

.wbv-author-profile__title {
    color: #3b82f6;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wbv-author-profile__content p:last-child {
    margin-bottom: 0;
    color: #555;
    line-height: 1.7;
}

/* Responsive Author Profiles */
@media (max-width: 600px) {
    .wbv-author-profile {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .wbv-author-profile__image {
        margin: 0 auto;
    }

    .wbv-author-profile__image img {
        width: 100px;
        height: 100px;
    }

    .wbv-author-profile__content h3 {
        font-size: 1.2rem;
    }
}

/* Dark mode for Author Profiles */
@media (prefers-color-scheme: dark) {
    .wbv-author-profile {
        background: #252540;
        border-color: #3d3d5c;
    }

    .wbv-author-profile:hover {
        border-color: var(--wbv-accent, #FFD700);
        box-shadow: 0 4px 16px rgba(255, 215, 0, 0.15);
    }

    .wbv-author-profile__content h3 {
        color: #ffffff;
    }

    .wbv-author-profile__title {
        color: var(--wbv-accent, #FFD700);
    }

    .wbv-author-profile__content p:last-child {
        color: #b0b0b0;
    }
}
