@import url('https://fonts.googleapis.com/css2?family=Gaegu:wght@400;700&family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, #4a7c59 0%, #6b9b7a 30%, #fef9e7 60%, #fdebd0 100%);
    min-height: 100vh;
    padding: 2rem;
    padding-bottom: 4rem;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* 두바이 쫀득 쿠키 일러스트 (코코아 가루 묻힌 둥근 볼, 반으로 자른 단면) */
.cookie-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.5rem;
}

/* 반으로 자른 쿠키 볼 */
.cookie-ball {
    width: 75px;
    height: 75px;
    position: relative;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.cookie-ball.left {
    clip-path: polygon(0 0, 55% 0, 55% 100%, 0 100%);
    margin-right: -8px;
}

.cookie-ball.right {
    clip-path: polygon(45% 0, 100% 0, 100% 100%, 45% 100%);
    margin-left: -8px;
}

/* 코코아 가루 외피 (무광 갈색, 가루 느낌) */
.cookie-outer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, #8b6914 0%, transparent 8%),
        radial-gradient(circle at 70% 25%, #6b4423 0%, transparent 6%),
        radial-gradient(circle at 50% 70%, #7a5a30 0%, transparent 7%),
        radial-gradient(circle at 20% 60%, #5d3a1a 0%, transparent 5%),
        radial-gradient(circle at 80% 65%, #8b6914 0%, transparent 6%),
        radial-gradient(circle at 40% 40%, #6b4423 0%, transparent 4%),
        linear-gradient(145deg, #6b4423 0%, #5d3a1a 50%, #4a2c10 100%);
    box-shadow: inset 0 -3px 8px rgba(0,0,0,0.3);
}

/* 쿠키 단면 - 쫀득한 마시멜로 반죽 */
.cookie-inner {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    background: linear-gradient(160deg, #f8f0e3 0%, #f0e6d3 40%, #e8dcc6 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.1);
}

/* 피스타치오 크림 (연두색, 가운데) */
.pistachio-cream {
    width: 50%;
    height: 40%;
    background: linear-gradient(160deg, #a8d86b 0%, #8bc34a 40%, #7cb342 100%);
    border-radius: 45%;
    box-shadow:
        inset 0 3px 6px rgba(255,255,255,0.4),
        inset 0 -2px 4px rgba(0,0,0,0.15),
        0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

/* 피스타치오 알갱이 */
.pistachio-cream::before {
    content: '';
    position: absolute;
    top: 25%;
    left: 20%;
    width: 8px;
    height: 5px;
    background: #689f38;
    border-radius: 50%;
    box-shadow:
        12px 8px 0 #558b2f,
        6px 14px 0 #7cb342,
        18px 2px 0 #689f38;
}

/* 카다이프 면 (황금색 바삭한 가닥들) */
.kadaif-strands {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.kadaif-strands span {
    position: absolute;
    background: linear-gradient(90deg, #e8c078, #d4a056, #c99a4e);
    border-radius: 1px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 카다이프 면 위치 및 크기 */
.kadaif-strands span:nth-child(1) { width: 18px; height: 3px; top: 65%; left: 15%; transform: rotate(-20deg); }
.kadaif-strands span:nth-child(2) { width: 14px; height: 2px; top: 70%; left: 55%; transform: rotate(15deg); }
.kadaif-strands span:nth-child(3) { width: 16px; height: 3px; top: 60%; left: 35%; transform: rotate(-8deg); }
.kadaif-strands span:nth-child(4) { width: 12px; height: 2px; top: 75%; left: 25%; transform: rotate(25deg); }
.kadaif-strands span:nth-child(5) { width: 15px; height: 2px; top: 68%; left: 60%; transform: rotate(-12deg); }
.kadaif-strands span:nth-child(6) { width: 10px; height: 2px; top: 72%; left: 45%; transform: rotate(30deg); }

h1 {
    font-family: 'Gaegu', cursive;
    font-size: 2.8rem;
    color: #5d3a1a;
    margin-bottom: 0.3rem;
    text-shadow: 2px 2px 4px rgba(93, 58, 26, 0.2);
    font-weight: 700;
}

.subtitle {
    font-family: 'Gaegu', cursive;
    color: #8b5a2b;
    font-size: 1.3rem;
    font-weight: 400;
}

/* 안내 문구 */
.notice-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border: 2px solid #f0ad4e;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.notice-box p {
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.6;
}

.notice-box strong {
    color: #6d4c00;
}

/* 지역 선택 버튼 */
.region-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.region-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid #8b5a2b;
    background: white;
    color: #5d3a1a;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: inherit;
}

.region-btn:hover {
    background: #fff8dc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 90, 43, 0.3);
}

.region-btn.active {
    background: linear-gradient(135deg, #8b5a2b 0%, #a0522d 100%);
    color: white;
    border-color: #8b5a2b;
    box-shadow: 0 4px 15px rgba(139, 90, 43, 0.4);
}

/* 검색창 */
.search-box {
    margin-bottom: 1rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #d2b48c;
    border-radius: 15px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #8b5a2b;
    box-shadow: 0 0 0 4px rgba(139, 90, 43, 0.15);
}

.search-box input::placeholder {
    color: #bbb;
}

/* 매장 수 */
.store-count {
    text-align: center;
    color: #5d3a1a;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.store-count span {
    font-weight: 700;
    color: #8b5a2b;
    font-size: 1.2rem;
}

/* 매장 목록 */
.store-list {
    display: grid;
    gap: 1rem;
}

.store-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(93, 58, 26, 0.1);
    border: 1px solid rgba(210, 180, 140, 0.3);
    transition: all 0.3s ease;
}

.store-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(93, 58, 26, 0.2);
}

.store-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.store-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #5d3a1a;
}

.store-region {
    background: linear-gradient(135deg, #8bc34a 0%, #7cb342 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.store-address {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.5;
}

.store-address::before {
    content: "📍";
    flex-shrink: 0;
}

.store-hours {
    color: #888;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.store-hours::before {
    content: "🕐";
}

.store-parking {
    color: #2e7d32;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #e8f5e9;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    display: inline-flex;
}

.store-parking::before {
    content: "🅿️";
}

.store-phone {
    color: #888;
    font-size: 0.9rem;
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.store-phone::before {
    content: "📞";
}

.store-phone a {
    color: #8b5a2b;
    text-decoration: none;
}

.store-phone a:hover {
    text-decoration: underline;
}

/* 정보 행 */
.store-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.store-info-row .store-phone {
    margin-top: 0;
}

/* 지도 버튼 */
.map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, #5d3a1a 0%, #8b5a2b 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(93, 58, 26, 0.3);
    margin-top: 1rem;
}

.map-btn:hover {
    background: linear-gradient(135deg, #8b5a2b 0%, #a0522d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 58, 26, 0.4);
}

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

.map-icon {
    font-size: 1.1rem;
}

/* 메모/노트 */
.store-note {
    background: #e3f2fd;
    color: #1565c0;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* 편의점 카드 */
.store-card.convenience {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: #81c784;
}

.store-card.convenience .store-region {
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
    color: white;
}

/* 매장 없음 */
.no-stores {
    text-align: center;
    padding: 3rem;
    color: #999;
    font-size: 1.1rem;
}

.no-stores::before {
    content: "🔍";
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* 반응형 */
@media (max-width: 600px) {
    body {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .cookie-ball {
        width: 60px;
        height: 60px;
    }

    .cookie-ball.left {
        margin-right: -6px;
    }

    .cookie-ball.right {
        margin-left: -6px;
    }

    .cookie-inner {
        top: 4px;
        left: 4px;
        right: 4px;
        bottom: 4px;
    }

    .pistachio-cream {
        width: 45%;
        height: 35%;
    }

    .kadaif-strands span:nth-child(1) { width: 14px; height: 2px; }
    .kadaif-strands span:nth-child(2) { width: 10px; height: 2px; }
    .kadaif-strands span:nth-child(3) { width: 12px; height: 2px; }
    .kadaif-strands span:nth-child(4) { width: 9px; height: 2px; }
    .kadaif-strands span:nth-child(5) { width: 11px; height: 2px; }
    .kadaif-strands span:nth-child(6) { width: 8px; height: 2px; }

    .region-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
    }

    .store-card {
        padding: 1.2rem;
    }

    .store-name {
        font-size: 1.1rem;
    }

    .notice-box p {
        font-size: 0.85rem;
    }
}
