/* Component styles */

/* ==================== CAUTION TAPE ==================== */
.caution-tape {
    position: absolute;
    left: 0;
    right: 0;
    width: 100vw;
    height: 30px;
    background: repeating-linear-gradient(
        45deg,
        var(--accent-yellow),
        var(--accent-yellow) 30px,
        var(--bg-primary) 30px,
        var(--bg-primary) 60px
    );
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 1000;
    pointer-events: none;
    overflow: hidden;
    border-top: 2px solid white;
    border-bottom: 2px solid white;
}

.caution-tape::before {
    content: 'CAUTION ⚠ UNDER CONSTRUCTION ⚠ CAUTION ⚠ UNDER CONSTRUCTION ⚠ CAUTION ⚠ UNDER CONSTRUCTION ⚠ CAUTION ⚠ UNDER CONSTRUCTION ⚠';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: max-content;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--bg-primary);
    padding: 2px 10px;
    white-space: nowrap;
    animation: scrollText 20s linear infinite;
}

.caution-tape-top {
    top: 0;
    transform: rotate(0deg);
}

.caution-tape-bottom {
    bottom: 0;
    transform: rotate(0deg);
}

.caution-tape-bottom::before {
    animation: scrollTextReverse 20s linear infinite;
}

@keyframes scrollText {
    0% { transform: translateY(-50%) translateX(0); }
    100% { transform: translateY(-50%) translateX(-50%); }
}

@keyframes scrollTextReverse {
    0% { transform: translateY(-50%) translateX(-50%); }
    100% { transform: translateY(-50%) translateX(0); }
}

/* Responsive caution tape */
@media (max-width: 768px) {
    .caution-tape {
        height: 24px;
    }

    .caution-tape::before {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .caution-tape {
        height: 20px;
    }

    .caution-tape::before {
        font-size: 11px;
    }
}

/* ==================== NOTIFY SECTION ==================== */
.notify-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

#signup-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    width: 100%;
}

.writer-fields-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    border: 1px dashed var(--border-color);
    padding: var(--space-md);
}

.email-input,
.name-input,
.links-input {
    width: 100%;
    box-sizing: border-box;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}


.email-input:focus,
.name-input:focus,
.links-input:focus {
    outline: none;
    border-color: var(--accent-red);
    background: var(--bg-primary);
}

.email-input::placeholder,
.name-input::placeholder,
.links-input::placeholder {
    color: var(--text-muted);
}

.writer-textarea-wrapper {
    width: 100%;
}

.examples-input {
    width: 100%;
    box-sizing: border-box;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
}

.examples-input:focus {
    outline: none;
    border-color: var(--accent-red);
    background: var(--bg-primary);
}

.examples-input::placeholder {
    color: var(--text-muted);
}

.notify-btn {
    background: var(--accent-red);
    color: white;
    border: 1px solid var(--accent-red);
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-size: var(--step-0);
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notify-btn:hover {
    background: var(--accent-red-dim);
    color: var(--accent-red);
    border-color: var(--accent-red-dim);
}

.notify-btn:active {
    transform: translateY(0);
}

/* Writer checkbox */
.writer-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: var(--step--1);
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.writer-checkbox:hover {
    color: white;
}

.writer-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    position: relative;
    display: grid;
    place-content: center;
}

.writer-checkbox input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--accent-red);
}

.writer-checkbox input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.writer-checkbox input[type="checkbox"]:checked {
    border-color: var(--accent-red);
}

/* Responsive */
@media (max-width: 768px) {
    .notify-section {
        padding: 0 var(--space-sm);
    }

    .writer-fields-group {
        gap: 0.875rem;
        padding: var(--space-sm);
    }

    .email-input,
    .name-input,
    .links-input,
    .examples-input {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    .notify-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }

    .writer-checkbox {
        font-size: 0.8rem;
        text-align: left;
    }

    .logo {
        width: 280px;
    }
    
    .tagline {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .notify-section {
        gap: 1rem;
    }

    .writer-fields-group {
        gap: 0.75rem;
        padding: var(--space-xs);
        border: none;
    }

    .email-input,
    .name-input,
    .links-input,
    .examples-input {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .notify-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .writer-checkbox {
        font-size: 0.75rem;
        gap: 0.5rem;
    }

    .writer-checkbox input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

    .writer-checkbox input[type="checkbox"]::before {
        width: 8px;
        height: 8px;
    }

    .logo {
        width: 220px;
    }
    
    .tagline {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.8rem;
    }
}
