* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #e5e5e5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px 40px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: #5b21b6;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    font-weight: 400;
}

.nav-link {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 10px;
    color: #5b21b6;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.3s;
}

.nav-link:hover {
    background: rgba(91, 33, 182, 0.05);
}

/* Main Card */
.main-card {
    background: white;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Input Section */
.input-section {
    margin-bottom: 24px;
}

.input-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.url-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
}

.url-input:focus {
    border-color: #5b21b6;
    box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.1);
}

.url-input::placeholder {
    color: #9ca3af;
}

/* Shorten Button */
.shorten-btn {
    width: 100%;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(91, 33, 182, 0.3);
}

.shorten-btn:hover {
    background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(91, 33, 182, 0.4);
}

.shorten-btn:active {
    transform: translateY(0);
}

.result-info {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    word-break: break-all;
}

.original-url-text {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Result Section */
.result-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid #f3f4f6;
}

.result-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.result-container {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.shortened-url {
    flex: 1;
    padding: 16px 20px;
    font-size: 1rem;
    border: 2px solid #5b21b6;
    border-radius: 12px;
    background: #f9fafb;
    color: #5b21b6;
    font-weight: 500;
    outline: none;
}

.copy-btn {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: #5b21b6;
    background: white;
    border: 2px solid #5b21b6;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #5b21b6;
    color: white;
}

.success-message {
    margin-top: 12px;
    padding: 12px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: white;
    border-radius: 16px;
    padding: 40px 48px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 24px;
}

.footer-section {
    color: #555;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5b21b6;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.footer-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
}

.footer-contact {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .hero {
        padding: 40px 16px 30px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .main-card {
        padding: 32px 24px;
        border-radius: 12px;
    }

    .result-container {
        flex-direction: column;
    }

    .copy-btn {
        width: 100%;
    }

    .footer {
        padding: 32px 24px;
        border-radius: 12px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .main-card {
        padding: 24px 20px;
    }

    .shorten-btn {
        font-size: 1rem;
        padding: 14px 24px;
    }
}