/**
 * v7/widgets/layout/layout-widget.css
 *
 * layout 모듈 위젯 전체 CSS.
 * 탑바, 헤더(모바일/데스크톱), 사이드바, 푸터 등 레이아웃 뼈대 위젯의 스타일을 모아 관리한다.
 *
 * 이 파일은 layout.php의 <head>에서 로드된다.
 *
 * @see v7/widgets/layout/*.php
 */

/* ===== 고정 탑바 (v6 동일: 내부 nav에 border + rounded-bottom) ===== */
.v7-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: var(--v7-topbar-height);
    display: flex;
    align-items: stretch;
    justify-content: center;
    font-size: 0.8em;
}

.v7-topbar-outer {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: var(--v7-max-width);
    padding: 0;
}

.v7-topbar-spacer {
    width: var(--v7-wing-width);
    flex-shrink: 0;
    display: none;
}

.v7-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    padding: 0;
    margin: 0 6px;
    background-color: #fff;
    border: 1px solid #c4c8cb;
    border-top: 0;
    border-radius: 0 0 6px 6px;
}

.v7-topbar a {
    color: #212529;
    padding: 0.5rem 0.25rem;
}
.v7-topbar a:hover {
    color: #000;
    text-decoration: none;
}

.v7-topbar nav:first-child a:first-child {
    padding-left: 1rem;
}
.v7-topbar nav:last-child a:last-child {
    padding-right: 1rem;
}

/* 탑바 개발 환경 테스트 로그인 버튼 */
.v7-dev-login-btn {
    background: none;
    border: 1px solid #c4c8cb;
    border-radius: 3px;
    padding: 0 0.4rem;
    margin: 0 1px;
    cursor: pointer;
    font-size: 0.85em;
    color: #212529;
    line-height: 1.6;
}
.v7-dev-login-btn:hover {
    background: #e9ecef;
    color: #000;
}
.v7-dev-user {
    padding: 0 0.25rem;
    font-weight: 600;
    font-size: 0.85em;
    color: #7f1d1d;
}

/* 탑바 아래 여백 */
.v7-header {
    padding-top: var(--v7-topbar-height);
}

@media (max-width: 991.98px) {
    .v7-header {
        padding-top: 0;
    }
}

/* ===== 모바일 헤더 ===== */
.v7-mobile-header-shell {
    margin-bottom: 0.75rem;
}

.v7-mobile-header {
    padding: 0.5rem;
    background: var(--wa-color-surface-default, #fff);
    border-bottom: 1px solid var(--wa-color-neutral-border-normal, #e0e0e0);
}

.v7-mobile-header-shell.is-open .v7-mobile-header {
    display: none;
}

.v7-mobile-menu-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.45rem;
    align-items: center;
}

.v7-mobile-menu-links a,
.v7-mobile-menu-links button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.2rem 0.45rem;
    font-size: 0.85em;
    border-radius: 4px;
    color: var(--wa-color-text, #333);
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.v7-mobile-menu-links a:hover,
.v7-mobile-menu-links button:hover {
    background: var(--wa-color-neutral-fill-quiet, #f0f0f0);
    text-decoration: none;
}

.v7-mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.v7-mobile-action-link {
    min-width: 2rem;
    padding: 0.2rem 0.35rem !important;
    font-size: 1.1rem !important;
    line-height: 1;
}

.v7-mobile-action-link + .v7-mobile-action-link {
    margin-left: 0;
}

.v7-mobile-expand-menu {
    padding: 1rem 0.5rem 0.75rem;
    background: var(--wa-color-surface-default, #fff);
}

.v7-mobile-expand-inner {
    padding: 1rem 0.9rem 0.9rem;
    border: 1px solid var(--wa-color-neutral-border-normal, #d7dce0);
    border-radius: 12px;
    background: #edf0f3;
}

.v7-mobile-expand-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
}

.v7-mobile-menu-close-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border: 1px solid var(--wa-color-neutral-border-normal, #cfd4da);
    border-radius: 999px;
    background: var(--wa-color-surface-default, #fff);
    color: var(--wa-color-text-quiet, #5f6368);
    font-size: 1rem;
    cursor: pointer;
}

.v7-mobile-menu-close-icon:hover {
    color: var(--wa-color-text, #222);
    border-color: var(--wa-color-neutral-border-loud, #adb5bd);
}

.v7-mobile-expand-section + .v7-mobile-expand-section {
    margin-top: 1rem;
}

.v7-mobile-expand-title {
    display: inline-block;
    color: var(--wa-color-blue-50, #2563eb);
    font-size: 0.97rem;
    font-weight: 700;
    text-decoration: none;
}

.v7-mobile-expand-title:hover {
    text-decoration: underline;
}

.v7-mobile-expand-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
}

.v7-mobile-expand-links a {
    color: var(--wa-color-text-quiet, #5f6368);
    font-size: 0.94rem;
    line-height: 1.55;
    text-decoration: none;
}

.v7-mobile-expand-links a:hover {
    color: var(--wa-color-text, #222);
    text-decoration: underline;
}

.v7-mobile-expand-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.v7-mobile-menu-close {
    border: 1px solid var(--wa-color-neutral-border-normal, #cfd4da);
    border-radius: 10px;
    background: var(--wa-color-surface-default, #fff);
    color: var(--wa-color-text-quiet, #5f6368);
    padding: 0.45rem 0.8rem;
    font-size: 0.95rem;
    cursor: pointer;
}

.v7-mobile-menu-close:hover {
    color: var(--wa-color-text, #222);
    border-color: var(--wa-color-neutral-border-loud, #adb5bd);
}

/* ===== 로고 + 검색 영역 (데스크톱 헤더) ===== */
.v7-logo-area {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    padding: 0;
    margin-top: 2.25rem;
}

.v7-top-banner {
    min-width: 252px;
    max-width: 252px;
    flex-shrink: 0;
}

.v7-top-banner img {
    width: 100%;
    height: auto;
}

.v7-logo-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-grow: 1;
}

.v7-logo-center img {
    max-width: 240px;
    height: auto;
}

/* 검색 폼 */
.v7-search-form {
    display: flex;
    width: 100%;
    max-width: 468px;
    margin-top: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
}

.v7-search-form .search-addon {
    padding: 0.4rem 0.75rem;
    background: #e9ecef;
    border-right: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.9em;
    white-space: nowrap;
}

.v7-search-form .search-addon.search-suffix {
    border-right: none;
    border-left: 1px solid #dee2e6;
}

.v7-search-form .search-addon a {
    color: var(--wa-color-text, #333);
    font-size: 0.875em;
}

.v7-search-form .search-addon a:hover {
    text-decoration: underline;
}

.v7-search-form input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: none;
    font-size: 0.9em;
    outline: none;
    background: var(--wa-color-surface-default, #fff);
    color: var(--wa-color-text, #333);
}

/* ===== 메인 메뉴 (4열 grid) ===== */
.v7-main-menu {
    margin-top: var(--v7-gap);
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

.v7-main-menu .menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 3fr;
    width: 100%;
}

.v7-main-menu .menu-col-header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #7f1d1d;
    color: white;
    height: 38px;
    overflow: hidden;
    font-weight: 600;
}

.v7-main-menu .menu-col-header a {
    color: white;
    padding: 0.5rem 0.25rem;
}

.v7-main-menu .menu-col-nav {
    height: 60px;
    overflow: hidden;
    padding: 0;
    border-left: 1px solid #dee2e6;
    background: transparent;
}

.v7-main-menu .menu-col-nav a {
    display: inline-block;
    padding: 0.25rem 0.4rem;
    font-size: 0.875em;
    font-weight: 500;
    line-height: 1.25rem;
    color: #212529;
}

.v7-main-menu .menu-col-nav a:hover {
    color: #7f1d1d;
    text-decoration: none;
}

.v7-main-menu .menu-grid > div:first-child .menu-col-nav {
    border-left: none;
}

/* ===== 사이드바 위젯 박스 ===== */
.v7-widget-box {
    margin-bottom: var(--v7-gap);
    border: none;
    border-radius: 8px;
    overflow: hidden;
    background: var(--wa-color-neutral-95, #f8f9fa);
    box-shadow: none;
}

.v7-widget-box .widget-title {
    padding: 0.5rem 0.75rem;
    font-size: 0.85em;
    font-weight: 600;
    background: transparent;
    border-bottom: none;
}

.v7-widget-box .widget-body {
    padding: 0.5rem 0.75rem;
    font-size: 0.85em;
}

.v7-widget-box .widget-item {
    padding: 0.3rem 0;
    border-bottom: none;
}

/* ===== 최근 댓글 위젯 리스트 컨테이너 ===== */
.v7-rc-list {
    padding: 0.2rem 0.3rem !important;
    max-height: 200px;
    overflow-y: auto;
    background: transparent;
    border-radius: 0 0 8px 8px;
}

/* ===== 최근 댓글 아이템 ===== */
.v7-comment-item {
    display: flex;
    gap: 0.5rem;
    padding: 0.45rem 0.5rem;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.v7-comment-item + .v7-comment-item {
    margin-top: 2px;
}

.v7-comment-item:hover {
    background: var(--wa-color-brand-95, #e7f5ff);
    text-decoration: none;
}

/* 아바타 */
.v7-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 1px;
    object-fit: cover;
    border: none;
}

.v7-comment-content {
    flex: 1;
    min-width: 0;
}

/* 닉네임: 첫째 줄 */
.v7-comment-nick {
    font-weight: 600;
    font-size: 0.92em;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--wa-color-text, #212529);
    margin-bottom: 1px;
}

/* 날짜 + 포인트: 둘째 줄 */
.v7-comment-meta {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    margin-bottom: 2px;
}

.v7-comment-date {
    font-size: 0.84em;
    color: var(--wa-color-neutral-50, #adb5bd);
    white-space: nowrap;
}

/* 댓글 본문: 최대 2줄 */
.v7-comment-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.9em;
    line-height: 1.5;
    color: var(--wa-color-neutral-40, #6c757d);
    word-break: break-word;
}

/* 포인트 배지 */
.v7-comment-point {
    font-size: 0.78em;
    font-weight: 600;
    white-space: nowrap;
    margin-left: auto;
    padding: 1px 6px;
    border-radius: 9px;
    line-height: 1.4;
}

.v7-comment-point i {
    font-size: 0.85em;
    margin-right: 1px;
}

.v7-comment-point.point-high {
    color: var(--wa-color-danger-50, #dc3545);
    background: var(--wa-color-danger-95, #fef2f2);
    font-weight: 700;
}

.v7-comment-point.point-mid {
    color: var(--wa-color-brand-50, #3178c0);
    background: var(--wa-color-brand-95, #e7f5ff);
}

.v7-comment-point.point-low {
    color: var(--wa-color-success-50, #198754);
    background: var(--wa-color-success-95, #f0fdf4);
}

/* 스크롤바 */
.v7-rc-list::-webkit-scrollbar {
    width: 3px;
}

.v7-rc-list::-webkit-scrollbar-track {
    background: transparent;
}

.v7-rc-list::-webkit-scrollbar-thumb {
    background: var(--wa-color-neutral-80, #dee2e6);
    border-radius: 3px;
}

.v7-rc-list::-webkit-scrollbar-thumb:hover {
    background: var(--wa-color-neutral-50, #adb5bd);
}

/* ===== 업소 카테고리 목록 (shared 위젯이지만 사이드바에서 사용) ===== */
.v7-category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0;
}

.v7-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    padding: 0.28rem 0.55rem;
    font-size: 0.76em;
    font-weight: 500;
    border-radius: 14px;
    color: var(--wa-color-text, #333);
    background: var(--wa-color-surface-default, #fff);
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
    line-height: 1.3;
    white-space: nowrap;
}

.v7-category-chip i {
    font-size: 0.85em;
    color: var(--wa-color-neutral-50, #adb5bd);
    transition: color 0.18s ease;
}

.v7-category-chip:hover {
    background: var(--wa-color-brand-95, #e7f5ff);
    color: var(--wa-color-brand-40, #1a5a9e);
    text-decoration: none;
    transform: translateY(-1px);
}

.v7-category-chip:hover i {
    color: var(--wa-color-brand-50, #3178c0);
}

/* 등록 링크 */
.v7-category-register-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.78em;
    font-weight: 600;
    color: var(--wa-color-brand-50, #3178c0);
    text-decoration: none;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    background: var(--wa-color-brand-95, #e7f5ff);
    transition: background 0.18s ease, color 0.18s ease;
    letter-spacing: 0.02em;
}

.v7-category-register-link:hover {
    background: var(--wa-color-brand-90, #c5dcf0);
    color: var(--wa-color-brand-40, #1a5a9e);
    text-decoration: none;
}

/* ===== 최근 업소 아이템 (shared 위젯이지만 사이드바에서 사용) ===== */
.v7-company-item {
    display: flex;
    gap: 0.65rem;
    padding: 0.65rem 0.45rem;
    border-bottom: none;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.v7-company-item + .v7-company-item {
    margin-top: 4px;
}

.v7-company-item:hover {
    background: var(--wa-color-brand-95, #e7f5ff);
    text-decoration: none;
}

.v7-company-logo {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wa-color-neutral-90, #e9ecef);
    border-radius: 8px;
    overflow: hidden;
}

.v7-company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v7-company-logo i {
    font-size: 1.6em !important;
    color: var(--wa-color-neutral-50, #adb5bd);
}

.v7-company-info {
    flex: 1;
    min-width: 0;
    padding-top: 3px;
}

.v7-company-name {
    font-size: 1.02em;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--wa-color-text, #212529);
    line-height: 1.35;
}

.v7-company-desc {
    font-size: 0.9em;
    color: var(--wa-color-neutral-40, #6c757d);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
    line-height: 1.5;
    word-break: break-word;
}

/* 더보기 링크 */
.v7-company-more-link {
    font-size: 0.78em;
    font-weight: 500;
    color: var(--wa-color-neutral-50, #adb5bd);
    text-decoration: none;
    transition: color 0.15s ease;
}

.v7-company-more-link:hover {
    color: var(--wa-color-brand-50, #3178c0);
    text-decoration: none;
}

/* ===== 사이드바 로그인 위젯 ===== */
.sidebar-login-widget {
    background: linear-gradient(180deg, #f6f8fa 0%, #eef2f6 100%);
}

.sidebar-login-widget .widget-title {
    padding: 0.65rem 0.85rem 0.3rem;
    color: #4b5563;
}

.sidebar-login-widget .widget-body {
    padding: 0.4rem 0.75rem 0.75rem;
}

.sidebar-login-guest {
    text-align: center;
    padding: 1rem 0.75rem;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(250, 252, 253, 0.96) 100%);
}

.sidebar-login-guest-icon {
    font-size: 3em;
    color: #7d8793;
    margin-bottom: 0.65rem;
    display: block;
}

.sidebar-login-guest-text {
    font-size: 0.85em;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.85rem;
}

.sidebar-login-body {
    padding: 0.85rem !important;
    background:
        radial-gradient(circle at top right, rgba(13, 110, 253, 0.08), transparent 38%),
        linear-gradient(180deg, #f7fafc 0%, #eef3f7 100%);
}

.sidebar-login-profile {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    padding: 0.85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
}

.sidebar-login-photo-wrap {
    position: relative;
    flex-shrink: 0;
}

.sidebar-login-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.95);
}

.sidebar-login-photo-fallback {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(180deg, #eef2f6 0%, #dde5ec 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: #8a97a3;
    border: 3px solid rgba(255, 255, 255, 0.95);
}

.sidebar-login-level-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, #eb445a 0%, #cf2441 100%);
    color: #fff;
    font-size: 0.65em;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    line-height: 1.3;
    white-space: nowrap;
}

.sidebar-login-info {
    flex: 1;
    min-width: 0;
}

.sidebar-login-nickname {
    display: block;
    font-weight: 700;
    font-size: 1.05em;
    color: #212529;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.35rem;
}

.sidebar-login-nickname:hover {
    color: #0d6efd;
    text-decoration: none;
}

.sidebar-login-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.8em;
    color: #57606a;
    margin-bottom: 0.45rem;
}

.sidebar-login-stats > span {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.sidebar-login-stats > span:first-child {
    background: #eaf3ff;
    color: #305c99;
}

.sidebar-login-stats > span:nth-child(2) {
    background: #f2f4f6;
    color: #4f5b66;
}

.sidebar-login-stats > span:last-child {
    background: #fff3df;
    color: #8c5b00;
}

.sidebar-login-stats i {
    color: inherit;
    margin-right: 0;
}

.sidebar-login-point-pill {
    gap: 0.32rem;
    padding: 0.22rem 0.42rem 0.22rem 0.45rem;
}

.sidebar-login-point-pill i {
    font-size: 0.92em;
    opacity: 0.9;
}

.sidebar-login-point-value {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.sidebar-login-point-progress {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.08rem 0.38rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.82em;
    font-weight: 700;
    line-height: 1.2;
}

.sidebar-login-progress-wrap {
    width: 100%;
    height: 6px;
    background: #dde5ec;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 0.2rem;
}

.sidebar-login-progress-bar {
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.sidebar-login-menu {
    display: flex;
    gap: 0.45rem;
    padding-top: 0.1rem;
}

.sidebar-login-menu-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.25;
    gap: 0.22rem;
    min-height: 62px;
    padding: 0.55rem 0.2rem 0.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    color: #5c6670;
    font-size: 0.8em;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-login-menu-item i {
    font-size: 1.2em;
    color: #7a8591;
    transition: color 0.2s ease;
}

.sidebar-login-menu-item:hover {
    background: #fff;
    color: #0d6efd;
    box-shadow: 0 8px 18px rgba(33, 37, 41, 0.08);
    text-decoration: none;
}

.sidebar-login-menu-item:hover i {
    color: #0d6efd;
}

/* ===== 사이드바 관리자 메뉴 ===== */
.sidebar-login-admin-menu {
    display: flex;
    gap: 0.45rem;
    padding-top: 0.65rem;
}

.sidebar-login-admin-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 36px;
    padding: 0.38rem 0.6rem;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-login-admin-btn:hover {
    opacity: 0.85;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(33, 37, 41, 0.08);
}

.sidebar-login-admin-btn-danger {
    background: linear-gradient(135deg, #e2505f 0%, #c82c3d 100%);
    color: #fff;
    border: none;
}

.sidebar-login-admin-btn-outline {
    background: rgba(255, 255, 255, 0.82);
    color: #5f6b76;
    border: none;
}

.sidebar-login-admin-btn-outline:hover {
    color: #495057;
}

/* ===== 홈페이지 통계 위젯 ===== */
.v7-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.v7-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.85rem 0.5rem 0.7rem;
    border-radius: 10px;
    background: var(--wa-color-surface-default, #fff);
    border: none;
    box-shadow: none;
    transition: background 0.18s ease;
    text-align: center;
}

.v7-stat-card:hover {
    background: var(--wa-color-neutral-90, #e9ecef);
}

.v7-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    flex-shrink: 0;
    transition: transform 0.18s ease;
}

.v7-stat-card:hover .v7-stat-icon {
    transform: scale(1.08);
}

.v7-stat-value {
    font-size: 1.15em;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-top: 2px;
}

.v7-stat-label {
    font-size: 0.74em;
    font-weight: 500;
    color: var(--wa-color-neutral-50, #adb5bd);
    line-height: 1.2;
}

.v7-stats-google-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.76em;
    font-weight: 500;
    color: var(--wa-color-neutral-40, #6c757d);
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: 16px;
    background: var(--wa-color-surface-default, #fff);
    transition: color 0.18s ease, background 0.18s ease;
}

.v7-stats-google-link:hover {
    color: var(--wa-color-brand-50, #3178c0);
    background: var(--wa-color-brand-95, #e7f5ff);
    text-decoration: none;
}

/* ===== 푸터 ===== */
.v7-footer {
    margin-top: 2rem;
    padding: 1.5rem var(--v7-gap);
    border-top: 1px solid var(--wa-color-neutral-border-normal, #e0e0e0);
    background: var(--wa-color-surface-lowered, #f8f8f8);
}

.v7-footer-inner {
    max-width: var(--v7-max-width);
    margin: 0 auto;
    font-size: 0.85em;
}

/* 4열 균등 그리드 — v6 row-cols-lg-4 동일 */
.v7-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.v7-footer-copyright {
    margin-top: 0.5rem;
    color: var(--wa-color-text-quiet, #999);
    font-size: 0.9em;
}

.v7-footer-section strong {
    display: block;
    font-size: 0.9em;
    margin-bottom: 0.5rem;
    color: var(--wa-color-text, #333);
}

.v7-footer-section strong i {
    margin-right: 0.25rem;
}

/* nav 세로 배치 — v6 flex-column 동일 */
.v7-footer-section nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.v7-footer-section nav a {
    color: var(--wa-color-text-quiet, #666);
    font-size: 0.9em;
}

.v7-footer-section nav a:hover {
    color: var(--wa-color-text, #333);
    text-decoration: none;
}

@media (max-width: 991px) {
    .v7-footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.v7-footer-version {
    margin-top: 0.3rem;
    color: var(--wa-color-text-quiet, #999);
    font-size: 0.85em;
}

/* ===== 최근 사진 위젯 (사이드바) ===== */
.v7-latest-photos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
}

.v7-latest-photo-item {
    display: block;
    text-decoration: none;
}

.v7-latest-photo-wrap {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    border: none;
    box-shadow: none;
    background: var(--wa-color-neutral-95, #f0f1f3);
}

.v7-latest-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
