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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: linear-gradient(180deg, #EFF6FF 0%, #FFFFFF 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px;
}

/* 헤더 */
.header {
    text-align: center;
    margin-bottom: 48px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.header h1 {
    font-size: 2.5em;
    font-weight: 700;
    color: #1E3A8A;
    letter-spacing: 1.2px;
}

.subtitle {
    font-size: 1.1em;
    color: #6B7280;
}

/* 서비스 카드 */
.service-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
}

.service-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.service-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.service-card.disabled:hover {
    transform: none;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.blue-gradient {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.purple-gradient {
    background: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.pink-gradient {
    background: linear-gradient(135deg, #EC4899 0%, #F472B6 100%);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.green-gradient {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.card-content {
    flex: 1;
}

.card-content h2 {
    font-size: 1.25em;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.card-content p {
    font-size: 0.875em;
    color: #6B7280;
    margin-bottom: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.6875em;
    font-weight: 600;
}

.blue-badge {
    background: #EFF6FF;
    color: #2563EB;
}

.purple-badge {
    background: #F5F3FF;
    color: #7C3AED;
}

.pink-badge {
    background: #FCE7F3;
    color: #DB2777;
}

.green-badge {
    background: #D1FAE5;
    color: #059669;
}

/* 푸터 */
.footer {
    text-align: center;
    color: #9CA3AF;
    font-size: 0.875em;
}

/* 보도자료 관련 스타일 */
.page-header {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-button {
    background: none;
    border: none;
    color: #111827;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-title {
    font-size: 1.25em;
    font-weight: 600;
    color: #111827;
}

.save-button {
    background: none;
    border: 2px solid #3B82F6;
    color: #3B82F6;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.save-button:hover {
    background: #EFF6FF;
}

/* 입력 카드 */
.input-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}

.input-label {
    font-size: 1.125em;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.required {
    color: #EF4444;
}

.input-hint {
    font-size: 0.75em;
    color: #6B7280;
    margin-top: 8px;
}

.category-chips {
    display: flex;
    gap: 8px;
}

.category-chip {
    flex: 1;
    padding: 12px;
    border: 1.5px solid #D1D5DB;
    background: #F9FAFB;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9375em;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s;
}

.category-chip.selected {
    background: #3B82F6;
    border-color: #3B82F6;
    color: white;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: #F9FAFB;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    resize: none;
    overflow: hidden;
}

input[type="text"]:focus,
textarea:focus {
    outline: 2px solid #3B82F6;
    outline-offset: -2px;
}

textarea {
    min-height: 100px;
}

.generate-button {
    width: 100%;
    padding: 16px;
    background: #3B82F6;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
}

.generate-button:hover {
    background: #2563EB;
}

.generate-button:disabled {
    background: #D1D5DB;
    cursor: not-allowed;
}

/* 생성된 보도자료 */
.result-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-top: 24px;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.result-content {
    padding: 16px;
    background: #F9FAFB;
    border-radius: 8px;
    color: #1F2937;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* 로딩 스피너 */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3B82F6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

/* 보도자료 목록 */
.search-bar {
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    background: #F9FAFB url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%239CA3AF" stroke-width="2"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></svg>') no-repeat 12px center;
    border: none;
    border-radius: 12px;
    font-size: 1em;
}

.release-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.release-item {
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.2s;
}

.release-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.release-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.category-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.6875em;
    font-weight: 600;
}

.category-badge.정책 {
    background: #DCFCE7;
    color: #16A34A;
}

.category-badge.행사 {
    background: #FFEDD5;
    color: #EA580C;
}

.category-badge.발표 {
    background: #E0E7FF;
    color: #4F46E5;
}

.ai-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.6875em;
    font-weight: 600;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #2563EB;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.release-title {
    font-size: 1em;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.release-subtitle {
    font-size: 0.875em;
    color: #6B7280;
    margin-bottom: 12px;
}

.release-info {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.75em;
    color: #9CA3AF;
}

.fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #3B82F6;
    color: white;
    border: none;
    border-radius: 28px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

/* 반응형 */
@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
    }

    .header h1 {
        font-size: 2em;
    }

    .logo-icon {
        width: 60px;
        height: 60px;
    }
}
