/* ===========================================
   FC Viktoria Plzen - Registration Page Styles
   =========================================== */

/* ===========================================
   CONTAINER NARROW
   =========================================== */
.container--narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--container-padding, 1.5rem);
}

/* ===========================================
   REGISTRATION PAGE
   =========================================== */
.registration-page {
    background-color: var(--color-bg-primary, #0a1929);
}

/* ===========================================
   ARTICLE HEADER
   =========================================== */
.article-header {
    padding: 3rem 0 2rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.article-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-primary, #0062A9);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.article-category:hover {
    background: var(--color-primary-dark, #004d87);
}

.article-reading-time {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.article-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.article-lead {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin: 0 0 1.5rem;
}

/* Author Byline */
.article-byline {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

.article-date {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===========================================
   ARTICLE HERO IMAGE
   =========================================== */
.article-hero {
    margin: 0 0 2rem;
}

.article-hero-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.article-hero figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

/* ===========================================
   ARTICLE BODY
   =========================================== */
.article-body {
    padding-bottom: 3rem;
}

.article-teaser p,
.article-full p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1.25rem;
}

.article-teaser p:first-child::first-letter {
    float: left;
    font-size: 3.5em;
    line-height: 0.8;
    font-weight: 700;
    color: var(--color-primary, #0062A9);
    margin-right: 0.75rem;
    margin-top: 6px;
}

.article-full h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 2rem 0 1rem;
}

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

.article-full ul,
.article-full ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.article-full li {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.5rem;
}

/* Article Quote */
.article-quote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--color-primary, #0062A9);
    border-radius: 0 12px 12px 0;
}

.article-quote p {
    font-size: 1.125rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0.75rem !important;
}

.article-quote cite {
    font-size: 0.875rem;
    font-style: normal;
    color: rgba(255, 255, 255, 0.6);
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tag-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 999px;
    transition: all 0.2s;
}

.tag:hover {
    background: var(--color-primary, #0062A9);
    color: white;
}

/* ===========================================
   REGWALL (Content Gate)
   =========================================== */
.regwall {
    position: relative;
    margin-top: 1.5rem;
}

/* Blurred Preview Content */
.regwall-preview {
    position: relative;
    max-height: 300px;
    overflow: hidden;
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
}

.regwall-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--color-bg-primary, #0a1929));
}

.regwall-preview p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1.25rem;
}

.regwall-preview h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 1.5rem 0 1rem;
}

/* Regwall Overlay */
.regwall-overlay {
    position: relative;
    margin-top: -100px;
    padding-top: 2rem;
}

.regwall-card {
    background: var(--color-bg-secondary, #132f4c);
    border: 2px solid var(--color-primary, #0062A9);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Regwall Badge */
.regwall-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-primary, #0062A9);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.regwall-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem;
}

.regwall-card > p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Regwall Options */
.regwall-options {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
}

.regwall-option {
    flex: 1;
    text-align: center;
}

.regwall-option h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 0.75rem;
}

.regwall-option-note {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
}

/* Regwall Divider */
.regwall-divider {
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.regwall-divider span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Regwall Benefits */
.regwall-benefits {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: left;
}

.regwall-benefits h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.75rem;
}

.regwall-benefits ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.regwall-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.regwall-benefits svg {
    color: var(--color-accent, #E32219);
    flex-shrink: 0;
}

/* ===========================================
   RELATED ARTICLES
   =========================================== */
.related-articles {
    background: rgba(255, 255, 255, 0.02);
    padding: 3rem 0;
}

.related-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-card {
    background: var(--color-bg-secondary, #132f4c);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.related-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.related-content {
    padding: 1.25rem;
}

.related-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary, #0062A9);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}

.related-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    line-height: 1.4;
    margin: 0 0 0.75rem;
}

.related-content time {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===========================================
   BUTTON STYLES FOR REGWALL
   =========================================== */
.btn-large {
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-accent {
    background-color: var(--color-accent, #E32219);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-accent:hover {
    background-color: var(--color-accent-dark, #b91c15);
}

/* ===========================================
   REGISTRATION MODAL ENHANCEMENTS
   =========================================== */
.name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary, #0062A9);
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.checkbox-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--color-primary, #0062A9);
}

.password-requirements {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.25rem;
}

.form-error {
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: none;
}

.form-error.visible {
    display: block;
    background: rgba(227, 34, 25, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(227, 34, 25, 0.3);
}

.form-error.success {
    background: rgba(86, 172, 66, 0.1);
    color: #56AC42;
    border: 1px solid rgba(86, 172, 66, 0.3);
}

.login-switch-text {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
}

.login-switch-text a {
    color: var(--color-primary, #0062A9);
    text-decoration: none;
}

.login-switch-text a:hover {
    text-decoration: underline;
}

.login-submit.loading {
    opacity: 0.7;
    cursor: wait;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .container--narrow {
        padding: 0 1rem;
    }

    .article-header {
        padding: 1.5rem 0 1rem;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-lead {
        font-size: 1rem;
    }

    .article-hero-img {
        border-radius: 8px;
    }

    .regwall-card {
        padding: 1.5rem;
    }

    .regwall-options {
        flex-direction: column;
        gap: 1rem;
    }

    .regwall-divider {
        padding: 0.5rem 0;
    }

    .regwall-divider span::before,
    .regwall-divider span::after {
        content: '———';
        color: rgba(255, 255, 255, 0.2);
        margin: 0 0.75rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .article-quote {
        padding: 1rem 1.25rem;
        margin: 1.5rem 0;
    }

    .name-row {
        grid-template-columns: 1fr;
    }
}
