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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    text-align: center;
    padding: 60px 0 40px;
}

.header-content {
    max-width: 600px;
    margin: 0 auto;
}

.title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.title i {
    margin-right: 16px;
    color: #ffd700;
}

.subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 40px;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    backdrop-filter: blur(10px);
}

.joke-form {
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.text-input {
    padding: 16px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.text-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.generate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

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

.joke-output {
    animation: fadeInUp 0.5s ease;
}

.joke-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    position: relative;
    border-left: 4px solid #667eea;
}

.quote-icon {
    color: #667eea;
    font-size: 1.5rem;
    opacity: 0.6;
}

.joke-text {
    font-size: 1.2rem;
    color: #333;
    margin: 20px 0;
    font-style: italic;
    line-height: 1.6;
}

.error-message {
    animation: fadeInUp 0.5s ease;
}

.error-card {
    background: linear-gradient(135deg, #ffe8e8 0%, #ffcccc 100%);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border-left: 4px solid #e74c3c;
}

.error-card i {
    color: #e74c3c;
    font-size: 2rem;
    margin-bottom: 15px;
}

.error-text {
    color: #c0392b;
    font-size: 1.1rem;
}

.footer {
    margin-top: auto;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
}

.author-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.author-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.profile-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
}

.author-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.author-name {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.github-icon {
    color: white;
    font-size: 1.2rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .title {
        font-size: 2.5rem;
    }

    .card {
        padding: 30px 20px;
    }

    .input-group {
        gap: 15px;
    }

    .author-link {
        flex-direction: column;
        gap: 10px;
        padding: 20px;
    }

    .author-info {
        align-items: center;
    }
}

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

    .subtitle {
        font-size: 1.1rem;
    }

    .text-input, .generate-btn {
        font-size: 1rem;
    }
}
