﻿/* Lunch Roulette Styles - Orange/Yellow Theme */
@import url('https://fonts.googleapis.com/css2?family=Jua&family=Noto+Sans+KR:wght@400;700&display=swap');

:root {
    --primary-orange: #ff9800;
    --primary-yellow: #ffeb3b;
    --accent-color: #f57c00;
    --text-color: #333;
    --bg-color: #fff3e0;
    --card-bg: #ffffff;

    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    min-height: 100vh;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.main-title {
    font-family: 'Jua', sans-serif;
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-shadow: 2px 2px 0px var(--primary-yellow);
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
}

/* Category Section */
.category-section {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.category-section h3 {
    font-family: 'Jua', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    text-align: center;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.checkbox-item {
    position: relative;
    cursor: pointer;
}

.checkbox-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f0f0f0;
    border-radius: 20px;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.checkbox-item input:checked~.checkmark {
    background-color: var(--primary-orange);
    color: white;
    box-shadow: 0 2px 5px rgba(255, 152, 0, 0.3);
}

/* Roulette Section */
.roulette-section {
    text-align: center;
    margin-bottom: 30px;
}

.roulette-window {
    background: white;
    border: 5px solid var(--primary-orange);
    border-radius: var(--radius-lg);
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.result-text {
    font-family: 'Jua', sans-serif;
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: bold;
    padding: 0 20px;
    word-break: break-word; max-width: 100%; line-height: 1.2;
}

.result-text.animate {
    animation: shake 0.1s infinite;
}

.result-text.highlight {
    color: var(--accent-color);
    transform: scale(1.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

.btn-start {
    background: linear-gradient(to bottom, #ffb74d, #f57c00);
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 1.5rem;
    font-family: 'Jua', sans-serif;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 0 #e65100;
    transition: all 0.1s;
    width: 100%;
    max-width: 300px;
}

.btn-start:active {
    transform: translateY(4px);
    box-shadow: none;
}

.btn-start:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-search {
    background: #03c75a;
    /* Naver Green */
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-search:hover {
    background: #02b351;
    transform: translateY(-2px);
}

/* Ad Banner */
.ad-banner {
    margin: 30px 0;
    min-height: 100px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Cross Links */
.cross-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s;
    color: var(--text-color);
    border: 1px solid transparent;
}

.link-btn:hover {
    transform: translateY(-2px);
}

.link-btn.calculator {
    background-color: #e3f2fd;
    color: #1565c0;
    border-color: #90caf9;
}

.link-btn.spending {
    background-color: #ffebee;
    color: #c62828;
    border-color: #ef9a9a;
}

.link-btn.home {
    background-color: #f5f5f5;
    color: #616161;
    border-color: #e0e0e0;
}

footer {
    text-align: center;
    padding: 30px 0;
    color: #888;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Responsive */
/* Roulette Section */
.roulette-section {
    text-align: center;
    margin-bottom: 30px;
}

.roulette-window {
    background: white;
    border: 5px solid var(--primary-orange);
    border-radius: var(--radius-lg);
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.result-text {
    font-family: 'Jua', sans-serif;
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: bold;
    padding: 0 20px;
    word-break: break-word; max-width: 100%; line-height: 1.2;
}

.result-text.animate {
    animation: shake 0.1s infinite;
}

.result-text.highlight {
    color: var(--accent-color);
    transform: scale(1.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

.btn-start {
    background: linear-gradient(to bottom, #ffb74d, #f57c00);
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 1.5rem;
    font-family: 'Jua', sans-serif;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 0 #e65100;
    transition: all 0.1s;
    width: 100%;
    max-width: 300px;
}

.btn-start:active {
    transform: translateY(4px);
    box-shadow: none;
}

.btn-start:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-search {
    background: #03c75a;
    /* Naver Green */
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-search:hover {
    background: #02b351;
    transform: translateY(-2px);
}

/* Ad Banner */
.ad-banner {
    margin: 30px 0;
    min-height: 100px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Cross Links */
.cross-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s;
    color: var(--text-color);
    border: 1px solid transparent;
}

.link-btn:hover {
    transform: translateY(-2px);
}

.link-btn.calculator {
    background-color: #e3f2fd;
    color: #1565c0;
    border-color: #90caf9;
}

.link-btn.spending {
    background-color: #ffebee;
    color: #c62828;
    border-color: #ef9a9a;
}

.link-btn.home {
    background-color: #f5f5f5;
    color: #616161;
    border-color: #e0e0e0;
}

footer {
    text-align: center;
    padding: 30px 0;
    color: #888;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }

    .result-text {
        font-size: 2rem;
    }
}

/* SEO Content Section */
.seo-content {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.seo-box {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 25px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-orange);
}

.seo-box h3 {
    color: var(--accent-color);
    font-family: 'Jua', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.seo-box p {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    word-break: break-word; max-width: 100%; line-height: 1.2;
}

.seo-box strong {
    color: #333;
    font-weight: 700;
    background: linear-gradient(120deg, rgba(255, 152, 0, 0.2) 0%, rgba(255, 152, 0, 0.2) 100%);
    box-shadow: inset 0 -0.4em 0 rgba(255, 152, 0, 0.2);
}
