:root {
    --primary-color: #1a73e8;
    --secondary-color: #5f6368;
    --background-color: #f8f9fa;
    --surface-color: #ffffff;
    --error-color: #d93025;
    --text-primary: rgba(0, 0, 0, 0.87);
    --text-secondary: rgba(0, 0, 0, 0.6);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: none;
}

body {
    font-family: 'Noto Sans KR', -apple-system, system-ui, BlinkMacSystemFont, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.app-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.app-bar h1 {
    font-size: 18px;
    font-weight: 500;
}

.container {
    max-width: 800px;
    margin: 56px auto 16px;
    padding: 16px;
}

.fab {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1001;
    overflow-y: auto;
}

.modal-content {
    background-color: var(--surface-color);
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.modal-header {
    padding: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 500;
}

.modal-body {
    padding: 16px;
}

.modal-footer {
    padding: 16px;
    border-top: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.input-field {
    margin-bottom: 16px;
}

.input-field input,
.input-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}

.input-field textarea {
    height: 200px;
    resize: vertical;
}

.button {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.button.primary {
    background-color: var(--primary-color);
    color: white;
}

.button.secondary {
    background-color: transparent;
    color: var(--primary-color);
}

.post {
    background-color: var(--surface-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.post-title {
    font-size: 16px;
    font-weight: 500;
    flex: 1;
    margin-right: 8px;
}

.post-content {
    color: var(--text-secondary);
    margin: 12px 0;
    font-size: 14px;
    white-space: pre-wrap;
    word-break: break-all;
}

.post-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.error {
    color: var(--error-color);
    margin-top: 8px;
    font-size: 14px;
}

.close-button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 600px) {
    .modal-content {
        margin: 0;
        height: 100%;
        max-width: none;
        border-radius: 0;
    }
    
    .modal {
        padding: 0;
    }
    
    .modal-body {
        flex: 1;
        overflow-y: auto;
    }
    
    .container {
        padding: 12px;
    }
    
    .fab {
        bottom: 16px;
        right: 16px;
    }

    .input-field input,
    .input-field textarea {
        font-size: 16px;
    }
}