/* ============================================
   Template 12 - Matrix Rain
   ============================================ */

.template-matrix {
    background: #000;
}

/* Logo */
.matrix-logo {
    filter: drop-shadow(0 0 10px rgba(0, 255, 0, 0.5));
}

.matrix-icon {
    background: transparent;
    border: 2px solid #00ff00;
    color: #00ff00;
}

.matrix-text {
    font-family: var(--font-mono);
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    letter-spacing: 0.2em;
}

/* Terminal Header */
.terminal-header {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.terminal-prompt {
    color: #00ff00;
}

.terminal-command {
    color: #00ff00;
    opacity: 0.8;
}

.typing {
    overflow: hidden;
    border-right: 2px solid #00ff00;
    white-space: nowrap;
    animation: typing 2s steps(20) infinite, blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 180px; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #00ff00; }
}

/* Matrix Heading */
.matrix-heading {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.text-matrix-green {
    display: block;
    color: #00ff00;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.text-matrix-bright {
    display: block;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 40px #00ff00;
}

/* Matrix Countdown */
.matrix-countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    font-family: var(--font-mono);
}

.matrix-item {
    text-align: center;
    min-width: auto;
}

.matrix-separator {
    font-size: 2rem;
    color: #00ff00;
    opacity: 0.5;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 0.5; }
    51%, 100% { opacity: 0; }
}

.matrix-value {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #00ff00;
    background: none;
    -webkit-text-fill-color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.matrix-countdown .countdown-label {
    font-size: 0.7rem;
    color: rgba(0, 255, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Matrix Form */
.matrix-form {
    max-width: 500px;
    margin: 2rem auto 0;
    display: flex;
    gap: 0.5rem;
}

.matrix-form .input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid #00ff00;
    padding-left: 1rem;
}

.matrix-prompt {
    color: #00ff00;
    font-family: var(--font-mono);
}

.matrix-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: var(--font-mono);
    padding: 1rem 0.5rem;
}

.matrix-input::placeholder {
    color: rgba(0, 255, 0, 0.3);
}

.matrix-input:focus {
    box-shadow: none;
}

.btn-matrix {
    background: transparent;
    border: 1px solid #00ff00;
    color: #00ff00;
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 1rem 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.btn-matrix:hover {
    background: #00ff00;
    color: #000;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

/* System Status */
.system-status {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    max-width: 400px;
    margin: 2rem auto 0;
    padding: 1rem;
    background: rgba(0, 255, 0, 0.02);
    border: 1px solid rgba(0, 255, 0, 0.2);
}

.status-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
}

.status-row:last-child {
    border-bottom: none;
}

.status-label {
    color: rgba(0, 255, 0, 0.5);
}

.status-value {
    color: #00ff00;
}

.status-online {
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

.status-progress {
    animation: blink 1s infinite;
}

/* Pills Choice */
.pills-choice {
    margin-top: 2rem;
    text-align: center;
}

.pills-question {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: rgba(0, 255, 0, 0.7);
    margin-bottom: 1rem;
}

.pills-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 2rem;
    border: 2px solid;
    border-radius: 0.5rem;
    font-family: var(--font-mono);
    transition: all 0.3s ease;
    cursor: pointer;
}

.pill span {
    font-weight: 700;
    font-size: 1rem;
}

.pill small {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

.pill-blue {
    border-color: #0066ff;
    color: #0066ff;
    background: rgba(0, 102, 255, 0.1);
}

.pill-blue:hover {
    background: #0066ff;
    color: white;
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.5);
}

.pill-red {
    border-color: #ff0044;
    color: #ff0044;
    background: rgba(255, 0, 68, 0.1);
}

.pill-red:hover {
    background: #ff0044;
    color: white;
    box-shadow: 0 0 30px rgba(255, 0, 68, 0.5);
}

/* Matrix Social */
.matrix-social-link {
    background: transparent;
    border: 1px solid #00ff00;
    color: #00ff00;
}

.matrix-social-link:hover {
    background: #00ff00;
    color: #000;
}

.matrix-social-link svg {
    fill: currentColor;
}
