/* 기본 스타일 */
* {
    box-sizing: border-box;
    outline: none !important;
}

*:focus,
*:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    box-shadow: none !important;
}

.hero-title:focus {
    outline: none !important;
    box-shadow: none !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* 앱 레이아웃 */
.app-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 헤더 네비게이션 */
.app-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.brand-icon {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* 메인 컨텐츠 */
.app-main {
    flex: 1;
}

/* 홈페이지 스타일 */
.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero 섹션 */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 4rem;
}

.hero-content {
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: white;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero-icon {
    font-size: 4rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin: 0 0 3rem 0;
    line-height: 1.6;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
}

.search-container {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 600px;
    width: 100%;
}

.search-input-large {
    flex: 1;
    border: none;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    outline: none;
    border-radius: 50px 0 0 50px;
}

.search-btn-large {
    background: #667eea;
    border: none;
    padding: 1.2rem 2rem;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0 50px 50px 0;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-btn-large:hover {
    background: #5a6fd8;
}

.search-icon {
    font-size: 1.2rem;
}

/* 통계 섹션 */
.stats-section {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* 섹션 제목 */
.section-title {
    font-size: 2.5rem;
    color: white;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: bold;
}

/* 기능 섹션 */
.features-section {
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* 카테고리 섹션 */
.categories-section {
    margin-bottom: 4rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.category-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    color: white;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.category-card p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
}

.view-all-section {
    text-align: center;
}

.btn-primary {
    background: #667eea;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* 최근 프롬프트 섹션 */
.recent-section {
    margin-bottom: 4rem;
}

.recent-prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.prompt-card-mini {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.prompt-card-mini:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

.prompt-card-mini .prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.prompt-card-mini h4 {
    color: white;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

.prompt-description-mini {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prompt-meta-mini {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* 프롬프트 갤러리 스타일 (Prompts 페이지) */
.prompt-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 갤러리 헤더 스타일 */
.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-title {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.gallery-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin: 0 0 2rem 0;
}

/* 검색 섹션 */
.search-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.search-input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    outline: none;
}

.search-btn {
    background: #667eea;
    border: none;
    padding: 1rem 1.5rem;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #5a6fd8;
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-filter {
    padding: 0.5rem 1rem;
    border: 2px solid white;
    border-radius: 25px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
}

.category-filter option {
    color: #333;
    background: white;
}

/* 갤러리 컨텐츠 */
.gallery-content {
    margin-top: 2rem;
}

/* 로딩 스타일 */
.loading {
    text-align: center;
    padding: 4rem 0;
    color: white;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 프롬프트 통계 */
.prompts-stats {
    text-align: center;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
}

.loading-more {
    display: inline-block;
    margin-left: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* 프롬프트 그리드 */
.prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* 프롬프트 카드 */
.prompt-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    height: fit-content;
}

/* 카드 애니메이션 클래스 */
.prompt-card-enter {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: cardEnter 0.4s ease forwards;
}

@keyframes cardEnter {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 배치별 지연 효과 */
.prompt-card-batch-1 { animation-delay: 0s; }
.prompt-card-batch-2 { animation-delay: 0.1s; }
.prompt-card-batch-3 { animation-delay: 0.2s; }
.prompt-card-batch-4 { animation-delay: 0.3s; }
.prompt-card-batch-5 { animation-delay: 0.4s; }

/* 로딩 상태 개선 */
.loading p.loading-progress {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

.prompt-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.favorite-btn-mini {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

.favorite-btn-mini:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.favorite-btn-mini:active {
    transform: scale(0.95);
}

/* PromptCard용 즐겨찾기 버튼 */
.prompt-card .favorite-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    min-width: auto;
    box-shadow: none;
}

.prompt-card .favorite-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
    box-shadow: none;
}

.prompt-card .favorite-btn:active {
    transform: scale(0.95);
}

.prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.prompt-header h4 {
    margin: 0;
    flex: 1;
    margin-right: 0.5rem;
}

.title-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.prompt-title {
    color: white;
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
    font-weight: 600;
}

.prompt-category {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    white-space: nowrap;
    font-weight: 500;
}

.prompt-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 프롬프트 태그 */
.prompt-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.tag-more {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-style: italic;
}

/* 프롬프트 푸터 */
.prompt-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.prompt-author {
    font-weight: 500;
}

.prompt-date {
    opacity: 0.8;
}

/* 즐겨찾기 스타일 */
.favorite-indicator {
    font-size: 1rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.prompt-card.favorite {
    border: 2px solid rgba(255, 215, 0, 0.6);
    background: rgba(255, 255, 255, 0.12);
}

.prompt-card.favorite:hover {
    border-color: rgba(255, 215, 0, 0.8);
    background: rgba(255, 255, 255, 0.18);
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 즐겨찾기 필터 스타일 */
.favorite-filter {
    margin-left: 1rem;
}

.favorite-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: white;
    font-size: 0.9rem;
    user-select: none;
}

.favorite-toggle input[type="checkbox"] {
    display: none;
}

.favorite-toggle .checkmark {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.favorite-toggle input[type="checkbox"]:checked + .checkmark {
    opacity: 1;
    transform: scale(1.1);
}

.favorite-toggle .label-text {
    font-weight: 500;
}

/* 결과 없음 스타일 */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: white;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.no-results p {
    opacity: 0.7;
    font-size: 1.1rem;
}

/* 모달 스타일 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    line-height: 1.3;
    flex: 1;
    margin-right: 1rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(0,0,0,0.1);
    color: #333;
}

.modal-body {
    padding: 1rem 2rem 2rem;
}

.prompt-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.category-badge {
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.author-info, .date-info {
    color: #666;
    font-size: 0.9rem;
}

.prompt-description-full {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.prompt-content {
    color: #333;
    line-height: 1.7;
    font-size: 1rem;
    margin: 1.5rem 0;
}

.prompt-content pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.prompt-content code {
    color: #333;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
}

.prompt-content h1, .prompt-content h2, .prompt-content h3 {
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.prompt-content p {
    margin-bottom: 1rem;
}

.prompt-content code {
    background: rgba(0,0,0,0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.prompt-content pre {
    background: rgba(0,0,0,0.05);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.prompt-tags-full {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.prompt-tags-full .tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1rem 2rem 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.copy-btn, .favorite-btn {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.copy-btn {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.copy-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.favorite-btn {
    background: rgba(255,255,255,0.8);
    color: #333;
    border: 2px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.favorite-btn:hover {
    background: rgba(255,255,255,0.9);
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* 푸터 */
.app-footer {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
    font-size: 1.1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p, .footer-bottom a {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-icon {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .search-container {
        flex-direction: column;
    }

    .search-input-large {
        border-radius: 25px;
        margin-bottom: 0.5rem;
    }

    .search-btn-large {
        border-radius: 25px;
    }

    .stats-section {
        flex-direction: column;
        gap: 1.5rem;
    }

    .features-grid,
    .categories-grid,
    .recent-prompts-grid,
    .prompts-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .home-container,
    .prompt-gallery {
        padding: 1rem;
    }

    .section-title,
    .gallery-title {
        font-size: 2rem;
    }

    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .modal-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-icon {
        font-size: 2.5rem;
    }

    .section-title,
    .gallery-title {
        font-size: 1.5rem;
    }

    .search-section {
        padding: 0 1rem;
    }

    .filter-section {
        flex-direction: column;
        width: 100%;
    }

    .category-filter {
        width: 100%;
    }
}
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-icon {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .search-container {
        flex-direction: column;
    }

    .search-input-large {
        border-radius: 25px;
        margin-bottom: 0.5rem;
    }

    .search-btn-large {
        border-radius: 25px;
    }

    .stats-section {
        flex-direction: column;
        gap: 1.5rem;
    }

    .features-grid,
    .categories-grid,
    .recent-prompts-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .home-container,
    .prompt-gallery {
        padding: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-icon {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
}