/* Dark mode specific styles */
[data-bs-theme="dark"] .card {
    background-color: #2b3035;
    border-color: #373b3e;
}

[data-bs-theme="dark"] .ascii-preview,
[data-bs-theme="dark"] .ascii-content {
    background-color: #212529;
}

[data-bs-theme="dark"] .search-container {
    background-color: #2b3035;
}

/* General styles */
.ascii-preview {
    font-family: monospace;
    font-size: 0.8em;
    white-space: pre;
    overflow: hidden;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
    max-height: 200px;
}

.ascii-content {
    position: relative;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    padding: 1rem;
    margin-top: 1rem;
}

.ascii-content pre {
    font-family: monospace;
    white-space: pre;
    overflow-x: auto;
    margin-bottom: 0;
    line-height: 1.2;
}

.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.copy-btn:hover {
    opacity: 1;
}

.card {
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    text-decoration: none;
    color: inherit;
}

.card-link:hover {
    color: inherit;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.card .btn {
    position: relative;
    z-index: 2;
}

.card-img-top {
    object-fit: contain;
    height: 300px;
    background-color: transparent;
    padding: 1rem;
}

.art-detail-img {
    height: 800px;
}

.search-container {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Theme toggle button */
#theme-toggle {
    padding: 0.375rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.2s;
}

#theme-toggle:hover {
    transform: scale(1.1);
}

/* Pagination styles */
.pagination {
    margin-top: 2rem;
}

.page-link {
    padding: 0.5rem 1rem;
}

/* Loading states */
.card-img-top.loading {
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
    to {
        background-position-x: -200%;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-img-top {
        height: 200px;
    }
    
    .art-detail-img {
        height: 600px;
    }
    
    .search-container {
        padding: 1rem;
    }
}

/* Footer adjustments */
.footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
}