@import url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2107@1.1/NanumSquare.css');

:root {
    --primary-color: #2c3e50;
    --background-color: #ffffff;
    --text-color: #2c3e50;
    --accent-color: #3498db;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'NanumSquare', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main {
    flex: 1;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

#footer {
    display: block;
    width: 100%;
    min-height: auto;
}

.section {
    max-width: 800px;
    margin: 30px auto;
    background: var(--background-color);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    opacity: 0;
    z-index: 0;
}

.section-group {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 32px;
    margin-bottom: 25px;
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-intro {
    font-size: 17px;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.8;
}

.homepage-button {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.1);
    position: relative;
    overflow: hidden;
}

.homepage-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.homepage-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.15);
    color: #ffffff;
}

.homepage-button:hover::before {
    width: 300px;
    height: 300px;
}

.kmong-buttons {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.kmong-btn {
    flex: 1 1 220px;
    background: #ffffff;
    border: 1px solid rgba(44, 62, 80, 0.25);
    border-radius: 20px;
    padding: 18px 24px;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition:
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.kmong-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-color);
}

.kmong-btn.primary {
    background: linear-gradient(135deg, #ffde59 0%, #ffc100 100%);
    border: none;
    color: #2c3e50;
}

.kmong-btn.accent {
    background: linear-gradient(135deg, #6dd5ed 0%, #2193b0 100%);
    border: none;
    color: #ffffff;
}

.kmong-btn.outline {
    background: rgba(44, 62, 80, 0.04);
}

.kmong-btn-title {
    font-size: 15px;
    font-weight: 700;
}

.kmong-btn-desc {
    font-size: 12px;
    opacity: 0.85;
}

.kmong-btn-arrow {
    align-self: flex-end;
    font-size: 18px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.kmong-btn:not(.disabled):hover .kmong-btn-arrow {
    transform: translateX(6px);
}

.kmong-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.2);
}

.auth-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px;
    border: 1px solid rgba(44, 62, 80, 0.08);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.auth-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-status:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border-color: rgba(44, 62, 80, 0.12);
}

.auth-status:hover::before {
    opacity: 1;
}

.auth-status-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.auth-status-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(44, 62, 80, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-status-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.4;
}

.auth-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.auth-btn {
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.auth-btn:hover::before {
    width: 300px;
    height: 300px;
}

.auth-btn.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.2);
}

.auth-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.3);
}

.auth-btn.secondary {
    background: rgba(44, 62, 80, 0.06);
    color: var(--text-color);
    border: 1px solid rgba(44, 62, 80, 0.1);
}

.auth-btn.secondary:hover {
    background: rgba(44, 62, 80, 0.1);
    border-color: rgba(44, 62, 80, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.15);
}

.auth-btn.danger {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.auth-btn.danger:hover {
    background: rgba(231, 76, 60, 0.15);
    border-color: rgba(231, 76, 60, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

.news-auth-notice {
    font-size: 13px;
    color: rgba(44, 62, 80, 0.6);
    margin-bottom: 8px;
    padding: 0;
}

.user-stats-container {
    margin-top: 24px;
    padding: 24px;
    background: rgba(44, 62, 80, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(44, 62, 80, 0.08);
}

.user-stats-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
}

.user-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.user-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--background-color);
    border-radius: 12px;
    border: 1px solid rgba(44, 62, 80, 0.1);
    transition: all 0.2s ease;
}

.user-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-color);
}

.user-stat-icon {
    font-size: 24px;
    line-height: 1;
}

.user-stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.user-stat-label {
    font-size: 12px;
    color: rgba(44, 62, 80, 0.6);
    font-weight: 600;
}

.user-followers-list {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(44, 62, 80, 0.1);
}

.user-followers-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
}

.user-followers-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.user-follower-item {
    padding: 12px 16px;
    background: var(--background-color);
    border-radius: 8px;
    border: 1px solid rgba(44, 62, 80, 0.1);
    transition: all 0.2s ease;
}

.user-follower-item:hover {
    background: rgba(52, 152, 219, 0.05);
    border-color: var(--accent-color);
}

.user-follower-email {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 600;
}

.user-follower-empty {
    padding: 20px;
    text-align: center;
    color: rgba(44, 62, 80, 0.6);
    font-size: 14px;
    font-style: italic;
}

.news-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-write-toggle-container {
    display: flex;
    justify-content: flex-end;
    margin: 20px 0;
}

.news-write-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    font-family: 'NanumSquare', sans-serif;
}

.news-write-toggle-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f6391 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.news-write-toggle-btn:active {
    transform: translateY(0);
}

.news-write-toggle-btn.active {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.news-write-toggle-btn.active:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

.news-write-toggle-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.news-write-toggle-btn.active .news-write-toggle-icon {
    transform: rotate(90deg);
}

.news-write-toggle-text {
    font-size: 16px;
}

body.dark-mode .news-write-toggle-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

body.dark-mode .news-write-toggle-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f6391 100%);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.5);
}

body.dark-mode .news-write-toggle-btn.active {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

body.dark-mode .news-write-toggle-btn.active:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.5);
}

.news-form {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.news-form[hidden] {
    display: none !important;
}

.news-form:not([hidden]) {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 2000px;
    }
}

.news-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.news-sort-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.news-sort-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(44, 62, 80, 0.2);
    background: rgba(44, 62, 80, 0.04);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.news-sort-btn:hover {
    background: rgba(44, 62, 80, 0.08);
    border-color: rgba(44, 62, 80, 0.3);
    transform: translateY(-1px);
}

.news-sort-btn.active {
    background: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.news-sort-btn.active:hover {
    background: #2980b9;
    border-color: #2980b9;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.news-sort-btn span {
    font-size: 16px;
    line-height: 1;
}

.news-filter-controls {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(44, 62, 80, 0.02);
    border-radius: 12px;
}

.news-filter-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.news-filter-header #newsFilterAll {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    min-height: auto;
    min-width: auto;
    touch-action: manipulation;
    background: rgba(44, 62, 80, 0.04);
    border: 1px solid rgba(44, 62, 80, 0.2);
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
    color: var(--text-color);
}

.news-filter-header #newsFilterAll:hover {
    background: rgba(44, 62, 80, 0.08);
    border-color: rgba(44, 62, 80, 0.3);
    transform: translateY(-1px);
}

.news-filter-header #newsFilterAll:active {
    transform: translateY(0);
}

.news-filter-header #newsFilterAll.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.2);
}

.news-filter-header #newsFilterAll.active:hover {
    background: #34495e;
    border-color: #34495e;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.news-filter-header #newsFilterAll .toggle-icon {
    display: none;
    font-size: 12px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    opacity: 0.7;
}

.news-filter-header #newsFilterAll.active .toggle-icon {
    transform: rotate(180deg);
}

.news-filter-header #newsFilterAll[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.news-filter-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    opacity: 1;
    max-height: none;
    overflow: visible;
    margin-top: 12px;
}

.news-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.news-filter-group-label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(44, 62, 80, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 0;
}

.news-filter-group-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.news-filter-btn {
    padding: 8px 16px;
    border: 1px solid rgba(44, 62, 80, 0.2);
    background: rgba(44, 62, 80, 0.04);
    color: var(--text-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.news-filter-btn:hover {
    background: rgba(44, 62, 80, 0.08);
    border-color: rgba(44, 62, 80, 0.3);
    transform: translateY(-1px);
}

.news-filter-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.2);
}

.news-filter-btn.active:hover {
    background: #34495e;
    border-color: #34495e;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.feature-updates-container {
    margin-top: 16px;
    padding: 16px;
    background: rgba(46, 204, 113, 0.08);
    border: 2px solid rgba(46, 204, 113, 0.3);
    border-radius: 12px;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-updates-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.feature-updates-icon {
    font-size: 20px;
    line-height: 1;
}

.feature-updates-title {
    font-size: 15px;
    font-weight: 700;
    color: #27ae60;
}

.feature-updates-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.feature-update-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 8px;
    border-left: 3px solid #27ae60;
}

.feature-update-badge {
    background: #27ae60;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.feature-update-text {
    font-size: 14px;
    color: #27ae60;
    font-weight: 600;
    flex: 1;
}

.news-form {
    background: rgba(44, 62, 80, 0.03);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-add-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(52, 152, 219, 0.05);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 8px;
}

.link-add-label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

body.dark-mode .link-add-label {
    color: #ffffff;
}

.link-add-input-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.link-add-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid rgba(44, 62, 80, 0.2);
    border-radius: 8px;
    background: #ffffff;
    color: #2c3e50;
    transition: all 0.2s ease;
    font-family: 'NanumSquare', sans-serif;
}

.link-add-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

body.dark-mode .link-add-input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

body.dark-mode .link-add-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.link-add-input::placeholder {
    color: rgba(44, 62, 80, 0.5);
}

body.dark-mode .link-add-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.link-add-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'NanumSquare', sans-serif;
}

.link-add-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f6391 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.link-add-btn:active {
    transform: translateY(0);
}

body.dark-mode .link-add-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

body.dark-mode .link-add-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f6391 100%);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

@media screen and (max-width: 768px) {
    .news-write-toggle-container {
        margin: 16px 0;
    }

    .news-write-toggle-btn {
        padding: 12px 24px;
        font-size: 15px;
    }

    .news-write-toggle-icon {
        font-size: 16px;
    }

    .news-write-toggle-text {
        font-size: 15px;
    }

    .link-add-container {
        padding: 10px;
    }
    
    .link-add-input-group {
        flex-direction: column;
    }
    
    .link-add-input {
        min-width: 100%;
    }
    
    .link-add-btn {
        width: 100%;
    }
}

.news-input,
.news-textarea,
.news-select {
    width: 100%;
    border: 1px solid rgba(44, 62, 80, 0.25);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 15px;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    resize: vertical;
    font-family: 'NanumSquare', sans-serif;
    background: var(--background-color);
    color: var(--text-color);
}

.news-textarea {
    min-height: 150px;
    line-height: 1.6;
}

.news-select {
    cursor: pointer;
}

.news-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.rating-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: rgba(241, 196, 15, 0.05);
    border: 1px solid rgba(241, 196, 15, 0.2);
    border-radius: 12px;
}

.rating-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.rating-description {
    font-size: 12px;
    color: rgba(44, 62, 80, 0.6);
    margin: 0;
    line-height: 1.4;
}

.rating-stars {
    display: flex;
    gap: 4px;
    align-items: center;
}

.rating-star {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
    filter: grayscale(1) opacity(0.4);
    line-height: 1;
}

.rating-star:hover:not(:disabled) {
    transform: scale(1.2);
    filter: grayscale(0) opacity(1);
}

.rating-star.active:not(:disabled) {
    filter: grayscale(0) opacity(1);
    transform: scale(1.1);
}

.rating-star:disabled {
    cursor: not-allowed;
    opacity: 0.3;
    pointer-events: none;
    filter: grayscale(1) opacity(0.3);
}

.rating-value {
    font-size: 14px;
    font-weight: 700;
    color: #f39c12;
    margin-left: 8px;
}

.contact-container {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: rgba(52, 152, 219, 0.05);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 12px;
}

.contact-container:not([hidden]) {
    display: flex;
}

.contact-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.contact-description {
    font-size: 12px;
    color: rgba(44, 62, 80, 0.6);
    margin: 0;
    line-height: 1.4;
}

.news-rating-display {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    margin-bottom: 4px;
}

.rating-star-display {
    font-size: 18px;
    line-height: 1;
    filter: grayscale(1) opacity(0.3);
    transition: filter 0.2s ease;
}

.rating-star-display.filled {
    filter: grayscale(0) opacity(1);
}

.rating-score {
    font-size: 14px;
    font-weight: 700;
    color: #f39c12;
    margin-left: 8px;
}

.news-input:focus,
.news-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

/* URL 미리보기 컨테이너 */
.url-preview-container {
    margin-top: 12px;
    margin-bottom: 12px;
}

.url-preview {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(44, 62, 80, 0.15);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    max-width: 100%;
    overflow: hidden;
}

.url-preview:hover {
    border-color: rgba(52, 152, 219, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.url-preview-image-container {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(44, 62, 80, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.url-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.url-preview-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.url-preview-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.url-preview-description {
    font-size: 12px;
    color: rgba(44, 62, 80, 0.7);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.url-preview-url {
    font-size: 11px;
    color: rgba(52, 152, 219, 0.8);
    margin-top: 2px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.url-preview-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(44, 62, 80, 0.1);
    color: rgba(44, 62, 80, 0.7);
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.url-preview-close:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

/* 다크 모드 URL 미리보기 */
body.dark-mode .url-preview {
    background: rgba(44, 62, 80, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .url-preview:hover {
    border-color: rgba(52, 152, 219, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .url-preview-image-container {
    background: rgba(0, 0, 0, 0.2);
}

body.dark-mode .url-preview-title {
    color: #ffffff;
}

body.dark-mode .url-preview-description {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .url-preview-url {
    color: rgba(126, 200, 255, 0.9);
}

body.dark-mode .url-preview-close {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .url-preview-close:hover {
    background: rgba(231, 76, 60, 0.3);
    color: #ff8a7d;
}

/* 게시글 내 URL 미리보기 */
.news-url-preview-container {
    margin: 16px 0;
}

.news-url-preview {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(44, 62, 80, 0.15);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    max-width: 100%;
    overflow: hidden;
    cursor: pointer;
}

.news-url-preview:hover {
    border-color: rgba(52, 152, 219, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.news-url-preview-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    text-decoration: none;
}

.news-url-preview-image-container {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(44, 62, 80, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-url-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-url-preview-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 2;
}

.news-url-preview-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-url-preview-description {
    font-size: 12px;
    color: rgba(44, 62, 80, 0.7);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-url-preview-url {
    font-size: 11px;
    color: rgba(52, 152, 219, 0.8);
    margin-top: 2px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.news-url-preview-loading {
    padding: 12px;
    text-align: center;
    color: rgba(44, 62, 80, 0.6);
    font-size: 13px;
}

body.dark-mode .news-url-preview {
    background: rgba(44, 62, 80, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .news-url-preview:hover {
    border-color: rgba(52, 152, 219, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .news-url-preview-image-container {
    background: rgba(0, 0, 0, 0.2);
}

body.dark-mode .news-url-preview-title {
    color: #ffffff;
}

body.dark-mode .news-url-preview-description {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .news-url-preview-url {
    color: rgba(126, 200, 255, 0.9);
}

body.dark-mode .news-url-preview-loading {
    color: rgba(255, 255, 255, 0.6);
}

/* 모바일 URL 미리보기 */
@media screen and (max-width: 768px) {
    .url-preview {
        padding: 10px;
        gap: 10px;
    }

    .url-preview-image-container {
        width: 100px;
        height: 70px;
    }

    .url-preview-title {
        font-size: 13px;
    }

    .url-preview-description {
        font-size: 11px;
    }

    .url-preview-url {
        font-size: 10px;
    }

    .url-preview-close {
        width: 22px;
        height: 22px;
        font-size: 16px;
        top: 6px;
        right: 6px;
    }
    
    .news-url-preview {
        padding: 10px;
        gap: 10px;
    }

    .news-url-preview-image-container {
        width: 100px;
        height: 70px;
    }

    .news-url-preview-title {
        font-size: 13px;
    }

    .news-url-preview-description {
        font-size: 11px;
    }

    .news-url-preview-url {
        font-size: 10px;
    }
}

@media screen and (max-width: 480px) {
    .news-write-toggle-container {
        margin: 12px 0;
    }

    .news-write-toggle-btn {
        padding: 10px 20px;
        font-size: 14px;
        gap: 6px;
    }

    .news-write-toggle-icon {
        font-size: 14px;
    }

    .news-write-toggle-text {
        font-size: 14px;
    }

    .news-url-preview {
        padding: 8px;
        gap: 8px;
    }

    .news-url-preview-image-container {
        width: 80px;
        height: 60px;
    }

    .news-url-preview-title {
        font-size: 12px;
    }

    .news-url-preview-description {
        font-size: 10px;
    }

    .news-url-preview-url {
        font-size: 9px;
    }

    .url-preview {
        padding: 8px;
        gap: 8px;
    }

    .url-preview-image-container {
        width: 80px;
        height: 60px;
    }

    .url-preview-title {
        font-size: 12px;
    }

    .url-preview-description {
        font-size: 10px;
    }

    .url-preview-url {
        font-size: 9px;
    }
}

.news-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.news-submit-btn,
.news-cancel-btn {
    border: none;
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.news-submit-btn {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.25);
}

.news-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(44, 62, 80, 0.3);
}

.news-cancel-btn {
    background: rgba(44, 62, 80, 0.08);
    color: var(--text-color);
}

.news-cancel-btn:hover {
    background: rgba(44, 62, 80, 0.15);
}

.news-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-empty {
    border: 1px dashed rgba(44, 62, 80, 0.3);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    color: rgba(44, 62, 80, 0.7);
    font-size: 15px;
}

.news-item {
    border: 1px solid rgba(44, 62, 80, 0.15);
    border-radius: 16px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.news-item:hover {
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.news-item button,
.news-item a,
.news-item img {
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.news-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.news-item-title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
    flex: 1;
    min-width: 0;
}

.news-item-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-color);
    transition: color 0.3s ease;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

.news-category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    background: rgba(44, 62, 80, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(44, 62, 80, 0.2);
}

.news-category-badge[data-category="일반"] {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border-color: rgba(52, 152, 219, 0.3);
}

.news-category-badge[data-category="질문"] {
    background: rgba(241, 196, 15, 0.1);
    color: #f39c12;
    border-color: rgba(241, 196, 15, 0.3);
}

.news-category-badge[data-category="후기"] {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border-color: rgba(46, 204, 113, 0.3);
}

.news-category-badge[data-category="정보"] {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
    border-color: rgba(155, 89, 182, 0.3);
}

.news-category-badge[data-category="소통"] {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.3);
}

.news-category-badge[data-category="문의"] {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border-color: rgba(52, 152, 219, 0.3);
}

.news-category-badge[data-category="QT"] {
    background: rgba(26, 188, 156, 0.1);
    color: #1abc9c;
    border-color: rgba(26, 188, 156, 0.3);
}

.news-category-badge[data-category="말씀 묵상"] {
    background: rgba(255, 159, 64, 0.1);
    color: #ff9f40;
    border-color: rgba(255, 159, 64, 0.3);
}

.news-meta {
    font-size: 13px;
    color: rgba(44, 62, 80, 0.6);
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-author {
    font-weight: 600;
    color: rgba(44, 62, 80, 0.8);
}

.news-meta-separator {
    color: rgba(44, 62, 80, 0.4);
}

.news-id {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: rgba(44, 62, 80, 0.7);
    font-size: 12px;
    letter-spacing: 0.5px;
}

.news-date {
    color: rgba(44, 62, 80, 0.6);
}

.news-content {
    font-size: 15px;
    color: rgba(44, 62, 80, 0.9);
    line-height: 1.7;
    margin-bottom: 12px;
}

.news-content .content-link,
.reply-content .content-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(52, 152, 219, 0.3);
    transition: all 0.2s ease;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: normal;
}

.news-content .content-link:hover,
.reply-content .content-link:hover {
    color: #2980b9;
    border-bottom-color: #2980b9;
    text-decoration: none;
}

.news-content .content-link:visited,
.reply-content .content-link:visited {
    color: #8e44ad;
    border-bottom-color: rgba(142, 68, 173, 0.3);
}

.news-contact-info {
    margin: 16px 0;
    padding: 16px;
    background: rgba(52, 152, 219, 0.08);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-left: 4px solid #3498db;
    border-radius: 8px;
}

.news-contact-label {
    font-size: 13px;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-contact-item {
    font-size: 14px;
    color: rgba(44, 62, 80, 0.8);
    margin: 6px 0;
    line-height: 1.6;
}

.news-contact-item strong {
    color: rgba(44, 62, 80, 0.9);
    margin-right: 8px;
}

.image-upload-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.image-upload-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px dashed rgba(44, 62, 80, 0.3);
    border-radius: 12px;
    background: rgba(44, 62, 80, 0.02);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: rgba(44, 62, 80, 0.7);
}

.image-upload-label:hover {
    border-color: var(--accent-color);
    background: rgba(52, 152, 219, 0.05);
    color: var(--accent-color);
}

.image-upload-icon {
    font-size: 20px;
}

.image-upload-description {
    font-size: 12px;
    color: rgba(44, 62, 80, 0.6);
    font-style: italic;
    margin-top: 4px;
    padding: 8px 12px;
    background: rgba(241, 196, 15, 0.08);
    border-left: 3px solid rgba(241, 196, 15, 0.4);
    border-radius: 6px;
    line-height: 1.5;
}

.image-upload-input {
    display: none;
}

.image-preview {
    position: relative;
    margin-top: 8px;
}

.image-preview-content {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.image-preview-img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    object-fit: contain;
    display: block;
}

.image-preview-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(231, 76, 60, 0.9);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.image-preview-remove:hover {
    background: #e74c3c;
    transform: scale(1.1);
}

.news-item-image {
    margin: 16px 0;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(44, 62, 80, 0.02);
}

.news-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.news-image:hover {
    transform: scale(1.02);
}

.news-item-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(44, 62, 80, 0.1);
}

.news-id-footer {
    display: none;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: rgba(44, 62, 80, 0.7);
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-left: auto;
}

.news-like-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: rgba(44, 62, 80, 0.7);
}

.news-like-btn:hover:not(:disabled) {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    transform: scale(1.05);
}

.news-like-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.news-like-btn.liked {
    color: #e74c3c;
}

.news-like-btn.liked:hover:not(:disabled) {
    background: rgba(231, 76, 60, 0.15);
}

.like-icon {
    font-size: 16px;
    line-height: 1;
}

.like-count {
    font-weight: 600;
    font-size: 14px;
}

.news-reply-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    border: none;
    background: transparent;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: rgba(44, 62, 80, 0.7);
}

.news-reply-btn:hover:not(:disabled) {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    transform: scale(1.05);
}

.news-reply-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.news-share-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    border: none;
    background: transparent;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: rgba(44, 62, 80, 0.7);
}

.news-share-btn:hover {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    transform: scale(1.05);
}

.reply-form-container {
    margin-top: 16px;
    padding: 16px;
    background: rgba(44, 62, 80, 0.03);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reply-input {
    width: 100%;
    border: 1px solid rgba(44, 62, 80, 0.25);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    resize: none;
    font-family: 'NanumSquare', sans-serif;
}

.reply-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.reply-form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.reply-submit-btn,
.reply-cancel-btn {
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reply-submit-btn {
    background: var(--primary-color);
    color: #ffffff;
}

.reply-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
}

.reply-cancel-btn {
    background: rgba(44, 62, 80, 0.08);
    color: var(--text-color);
}

.reply-cancel-btn:hover {
    background: rgba(44, 62, 80, 0.15);
}

.replies-container {
    margin-top: 16px;
    padding-left: 24px;
    border-left: 3px solid rgba(44, 62, 80, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reply-item {
    padding: 12px;
    background: rgba(44, 62, 80, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(44, 62, 80, 0.08);
    position: relative;
    transition: all 0.2s ease;
}

.reply-item.pinned {
    background: rgba(52, 152, 219, 0.08);
    border-color: rgba(52, 152, 219, 0.3);
    border-left: 4px solid var(--accent-color);
}

.reply-pinned-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--accent-color);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 1;
}

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

.reply-actions-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.reply-author {
    font-size: 13px;
    font-weight: 600;
    color: rgba(44, 62, 80, 0.8);
}

.reply-meta-separator {
    color: rgba(44, 62, 80, 0.4);
    margin: 0 4px;
}

.reply-date {
    font-size: 12px;
    color: rgba(44, 62, 80, 0.6);
}

.reply-content {
    font-size: 14px;
    color: rgba(44, 62, 80, 0.9);
    line-height: 1.6;
    margin-bottom: 8px;
}

.reply-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(44, 62, 80, 0.08);
}

.reply-like-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    border: none;
    background: transparent;
    padding: 4px 10px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    color: rgba(44, 62, 80, 0.7);
}

.reply-like-btn:hover:not(:disabled) {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    transform: scale(1.05);
}

.reply-like-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.reply-like-btn.liked {
    color: #e74c3c;
}

.reply-actions {
    display: flex;
    gap: 8px;
}

.reply-action-btn {
    border: none;
    border-radius: 16px;
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.reply-action-btn.edit {
    background: rgba(52, 152, 219, 0.12);
    color: #1f6aa5;
}

.reply-action-btn.edit:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-1px);
}

.reply-action-btn.delete {
    background: rgba(231, 76, 60, 0.12);
    color: #a2261a;
}

.reply-action-btn.delete:hover {
    background: rgba(231, 76, 60, 0.2);
    transform: translateY(-1px);
}

.reply-action-btn.pin {
    background: rgba(52, 152, 219, 0.12);
    color: #1f6aa5;
}

.reply-action-btn.pin:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-1px);
}

.reply-action-btn.unpin {
    background: rgba(241, 196, 15, 0.12);
    color: #b8860b;
}

.reply-action-btn.unpin:hover {
    background: rgba(241, 196, 15, 0.2);
    transform: translateY(-1px);
}

.news-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}

.news-action-btn {
    border: none;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.news-action-btn.edit {
    background: rgba(52, 152, 219, 0.12);
    color: #1f6aa5;
}

.news-action-btn.edit:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-1px);
}

.news-action-btn.delete {
    background: rgba(231, 76, 60, 0.12);
    color: #a2261a;
}

.news-action-btn.delete:hover {
    background: rgba(231, 76, 60, 0.2);
    transform: translateY(-1px);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    padding: 30px 15px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.auth-card-title {
    font-size: 28px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.auth-card-subtitle {
    font-size: 15px;
    color: rgba(44, 62, 80, 0.7);
    margin-bottom: 30px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-input {
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid rgba(44, 62, 80, 0.2);
    font-size: 15px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.auth-submit-btn {
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    background: var(--primary-color);
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(44, 62, 80, 0.2);
}

.auth-error {
    min-height: 20px;
    font-size: 14px;
    color: #e74c3c;
    margin-top: 5px;
}

.auth-link-text {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.auth-link-home {
    margin-top: 10px;
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 12px;
    background: rgba(44, 62, 80, 0.08);
    font-weight: 600;
    cursor: pointer;
}

.portfolio-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.portfolio-item {
    background: var(--background-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(44, 62, 80, 0.1);
    position: relative;
    overflow: hidden;
}

.portfolio-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.portfolio-item:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.portfolio-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
}

.portfolio-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.portfolio-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.portfolio-description {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 20px;
    line-height: 1.6;
}

.portfolio-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--accent-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.portfolio-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.portfolio-link:hover::before {
    left: 100%;
}

.portfolio-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-section {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    color: #ffffff;
    margin-top: 40px;
}

.newsletter-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.newsletter-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-button {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    background: #ffffff;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 768px) {
    .main {
        padding: 40px 15px;
    }

    .section {
        padding: 30px 20px;
        margin: 20px auto;
    }

    .section-title {
        font-size: 28px;
    }

    .section-intro {
        font-size: 16px;
    }

    .homepage-button {
        padding: 12px 25px;
        font-size: 15px;
    }

    .kmong-buttons {
        flex-direction: column;
    }

    .kmong-btn {
        flex: 1 1 auto;
    }

    .auth-status {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 16px;
    }

    .auth-status-content {
        width: 100%;
    }

    .auth-status-text {
        font-size: 16px;
    }

    .auth-actions {
        width: 100%;
        justify-content: stretch;
        gap: 8px;
    }

    .auth-btn {
        flex: 1;
        min-width: 0;
        padding: 12px 16px;
        font-size: 13px;
    }

    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .news-sort-controls {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .news-sort-btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
        font-size: 13px;
        padding: 8px 12px;
    }

    .news-filter-controls {
        padding: 0;
        gap: 0;
        flex-direction: column;
        background: transparent;
        border-radius: 0;
    }

    .news-filter-header {
        display: flex;
        width: 100%;
        padding: 12px 16px;
        gap: 10px;
        background: rgba(44, 62, 80, 0.03);
        border-radius: 12px;
        margin-bottom: 8px;
    }

    .news-filter-header #newsFilterAll {
        width: 100%;
        min-height: 44px;
        padding: 12px 16px;
    }

    .news-filter-header #newsFilterAll .toggle-icon {
        display: inline-block;
        font-size: 14px;
    }

    .news-filter-groups {
        display: none;
        flex-direction: column;
        gap: 0;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        margin-top: 0;
        transition: opacity 0.3s ease, max-height 0.3s ease, margin-top 0.3s ease;
    }

    .news-filter-groups.show {
        display: flex;
        opacity: 1;
        max-height: 2000px;
        margin-top: 8px;
    }

    .news-filter-group {
        width: 100%;
        min-width: auto;
        margin-bottom: 0;
    }

    .news-filter-group-label {
        font-size: 11px;
        padding: 12px 16px 8px;
        background: rgba(44, 62, 80, 0.03);
        border-bottom: 1px solid rgba(44, 62, 80, 0.1);
        color: rgba(44, 62, 80, 0.7);
    }

    .news-filter-group-buttons {
        flex-direction: column;
        gap: 0;
    }

    .news-filter-btn {
        width: 100%;
        flex: none;
        min-width: auto;
        font-size: 14px;
        padding: 14px 16px;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(44, 62, 80, 0.1);
        background: rgba(44, 62, 80, 0.02);
        text-align: left;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .news-filter-btn:first-child {
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }

    .news-filter-group:last-child .news-filter-group-buttons .news-filter-btn:last-child {
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
        border-bottom: none;
    }

    .news-filter-btn::after {
        content: '';
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: rgba(44, 62, 80, 0.2);
        transition: all 0.3s ease;
        flex-shrink: 0;
    }

    .news-filter-btn.active {
        background: rgba(44, 62, 80, 0.08);
        border-color: rgba(44, 62, 80, 0.15);
        box-shadow: none;
    }

    .news-filter-btn.active::after {
        background: var(--primary-color);
        transform: scale(1.1);
        box-shadow: 0 0 0 4px rgba(44, 62, 80, 0.1);
    }

    .news-filter-btn:hover {
        background: rgba(44, 62, 80, 0.05);
        transform: none;
    }

    .news-filter-btn.active:hover {
        background: rgba(44, 62, 80, 0.1);
    }

    body.dark-mode .news-filter-controls {
        background: transparent;
    }

    body.dark-mode .news-filter-header {
        background: rgba(255, 255, 255, 0.04);
    }

    body.dark-mode .news-filter-header #newsFilterAll {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.2);
        color: rgba(255, 255, 255, 0.9);
    }

    body.dark-mode .news-filter-header #newsFilterAll:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.3);
    }

    body.dark-mode .news-filter-header #newsFilterAll.active {
        background: #3498db;
        color: #ffffff;
        border-color: #3498db;
        box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    }

    body.dark-mode .news-filter-header #newsFilterAll.active:hover {
        background: #2980b9;
        border-color: #2980b9;
        box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    }

    body.dark-mode .news-filter-header #newsFilterAll .toggle-icon {
        opacity: 0.7;
    }

    body.dark-mode .news-filter-header #newsFilterAll.active .toggle-icon {
        opacity: 1;
    }

    body.dark-mode .news-filter-group-label {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.7);
    }

    body.dark-mode .news-filter-btn {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.8);
    }

    body.dark-mode .news-filter-btn::after {
        background: rgba(255, 255, 255, 0.2);
    }

    body.dark-mode .news-filter-btn:hover {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.15);
    }

    body.dark-mode .news-filter-btn.active {
        background: rgba(52, 152, 219, 0.15);
        color: #ffffff;
        border-color: rgba(52, 152, 219, 0.3);
        box-shadow: none;
    }

    body.dark-mode .news-filter-btn.active::after {
        background: #3498db;
        box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
    }

    body.dark-mode .news-filter-btn.active:hover {
        background: rgba(52, 152, 219, 0.2);
    }

    .news-item-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .news-item-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .news-meta .news-id {
        display: none;
    }

    .news-id-footer {
        display: inline-block;
    }

    .news-form {
        padding: 16px;
    }

    .news-form-actions {
        flex-direction: column-reverse;
        width: 100%;
    }

    .news-form-actions button {
        width: 100%;
    }

    .portfolio-section {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }

    .portfolio-item {
        padding: 20px;
    }

    .portfolio-icon {
        width: 50px;
        height: 50px;
    }

    .portfolio-icon img {
        width: 28px;
        height: 28px;
    }

    .newsletter-section {
        padding: 30px 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-button {
        width: 100%;
    }

    .time-popup {
        display: none !important;
    }

    .time-popup .time {
        margin-bottom: 0;
        font-size: 14px;
    }

    .time-popup .ad-text {
        display: none;
    }

    .time-popup.expanded {
        width: auto;
        min-width: 200px;
        height: auto;
        border-radius: 15px;
        padding: 10px 20px;
    }

    .time-popup.expanded .ad-text {
        display: block;
        font-size: 12px;
        margin-top: 5px;
    }
}

@media screen and (max-width: 480px) {
    .main {
        padding: 30px 10px;
    }

    .section {
        padding: 25px 15px;
        border-radius: 12px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-intro {
        font-size: 15px;
    }

    .portfolio-section {
        grid-template-columns: 1fr;
    }

    .kmong-btn {
        padding: 16px 20px;
    }

    .kmong-buttons {
        gap: 12px;
    }

    .auth-status {
        padding: 18px;
        border-radius: 16px;
    }

    .auth-status-text {
        font-size: 15px;
    }

    .auth-btn {
        padding: 11px 18px;
        font-size: 12px;
    }

    .auth-card {
        padding: 30px 20px;
    }

    .news-filter-header {
        padding: 10px 12px;
        gap: 8px;
    }

    .news-filter-header #newsFilterAll {
        min-height: 40px;
        padding: 10px 14px;
        font-size: 13px;
    }

    .news-filter-header #newsFilterAll .toggle-icon {
        font-size: 12px;
    }

    .news-filter-btn {
        font-size: 13px;
        padding: 12px 14px;
    }

    .news-filter-group-label {
        font-size: 10px;
        padding: 10px 14px 6px;
    }

    .news-item {
        padding: 16px;
    }

    .news-item-header {
        flex-direction: column;
        gap: 8px;
    }

    .news-actions {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .news-form-actions {
        flex-direction: column-reverse;
    }

    .news-form-actions button {
        width: 100%;
    }

    .time-popup {
        display: none !important;
    }
}

/* 다크모드 스타일 */
body.dark-mode {
    background-color: #1a1a1a;
    color: #ffffff;
}

body.dark-mode .section {
    background: #2c2c2c;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.dark-mode .section-title {
    color: #ffffff;
}

body.dark-mode .section-intro {
    color: #e0e0e0;
}

body.dark-mode .portfolio-item {
    background: #2c2c2c;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .portfolio-title {
    color: #ffffff;
}

body.dark-mode .portfolio-description {
    color: #b0b0b0;
}

body.dark-mode .homepage-button {
    background-color: #3498db;
}

body.dark-mode .homepage-button:hover {
    background-color: #2980b9;
}

body.dark-mode .newsletter-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
}

body.dark-mode .newsletter-input {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

body.dark-mode .newsletter-button {
    background: #3498db;
    color: #ffffff;
}

body.dark-mode .kmong-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

body.dark-mode .kmong-btn.outline {
    background: rgba(255, 255, 255, 0.08);
}

body.dark-mode .kmong-btn-desc {
    color: rgba(255, 255, 255, 0.75);
}

body.dark-mode .kmong-btn.primary:not(.disabled):hover {
    background: linear-gradient(135deg, #ffde59 0%, #ffc100 100%);
    border-color: transparent;
    color: #2c3e50;
}

body.dark-mode .kmong-btn.accent:not(.disabled):hover {
    background: linear-gradient(135deg, #6dd5ed 0%, #2193b0 100%);
    color: #ffffff;
    border-color: transparent;
}

body.dark-mode .kmong-btn.outline:not(.disabled):hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .kmong-btn.primary:not(.disabled):hover .kmong-btn-desc,
body.dark-mode .kmong-btn.primary:not(.disabled):hover .kmong-btn-arrow {
    color: #2c3e50;
}

body.dark-mode .auth-status {
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.9) 0%, rgba(30, 30, 30, 0.9) 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

body.dark-mode .auth-status:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .auth-status::before {
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
}

body.dark-mode .auth-status-label {
    color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .auth-status-text {
    color: #ffffff;
}

body.dark-mode .auth-btn.primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

body.dark-mode .auth-btn.primary:hover {
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

body.dark-mode .auth-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .auth-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .auth-btn.danger {
    background: rgba(231, 76, 60, 0.15);
    color: #ff8a7d;
    border-color: rgba(231, 76, 60, 0.3);
}

body.dark-mode .auth-btn.danger:hover {
    background: rgba(231, 76, 60, 0.25);
    border-color: rgba(231, 76, 60, 0.5);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

body.dark-mode .news-form {
    background: rgba(255, 255, 255, 0.04);
}

body.dark-mode .news-auth-notice {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .news-input,
body.dark-mode .news-textarea,
body.dark-mode .news-select {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

body.dark-mode .news-select option {
    background: #2c2c2c;
    color: #ffffff;
}

body.dark-mode .rating-container {
    background: rgba(241, 196, 15, 0.1);
    border-color: rgba(241, 196, 15, 0.3);
}

body.dark-mode .rating-label {
    color: #ffffff;
}

body.dark-mode .rating-description {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .contact-container {
    background: rgba(52, 152, 219, 0.1);
    border-color: rgba(52, 152, 219, 0.3);
}

body.dark-mode .contact-label {
    color: #ffffff;
}

body.dark-mode .contact-description {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .rating-value {
    color: #f1c40f;
}

body.dark-mode .rating-score {
    color: #f1c40f;
}

body.dark-mode .news-item {
    background: #1f1f1f;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .news-item:hover {
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .news-item-title {
    color: #7ec8ff;
}

body.dark-mode .news-meta {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .news-author {
    color: rgba(255, 255, 255, 0.85);
}

body.dark-mode .news-meta-separator {
    color: rgba(255, 255, 255, 0.4);
}

body.dark-mode .news-id {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .news-id-footer {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .news-date {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .news-content {
    color: rgba(255, 255, 255, 0.85);
}

body.dark-mode .news-content .content-link,
body.dark-mode .reply-content .content-link {
    color: #7ec8ff;
    border-bottom-color: rgba(126, 200, 255, 0.4);
}

body.dark-mode .news-content .content-link:hover,
body.dark-mode .reply-content .content-link:hover {
    color: #3498db;
    border-bottom-color: #3498db;
}

body.dark-mode .news-content .content-link:visited,
body.dark-mode .reply-content .content-link:visited {
    color: #bb86fc;
    border-bottom-color: rgba(187, 134, 252, 0.4);
}

body.dark-mode .news-contact-info {
    background: rgba(52, 152, 219, 0.12);
    border-color: rgba(52, 152, 219, 0.3);
    border-left-color: #3498db;
}

body.dark-mode .news-contact-label {
    color: #7ec8ff;
}

body.dark-mode .news-contact-item {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .news-contact-item strong {
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .news-item-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .news-like-btn {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .news-like-btn:hover:not(:disabled) {
    background: rgba(231, 76, 60, 0.2);
    color: #ff8a7d;
}

body.dark-mode .news-like-btn.liked {
    color: #ff8a7d;
}

body.dark-mode .news-like-btn.liked:hover:not(:disabled) {
    background: rgba(231, 76, 60, 0.25);
}

body.dark-mode .news-reply-btn {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .news-reply-btn:hover:not(:disabled) {
    background: rgba(52, 152, 219, 0.2);
    color: #7ec8ff;
}

body.dark-mode .news-share-btn {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .news-share-btn:hover {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

body.dark-mode .news-sort-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .news-sort-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

body.dark-mode .news-sort-btn.active {
    background: #3498db;
    color: #ffffff;
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.4);
}

body.dark-mode .news-sort-btn.active:hover {
    background: #2980b9;
    border-color: #2980b9;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.5);
}

body.dark-mode .news-category-badge {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .news-category-badge[data-category="일반"] {
    background: rgba(52, 152, 219, 0.2);
    color: #7ec8ff;
    border-color: rgba(52, 152, 219, 0.4);
}

body.dark-mode .news-category-badge[data-category="질문"] {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border-color: rgba(241, 196, 15, 0.4);
}

body.dark-mode .news-category-badge[data-category="후기"] {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.4);
}

body.dark-mode .news-category-badge[data-category="정보"] {
    background: rgba(155, 89, 182, 0.2);
    color: #bb8fce;
    border-color: rgba(155, 89, 182, 0.4);
}

body.dark-mode .news-category-badge[data-category="소통"] {
    background: rgba(231, 76, 60, 0.2);
    color: #ff8a7d;
    border-color: rgba(231, 76, 60, 0.4);
}

body.dark-mode .news-category-badge[data-category="문의"] {
    background: rgba(52, 152, 219, 0.2);
    color: #7ec8ff;
    border-color: rgba(52, 152, 219, 0.4);
}

body.dark-mode .news-category-badge[data-category="QT"] {
    background: rgba(26, 188, 156, 0.2);
    color: #4ecdc4;
    border-color: rgba(26, 188, 156, 0.4);
}

body.dark-mode .news-category-badge[data-category="말씀 묵상"] {
    background: rgba(255, 159, 64, 0.2);
    color: #ffb366;
    border-color: rgba(255, 159, 64, 0.4);
}

body.dark-mode .news-filter-controls {
    background: transparent;
}

body.dark-mode .news-filter-header {
    background: rgba(255, 255, 255, 0.04);
}

body.dark-mode .news-filter-header #newsFilterAll {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .news-filter-header #newsFilterAll:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .news-filter-header #newsFilterAll.active {
    background: #3498db;
    color: #ffffff;
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

body.dark-mode .news-filter-header #newsFilterAll.active:hover {
    background: #2980b9;
    border-color: #2980b9;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

body.dark-mode .news-filter-header #newsFilterAll .toggle-icon {
    opacity: 0.7;
}

body.dark-mode .news-filter-header #newsFilterAll.active .toggle-icon {
    opacity: 1;
}

body.dark-mode .news-filter-group-label {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .news-filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .news-filter-btn::after {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .news-filter-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .news-filter-btn.active {
    background: rgba(52, 152, 219, 0.15);
    color: #ffffff;
    border-color: rgba(52, 152, 219, 0.3);
    box-shadow: none;
}

body.dark-mode .news-filter-btn.active::after {
    background: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

body.dark-mode .news-filter-btn.active:hover {
    background: #2980b9;
    border-color: #2980b9;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.5);
}

body.dark-mode .feature-updates-container {
    background: rgba(46, 204, 113, 0.12);
    border-color: rgba(46, 204, 113, 0.4);
}

body.dark-mode .feature-updates-title {
    color: #2ecc71;
}

body.dark-mode .feature-update-item {
    background: rgba(46, 204, 113, 0.15);
    border-left-color: #2ecc71;
}

body.dark-mode .feature-update-badge {
    background: #2ecc71;
    color: #ffffff;
}

body.dark-mode .feature-update-text {
    color: #2ecc71;
}

body.dark-mode .reply-form-container {
    background: rgba(255, 255, 255, 0.04);
}

body.dark-mode .reply-input {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

body.dark-mode .reply-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

body.dark-mode .reply-cancel-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

body.dark-mode .reply-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

body.dark-mode .replies-container {
    border-left-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .reply-item {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .reply-item.pinned {
    background: rgba(52, 152, 219, 0.15);
    border-color: rgba(52, 152, 219, 0.4);
    border-left-color: #3498db;
}

body.dark-mode .reply-pinned-badge {
    background: #3498db;
    color: #ffffff;
}

body.dark-mode .reply-author {
    color: rgba(255, 255, 255, 0.85);
}

body.dark-mode .reply-meta-separator {
    color: rgba(255, 255, 255, 0.4);
}

body.dark-mode .reply-date {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .reply-content {
    color: rgba(255, 255, 255, 0.85);
}

body.dark-mode .reply-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .reply-like-btn {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .reply-like-btn:hover:not(:disabled) {
    background: rgba(231, 76, 60, 0.2);
    color: #ff8a7d;
}

body.dark-mode .reply-like-btn.liked {
    color: #ff8a7d;
}

body.dark-mode .reply-action-btn.edit {
    background: rgba(52, 152, 219, 0.2);
    color: #7ec8ff;
}

body.dark-mode .reply-action-btn.delete {
    background: rgba(231, 76, 60, 0.2);
    color: #ff8a7d;
}

body.dark-mode .reply-action-btn.pin {
    background: rgba(52, 152, 219, 0.2);
    color: #7ec8ff;
}

body.dark-mode .reply-action-btn.unpin {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

body.dark-mode .news-empty {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .news-cancel-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

body.dark-mode .news-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

body.dark-mode .news-action-btn.edit {
    background: rgba(52, 152, 219, 0.2);
    color: #7ec8ff;
}

body.dark-mode .news-action-btn.delete {
    background: rgba(231, 76, 60, 0.2);
    color: #ff8a7d;
}

body.dark-mode .user-stats-container {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .user-stats-title {
    color: #ffffff;
}

body.dark-mode .user-stat-item {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .user-stat-item:hover {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .user-stat-label {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .user-followers-list {
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .user-followers-title {
    color: #ffffff;
}

body.dark-mode .user-follower-item {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .user-follower-item:hover {
    background: rgba(52, 152, 219, 0.15);
    border-color: #3498db;
}

body.dark-mode .user-follower-email {
    color: #ffffff;
}

body.dark-mode .user-follower-empty {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .image-upload-label {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .image-upload-label:hover {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    color: #7ec8ff;
}

body.dark-mode .image-upload-description {
    color: rgba(255, 255, 255, 0.6);
    background: rgba(241, 196, 15, 0.12);
    border-left-color: rgba(241, 196, 15, 0.5);
}

body.dark-mode .image-preview-remove {
    background: rgba(231, 76, 60, 0.9);
}

body.dark-mode .image-preview-remove:hover {
    background: #e74c3c;
}

body.dark-mode .news-item-image {
    background: rgba(0, 0, 0, 0.2);
}

body.dark-mode .news-image {
    filter: brightness(0.95);
}

body.dark-mode .news-image:hover {
    filter: brightness(1);
}

body.dark-mode .portfolio-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

body.dark-mode .portfolio-link:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 시간 팝업 스타일 */
.time-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    left: auto;
    transform: none;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 15px;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 300px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.time-popup .time {
    font-weight: bold;
    margin-bottom: 5px;
}

.time-popup .ad-text {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 5px;
}

body.dark-mode .time-popup {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/* 작성자 프로필 모달 */
.user-profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.user-profile-modal:not([hidden]) {
    display: flex;
}

.user-profile-modal-content {
    background: var(--background-color);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.user-profile-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: rgba(44, 62, 80, 0.6);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.user-profile-modal-close:hover {
    background: rgba(44, 62, 80, 0.1);
    color: var(--text-color);
}

.user-profile-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.user-profile-loading,
.user-profile-error {
    text-align: center;
    padding: 40px 20px;
    color: rgba(44, 62, 80, 0.6);
}

.user-profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.user-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.user-profile-info {
    width: 100%;
}

.user-profile-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
}

.user-profile-stats {
    display: flex;
    justify-content: space-around;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid rgba(44, 62, 80, 0.1);
    border-bottom: 1px solid rgba(44, 62, 80, 0.1);
}

.user-profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 12px;
    color: rgba(44, 62, 80, 0.6);
}

.user-profile-actions {
    display: flex;
    justify-content: center;
}

.user-profile-follow-btn {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--accent-color);
    color: #ffffff;
}

.user-profile-follow-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.user-profile-follow-btn.following {
    background: rgba(44, 62, 80, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(44, 62, 80, 0.2);
}

.user-profile-follow-btn.following:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.3);
}

.news-author.clickable {
    cursor: pointer;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-block;
}

.news-author.clickable:hover {
    color: #ffffff;
    background: var(--accent-color);
    text-decoration: none;
}

/* 다크모드 스타일 */
body.dark-mode .user-profile-modal-content {
    background: #2c2c2c;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

body.dark-mode .user-profile-modal-close {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .user-profile-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

body.dark-mode .user-profile-loading,
body.dark-mode .user-profile-error {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .user-profile-name {
    color: #ffffff;
}

body.dark-mode .user-profile-stats {
    border-top-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .stat-label {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .user-profile-follow-btn.following {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .user-profile-follow-btn.following:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #ff8a7d;
    border-color: rgba(231, 76, 60, 0.4);
}

body.dark-mode .news-author.clickable {
    color: #7ec8ff;
}

body.dark-mode .news-author.clickable:hover {
    color: #3498db;
}