/**
 * OneTimeRead - Estilos Principais
 */

/* Reset básico */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #f8fafc;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.site-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.brand-text {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    padding: 0.5rem 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.3s ease;
}

.nav-link:hover {
    background: #f1f5f9;
}

/* Main content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-description {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Form styles */
.form-wrapper, .message-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.form-textarea, .form-input, .form-select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-textarea:focus, .form-input:focus, .form-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.char-counter {
    text-align: right;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: white;
    color: #2c3e50;
    border: 2px solid #e1e5e9;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #3498db;
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Link result */
.link-result {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    border: 2px solid #2ecc71;
}

.link-result h3 {
    color: #2ecc71;
    margin-bottom: 1rem;
}

.link-display {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.link-display input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 0.5rem;
    font-family: 'Courier New', monospace;
    background: #f8fafc;
}

.btn-copy {
    background: #2ecc71;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: #27ae60;
}

.link-warning {
    background: #fff3cd;
    color: #856404;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #ffeaa7;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature .icon, .feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
    width: 100%;
}

/* Message display */
.message-display {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.message-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.message-container.success {
    border: 3px solid #2ecc71;
}

.message-container.destroyed {
    border: 3px solid #f39c12;
}

.message-container.error {
    border: 3px solid #e74c3c;
}

.message-header {
    padding: 2rem;
    text-align: center;
}

.message-container.success .message-header {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 2rem; /* Manter padding normal aqui */
    margin: 0;
}

.message-container.success .message-header {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 0; /* Remove padding extra */
    margin: 0;  /* Remove margem */
}

.message-container.destroyed .message-header {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.message-container.error .message-header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.message-content {
    padding: 0; /* Remove padding completamente */
    margin: 0;
}

.message-text {
    background: #f8fafc;
    padding: 0 2rem 2rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.4;
    white-space: pre-line;
    word-wrap: break-word;
    margin: 0;
}

.message-footer {
    padding: 2rem;
    background: #f8fafc;
    text-align: center;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-info p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .main-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .link-display {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .form-wrapper, .message-form {
        padding: 1rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
}
         /* 🔧 CORREÇÃO DOS ÍCONES - ESTA É A PARTE IMPORTANTE */
        .feature-icon {
            font-size: 4rem;
            line-height: 1;
            text-align: center;
            display: block;
            margin: 0 auto 1.5rem auto;
            width: 100%;
        }

        .feature h4 {
            color: #333;
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 0.8rem;
            text-align: center;
        }

        .feature p {
            color: #666;
            font-size: 1rem;
            line-height: 1.5;
            text-align: center;
            margin: 0;
        }

        @media (max-width: 768px) {
            .features {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            
            .feature-icon {
                font-size: 3rem;
                margin-bottom: 1rem;
            }
        }