/* Базовые стили */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.container {
    text-align: center;
    background: rgba(0,0,0,0.3);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
}

h1 {
    margin-bottom: 10px;
    font-size: 2.5em;
}

p {
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Форма */
.shorten-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.shorten-form input[type="url"] {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 1em;
    min-width: 250px;
    transition: 0.3s;
}

.shorten-form input[type="url"]:focus {
    transform: scale(1.05);
}

.shorten-form button {
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    background: #ffdd59;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.shorten-form button:hover {
    background: #ffc107;
    transform: scale(1.05);
}

/* Результат */
#result {
    margin-top: 25px;
    font-size: 1.2em;
    word-break: break-all;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

#result.show {
    opacity: 1;
    transform: translateY(0);
}

.short-link a {
    color: #ffdd59;
    text-decoration: none;
    font-weight: bold;
}

.short-link a:hover {
    text-decoration: underline;
}
