* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: floatUp 0.8s ease-out;
}

@keyframes floatUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

h1 {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.phrase-button {
    padding: 20px;
    border: none;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.phrase-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.phrase-button:hover::before {
    left: 100%;
}

.phrase-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.phrase-button:active {
    transform: translateY(-1px);
}

.btn-naos {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.btn-naos:hover {
    background: linear-gradient(135deg, #ff5252, #e53935);
}

.btn-curiosidades {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.btn-curiosidades:hover {
    background: linear-gradient(135deg, #26a69a, #00695c);
}

.btn-geek {
    background: linear-gradient(135deg, #a8e6cf, #7fcdcd);
}

.btn-geek:hover {
    background: linear-gradient(135deg, #81c784, #66bb6a);
}

.btn-insultis {
    background: linear-gradient(135deg, #ffd93d, #ff8c42);
}

.btn-insultis:hover {
    background: linear-gradient(135deg, #ffca28, #ff9800);
}

.btn-desmotivacionais {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.btn-desmotivacionais:hover {
    background: linear-gradient(135deg, #5f3dc4, #9775fa);
}

.btn-bomdia {
    background: linear-gradient(135deg, #507ee0, #729dfc);
}

.btn-bomdia:hover {
    background: linear-gradient(135deg, #4368b9, #5e90fc);
}

.phrase-display {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.phrase-display.show {
    opacity: 1;
    transform: translateY(0);
}

.phrase-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
    text-align: center;
    font-style: italic;
    position: relative;
}

.phrase-text::before,
.phrase-text::after {
    content: '"';
    font-size: 2rem;
    color: #667eea;
    opacity: 0.3;
    position: absolute;
    font-family: serif;
}

.phrase-text::before {
    top: -10px;
    left: -20px;
}

.phrase-text::after {
    bottom: -30px;
    right: -20px;
}

.phrase-text .ia-tag {
    font-size: 0.5em;
    color: #888;
    margin-left: 8px;
    font-style: italic;
    white-space: nowrap;
}

.loading {
    color: #666;
    font-style: normal;
}

.loading::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.error {
    color: #e53935;
    font-style: normal;
    background: rgba(255, 235, 238, 0.8);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #e53935;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
        margin: 10px;
    }

    h1 {
        font-size: 2rem;
    }

    .buttons-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 1fr);
        max-width: 300px;
    }

    .phrase-button {
        padding: 18px;
        font-size: 0.9rem;
        min-height: 70px;
    }

    .phrase-text {
        font-size: 1.1rem;
    }
}

.button-icon {
    margin-bottom: 5px;
    font-size: 1.5rem;
    display: block;
}

.stats {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.github-link {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.github-link:hover {
    opacity: 1;
    color: white;
}

.github-icon {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

/* Animação das partículas flutuantes */
@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}