@charset "UTF-8";

/* Paleta de Cores */
:root {
    --color-bg-start: #2c3e50;
    --color-bg-end: #4ca1af;

    --color-card-bg: rgba(0, 0, 0, 0.25);
    --color-container-bg: rgba(255, 255, 255, 0.08);

    --color-text-main: #ffffff;
    --color-text-secondary: #dfe6e9;

    --color-button-bg: #4ca1af;
    --color-button-hover: #2c3e50;

    --color-input-bg: rgba(255, 255, 255, 0.15);
    --color-input-placeholder: #cccccc;

    --color-result-bg: rgba(255, 255, 255, 0.05);
    --shadow-default: 0 8px 20px rgba(0,0,0,0.25);

    --color-clear-bg: #e74c3c;
    --color-clear-hover: #c0392b;
}

/* Reset */
* {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Layout principal */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; /* empilha main + footer */
    background: linear-gradient(135deg, var(--color-bg-start), var(--color-bg-end));
}

/* Main ocupa todo o espaço entre topo e footer */
main.layout {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px;
}

/* Container principal */
.container {
    background: var(--color-container-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    color: var(--color-text-main);
    box-shadow: var(--shadow-default);
}

/* Títulos */
h1 {
    margin-bottom: 20px;
    font-size: 2em;
}

h2 {
    margin-bottom: 10px;
    font-size: 1.2em;
    color: var(--color-text-secondary);
}

/* Hero Image */
.hero-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    margin: 20px 0;
    border-radius: 12px;
    opacity: 0.5;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    display: block;
    transition: opacity 0.3s;
}

.hero-image:hover {
    opacity: 1;
}

/* Cards */
.card {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 12px;
    background: var(--color-card-bg);
}

/* Botões */
button {
    background: var(--color-button-bg);
    border: none;
    padding: 10px 18px;
    margin-top: 10px;
    font-size: 16px;
    color: var(--color-text-main);
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

button:hover {
    background: var(--color-button-hover);
    transform: scale(1.05);
}

/* Botão Limpar */
button.limpar {
    background: var(--color-clear-bg);
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.2s, background 0.3s;
}

button.limpar:hover {
    opacity: 1;
    transform: scale(1.05); 
}

/* Inputs */
input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    background: var(--color-input-bg);
    color: var(--color-text-main);
}

input::placeholder {
    color: var(--color-input-placeholder);
}

/* Resultado */
.result-box {
    margin-top: 10px;
    padding: 8px;
    border-radius: 8px;
    min-height: 30px;
    color: var(--color-text-main);
    font-size: 0.9em;
    word-break: break-word;
    background: var(--color-result-bg);
}

/* Footer */
.footer {
    width: 100%;
    padding: 10px 15px;
    text-align: center;
    color: var(--color-text-secondary);
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

/* Social icons dentro do footer */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 5px;
}

.social-icons img {
    width: 28px;
    height: 28px;
    transition: transform 0.2s, filter 0.3s;
}

.social-icons img:hover {
    transform: scale(1.2);
    filter: brightness(1.3);
}

/* Responsividade */
@media (max-width: 700px) {
    h1 {
        font-size: 1.5em;
    }

    button {
        width: 100%;
    }

    .layout {
        flex-direction: column;
    }

    .social-icons {
        gap: 10px;
    }

    .social-icons img {
        width: 24px;
        height: 24px;
    }
}