/* Custom styles for Apartment Guide */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

/* Card hover effects */
.howto-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.howto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Category section styling */
.category-section {
    margin-bottom: 2rem;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dee2e6;
}

.category-header i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    color: #0d6efd;
}

/* Content styling for markdown */
#content-container img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    margin: 1rem 0;
}

#content-container h1 {
    color: #212529;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0d6efd;
}

#content-container h2 {
    color: #495057;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

#content-container h3 {
    color: #6c757d;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

#content-container p {
    line-height: 1.7;
}

#content-container ul,
#content-container ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

#content-container li {
    margin-bottom: 0.5rem;
}

#content-container code {
    background-color: #f8f9fa;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

#content-container pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    overflow-x: auto;
}

#content-container blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #6c757d;
}

/* YouTube embed container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 1.5rem 0;
    border-radius: 0.375rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0.375rem;
}

/* Search highlight */
.search-highlight {
    background-color: #fff3cd;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Card description truncation */
.card-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
