/* URL Shortener Styles */

.shortener-section {
    margin: 2rem 0;
}

.shortener-container {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shortener-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
    font-size: 1.1rem;
}

.shortener-icon {
    font-size: 1.5rem;
}

.input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.url-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.url-input:focus {
    border-color: #6c63ff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.2);
}

.url-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.shorten-button {
    padding: 14px 28px;
    background: linear-gradient(135deg, #6c63ff 0%, #5a52d5 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.shorten-button:hover {
    background: linear-gradient(135deg, #7b73ff 0%, #6c63ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(108, 99, 255, 0.4);
}

.shorten-button:active {
    transform: translateY(0);
}

/* Result Container */
.result-container {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.result-label {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.result-box {
    display: flex;
    gap: 10px;
}

.short-url-output {
    flex: 1;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #6c63ff;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    outline: none;
}

.copy-button {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.copy-feedback {
    color: #4ade80;
    font-size: 0.85rem;
    margin-top: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Error Message */
.error-message {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    font-size: 0.95rem;
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 1rem;
}

.loading span {
    width: 10px;
    height: 10px;
    background: #6c63ff;
    border-radius: 50%;
    animation: loadingBounce 0.6s infinite alternate;
}

.loading span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingBounce {
    from {
        opacity: 0.3;
        transform: translateY(0);
    }
    to {
        opacity: 1;
        transform: translateY(-10px);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .shortener-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .input-container {
        flex-direction: column;
    }

    .shorten-button {
        width: 100%;
    }

    .result-box {
        flex-direction: column;
    }

    .copy-button {
        width: 100%;
    }
}
