/* 3explain.com - Final Styles 
   Design: Neon High-Contrast (Electric Orange & Anthracite)
*/

:root {
    --bg-color: #0d0d0d;
    --card-bg: #1a1a1a;
    --neon-orange: #FF5F00; 
    --neon-glow: 0 0 25px rgba(255, 95, 0, 0.4);
    --text-light: #f5f5f5;
    --text-dark: #000000;
    --insta-gradient: linear-gradient(45deg, #FF5F00 0%, #d62976 50%, #962fbf 100%);
}

body {
    background-color: var(--bg-color);
    color: var(--text-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 95%;
    max-width: 450px;
    padding: 20px;
    text-align: center;
}

/* Header & Streak Badge */
header {
    margin-bottom: 40px;
}

.logo {
    font-weight: 900;
    font-size: 3rem;
    letter-spacing: -2px;
    margin: 0;
}

.logo span {
    color: var(--neon-orange);
    text-shadow: var(--neon-glow);
}

.streak-badge {
    display: inline-block;
    background: rgba(255, 95, 0, 0.1);
    color: var(--neon-orange);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid var(--neon-orange);
    margin-top: 10px;
    transition: all 0.3s ease;
}

/* Input Area */
.input-area h2 {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 25px;
    opacity: 0.7;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input {
    background: #151515;
    border: 2px solid #222;
    border-radius: 16px;
    padding: 18px;
    color: white;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
}

input:focus {
    border-color: var(--neon-orange);
    box-shadow: var(--neon-glow);
    animation: pulseGlow 2s infinite;
}

button#explainBtn {
    background: var(--neon-orange);
    color: var(--text-dark);
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s;
}

button#explainBtn:hover {
    box-shadow: var(--neon-glow);
    transform: translateY(-2px);
}

button#explainBtn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Die Expert-Card */
.expert-card {
    background: var(--neon-orange);
    color: var(--text-dark);
    margin-top: 40px;
    padding: 35px;
    border-radius: 24px;
    text-align: left;
    box-shadow: var(--neon-glow);
    display: none; /* Wird via JS auf block gesetzt */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.expert-card.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.expert-card h3 {
    margin: 0 0 20px 0;
    font-size: 1.7rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
}

.sentence {
    font-weight: 600;
    line-height: 1.4;
    margin: 12px 0;
    font-size: 1.1rem;
}

.fun-fact {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid rgba(0,0,0,0.1);
    font-size: 0.95rem;
    font-style: italic;
}

.card-footer {
    margin-top: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    opacity: 0.5;
    text-align: right;
}

/* Instagram Share Button */
.insta-btn {
    margin-top: 25px;
    width: 100%;
    border: none;
    border-radius: 50px;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--insta-gradient);
    background-size: 200% auto;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(214, 41, 118, 0.3);
}

.insta-btn:hover {
    background-position: right center;
    transform: translateY(-2px);
}

.btn-icon {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Animations & Helper */
.hidden { display: none; }

@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px rgba(255, 95, 0, 0.2); }
    50% { box-shadow: 0 0 25px rgba(255, 95, 0, 0.5); }
    100% { box-shadow: 0 0 10px rgba(255, 95, 0, 0.2); }
}

@media (max-width: 480px) {
    .logo { font-size: 2.5rem; }
    .expert-card { padding: 25px; }
}


.trending-area {
    margin-top: 30px;
    text-align: left;
    animation: fadeIn 1s ease;
}

.trending-area p {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trend-tag {
    background: #1a1a1a;
    border: 1px solid #333;
    color: var(--neon-orange);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.trend-tag:hover {
    border-color: var(--neon-orange);
    background: rgba(255, 95, 0, 0.1);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Footer Styles */
footer {
    width: 95%;
    max-width: 450px;
    margin-top: 60px;
    padding: 20px 0;
    border-top: 1px solid #222;
    text-align: center;
}

.copyright {
    font-size: 0.75rem;
    color: #555;
    margin-top: 15px;
}

.info-link {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid var(--neon-orange);
    border-radius: 50%;
    color: var(--neon-orange);
    font-family: 'serif'; /* Für ein klassisches "i" */
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.info-link:hover .info-icon {
    background: var(--neon-orange);
    color: black;
    box-shadow: var(--neon-glow);
}

.info-link:hover {
    transform: scale(1.1);
}