/**
 * Alcar Content Guard
 * Professional content wall styles — Dark Theme
 *
 * Designed for dark-background sites (base: #05080F).
 *
 * @version 1.1.0
 * @author  Alcar Alpha
 */

/* ─────────────────────────────────────────────
   Design Tokens — Dark Theme
   ───────────────────────────────────────────── */

:root {
    --acg-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Surfaces */
    --acg-bg-site: #05080F;
    --acg-bg-card: #0c1018;
    --acg-bg-card-hover: #0f1420;
    --acg-bg-icon: #151d2d;
    --acg-bg-icon-premium: #261c08;

    /* Borders */
    --acg-border: #1a2235;
    --acg-border-hover: #253049;

    /* Text */
    --acg-text: #e4e8ef;
    --acg-text-secondary: #8892a4;
    --acg-text-muted: #505a6e;

    /* Accent — Primary (Login) */
    --acg-primary: #3b82f6;
    --acg-primary-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);

    /* Accent — Premium (Plans) */
    --acg-premium-gradient: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --acg-premium-accent: linear-gradient(90deg, #f59e0b 0%, #f97316 50%, #ef4444 100%);

    /* Shapes */
    --acg-radius: 16px;
    --acg-radius-btn: 10px;

    /* Shadows — dark environment needs deeper shadows */
    --acg-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --acg-shadow: 0 2px 8px 0 rgb(0 0 0 / 0.35);
    --acg-shadow-lg: 0 8px 24px -4px rgb(0 0 0 / 0.5);
    --acg-shadow-xl: 0 16px 40px -8px rgb(0 0 0 / 0.55);

    /* Glow — subtle luminous outline on cards */
    --acg-glow: 0 0 0 1px rgba(59, 130, 246, 0.06);
}

/* ─────────────────────────────────────────────
   Animations
   ───────────────────────────────────────────── */

@keyframes acg-fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes acg-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ─────────────────────────────────────────────
   Wall Container
   ───────────────────────────────────────────── */

.acg-wall {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 24px;
    font-family: var(--acg-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─────────────────────────────────────────────
   Card
   ───────────────────────────────────────────── */

.acg-wall__card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--acg-bg-card);
    border: 1px solid var(--acg-border);
    border-radius: var(--acg-radius);
    padding: 48px 40px;
    text-align: center;
    box-shadow: var(--acg-shadow-xl), var(--acg-glow);
    animation: acg-fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.acg-wall__card:hover {
    border-color: var(--acg-border-hover);
}

/* Premium variant */
.acg-wall__card--premium {
    padding-top: 56px;
}

/* ─────────────────────────────────────────────
   Premium Accent Bar
   ───────────────────────────────────────────── */

.acg-wall__accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--acg-premium-accent);
    background-size: 200% 100%;
    animation: acg-shimmer 3s linear infinite;
}

/* ─────────────────────────────────────────────
   Icon
   ───────────────────────────────────────────── */

.acg-wall__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--acg-bg-icon);
    border: 1px solid var(--acg-border);
    border-radius: 50%;
    margin-bottom: 24px;
    color: var(--acg-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.acg-wall__icon:hover {
    transform: scale(1.06);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.acg-wall__icon--premium {
    background: var(--acg-bg-icon-premium);
    border-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.acg-wall__icon--premium:hover {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.acg-wall__icon svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   Typography
   ───────────────────────────────────────────── */

.acg-wall__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--acg-text);
    margin: 0 0 12px 0;
    letter-spacing: -0.025em;
    line-height: 1.3;
}

.acg-wall__description {
    font-size: 15px;
    line-height: 1.65;
    color: var(--acg-text-secondary);
    margin: 0 0 32px 0;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* ─────────────────────────────────────────────
   Divider
   ───────────────────────────────────────────── */

.acg-wall__divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    color: var(--acg-text-muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.acg-wall__divider::before,
.acg-wall__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--acg-border);
}

/* ─────────────────────────────────────────────
   Actions
   ───────────────────────────────────────────── */

.acg-wall__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ─────────────────────────────────────────────
   Buttons
   ───────────────────────────────────────────── */

.acg-wall__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--acg-font);
    border-radius: var(--acg-radius-btn);
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    line-height: 1.4;
    letter-spacing: -0.01em;
    -webkit-user-select: none;
    user-select: none;
    outline: none;
}

.acg-wall__btn:focus-visible {
    outline: 2px solid var(--acg-primary);
    outline-offset: 2px;
}

/* Primary Button (Login) */
.acg-wall__btn--primary {
    background: var(--acg-primary-gradient);
    color: #ffffff !important;
    box-shadow: var(--acg-shadow-sm);
}

.acg-wall__btn--primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    color: #ffffff !important;
}

.acg-wall__btn--primary:active {
    transform: translateY(0);
    opacity: 1;
}

/* Secondary Button (Register) */
.acg-wall__btn--secondary {
    background: transparent;
    color: var(--acg-text-secondary) !important;
    border: 1px solid var(--acg-border);
}

.acg-wall__btn--secondary:hover {
    background: var(--acg-bg-icon);
    border-color: var(--acg-border-hover);
    color: var(--acg-text) !important;
}

.acg-wall__btn--secondary:active {
    background: var(--acg-border);
}

/* Premium Button (Conhecer Planos) */
.acg-wall__btn--premium {
    background: var(--acg-premium-gradient);
    color: #ffffff !important;
    box-shadow: var(--acg-shadow-sm);
}

.acg-wall__btn--premium:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
    color: #ffffff !important;
}

.acg-wall__btn--premium:active {
    transform: translateY(0);
    opacity: 1;
}

/* ─────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────── */

.acg-wall__footer {
    margin-top: 28px;
    font-size: 13px;
    color: var(--acg-text-muted);
    line-height: 1.5;
}

.acg-wall__footer a {
    color: var(--acg-primary);
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.acg-wall__footer a:hover {
    color: #60a5fa;
    text-decoration: underline !important;
}

/* ─────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────── */

@media (max-width: 640px) {
    .acg-wall {
        padding: 36px 16px;
    }

    .acg-wall__card {
        padding: 36px 24px;
        border-radius: 12px;
    }

    .acg-wall__card--premium {
        padding-top: 44px;
    }

    .acg-wall__title {
        font-size: 20px;
    }

    .acg-wall__description {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .acg-wall__icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }

    .acg-wall__icon svg {
        width: 28px;
        height: 28px;
    }

    .acg-wall__btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .acg-wall__card {
        padding: 28px 20px;
    }

    .acg-wall__card--premium {
        padding-top: 36px;
    }
}
