.xkcd-container {
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
    background: #fff;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.input-section {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.post-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--color-border);
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: var(--transition);
    min-height: 120px;
}

.post-textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.post-textarea::placeholder {
    color: var(--color-text-light);
}

.find-button {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.find-button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.find-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.result-section {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.comic-container {
    text-align: center;
}

.comic-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.comic-image {
    margin: 1.5rem 0;
}

.comic-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
}

.comic-alt {
    font-style: italic;
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 1rem auto 0;
}

.comic-number {
    display: inline-block;
    background: var(--color-surface);
    color: var(--color-text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.comic-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.copy-button {
    background: var(--color-surface);
    color: var(--color-text);
    border: 2px solid var(--color-border);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-button:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

.copy-button:active {
    transform: translateY(0);
}

.copy-button.copied {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.copy-button.copied:hover {
    background: #059669;
    border-color: #059669;
}

.voting-buttons {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

.vote-button {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vote-button:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vote-button:active:not(:disabled) {
    transform: scale(0.95);
}

.vote-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.vote-text {
    display: none;
}

.upvote-button:hover:not(:disabled) {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.downvote-button:hover:not(:disabled) {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.vote-button.voted.upvote-button {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.vote-button.voted.downvote-button {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.vote-button.voted:hover {
    transform: scale(1.05);
}

.loading-section {
    text-align: center;
    padding: 3rem 2rem;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content p {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .input-section,
    .result-section {
        margin: 0 1rem 2rem;
        padding: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .find-button {
        width: 100%;
        justify-content: center;
    }
    
    .comic-actions {
        gap: 0.75rem;
    }
    
    .voting-buttons {
        position: static;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .vote-button {
        width: 44px;
        height: 44px;
        padding: 0.6rem;
    }
    
    .copy-button {
        width: 100%;
        justify-content: center;
    }
} 