/**
 * Encurtador de URLs - Estilos Específicos da Ferramenta
 * Compatível com estrutura padrão do sistema
 */

/* ===== TOOL HEADER STYLES ===== */
.tool-header {
    background: linear-gradient(135deg, #1e293b, var(--primary-color)) !important;
    color: white !important;
    padding: 3rem 0 !important;
    text-align: center !important;
}

.tool-header h1 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    color: white !important;
}

.tool-header p {
    font-size: 1.2rem !important;
    opacity: 0.9 !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    color: white !important;
}

.security-badge {
    background: rgba(34, 197, 94, 0.2) !important;
    border: 1px solid #22c55e !important;
    color: #22c55e !important;
    padding: 0.5rem 1rem !important;
    border-radius: 2rem !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-top: 1rem !important;
}

/* Dark mode tool header */
body.dark-mode .tool-header {
    background: linear-gradient(135deg, var(--bg-dark), var(--primary-color)) !important;
}

body.dark-mode .security-badge {
    background: rgba(34, 197, 94, 0.1) !important;
    border-color: #22c55e !important;
    color: #22c55e !important;
}

/* ===== SHORTENER SECTION ===== */
.shortener {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.input-prefix {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

.form-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-color);
    color: var(--text-color);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.1);
}

.input-group .form-input {
    border-left: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    min-height: 45px;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-info {
    background: #3b82f6;
    color: white;
}

.btn-info:hover {
    background: #2563eb;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-copy {
    padding: 0.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-copy:hover {
    background: var(--accent-color);
    color: white;
}

.btn-loading {
    display: none;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== RESULTS SECTION ===== */
.results {
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.results-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.url-display {
    margin-bottom: 1.5rem;
}

.url-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.url-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.url-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    color: var(--text-color);
}

.original-url {
    color: var(--text-light);
    font-size: 0.9rem;
}

.short-url {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.url-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* ===== STATS ===== */
.stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.stats-item {
    text-align: center;
}

.stats-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* ===== FEATURES SECTION ===== */
.features {
    margin-bottom: 3rem;
    margin-top: 3rem;
}

.features-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.feature-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-color);
}

.modal-body {
    padding: 1.5rem;
    text-align: center;
}

.qr-container {
    margin: 1rem 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .shortener-card,
    .results-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .input-group {
        flex-direction: column;
    }

    .input-prefix {
        border-right: 1px solid var(--border-color);
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }

    .input-group .form-input {
        border-left: 1px solid var(--border-color);
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }

    .url-actions {
        flex-direction: column;
    }

    .stats {
        flex-direction: column;
        gap: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        margin: 0 1rem;
    }
}