/* ==============================================
   PLAYINFO - Playful & Informative Design
   Powered by frontend-design skill v2.6.0
   ============================================== */

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

/* CSS Variables */
:root {
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --accent: #FFE66D;
    --dark: #2C3E50;
    --light: #F7F9FC;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);

    --font-display: 'Fredoka', sans-serif;
    --font-body: 'DM Sans', 'Malgun Gothic', sans-serif;

    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--dark);
    background: linear-gradient(135deg, #F7F9FC 0%, #E8F4F8 50%, #F0E6FF 100%);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animated Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 107, 107, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(78, 205, 196, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 230, 109, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(2deg); }
    66% { transform: translate(-20px, 20px) rotate(-2deg); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header - Glass Morphism */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.6s ease-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.main-nav {
    padding: 1rem 0;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05) rotate(-2deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary);
}

/* Main Content */
main {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

/* Typography */
h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
    margin-bottom: 1rem;
}

h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark);
    margin: 2rem 0 1rem 0;
}

h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin: 1.5rem 0 0.75rem 0;
}

p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 2rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
.intro,
.services,
.why-us,
.how-to-use,
.about-site {
    background: var(--white);
    padding: 2.5rem;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 30px var(--shadow);
    animation: fadeIn 0.8s ease-out;
    transition: var(--transition);
}

.intro:hover,
.services:hover,
.why-us:hover,
.how-to-use:hover,
.about-site:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Service Grid */
.services-desc {
    color: #666;
    margin-bottom: 2rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05), rgba(78, 205, 196, 0.05));
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 230, 109, 0.2), transparent);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.service-card:hover::before {
    transform: scale(1);
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.2);
}

.service-card h3 {
    color: var(--primary);
    margin-top: 0;
}

.service-card p {
    color: #555;
    margin-bottom: 1.5rem;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature {
    background: linear-gradient(135deg, #FFF, #F9F9F9);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--secondary);
    transition: var(--transition);
}

.feature:hover {
    transform: translateX(5px);
    border-left-color: var(--primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feature h3 {
    font-size: 1.2rem;
    margin-top: 0;
    color: var(--secondary);
}

/* Steps / Timeline */
.steps,
.timeline {
    list-style: none;
    counter-reset: step-counter;
}

.steps li,
.timeline li {
    counter-increment: step-counter;
    margin-bottom: 1.5rem;
    padding-left: 3rem;
    position: relative;
}

.steps li::before,
.timeline li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--dark);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 3px solid var(--dark);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
    z-index: -1;
}

.btn:hover::before {
    width: 300%;
    height: 300%;
}

.btn:hover {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

/* Content Sections */
.content-section {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px var(--shadow);
    margin-bottom: 2rem;
}

.intro-text,
.last-updated {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.last-updated {
    font-style: italic;
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
    background: rgba(255, 230, 109, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

/* Contact / FAQ */
.contact-categories,
.faq {
    margin: 2rem 0;
}

.category {
    background: #F9F9F9;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    border-left: 5px solid var(--primary);
}

.category h3 {
    margin-top: 0;
    color: var(--primary);
}

.faq h3 {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

/* Ad Section */
.ad-section {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 230, 109, 0.05);
    border: 2px dashed #DDD;
    border-radius: var(--border-radius);
    text-align: center;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 4rem;
}

footer .container {
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.8;
}

.footer-nav a:hover {
    color: var(--accent);
    opacity: 1;
}

/* Accessibility */
a:focus,
button:focus {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

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

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .service-grid,
    .features {
        grid-template-columns: 1fr;
    }

    .intro,
    .services,
    .why-us,
    .how-to-use,
    .about-site,
    .content-section {
        padding: 1.5rem;
    }

    .footer-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 960px;
    }

    h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
    }
}

/* ==============================================
   제휴마케팅 전용 스타일 (v2.7.0)
   ============================================== */

/* 제휴 고지 메인 (상단 눈에 띄게) */
.affiliate-notice-main {
    background: linear-gradient(135deg, #FFF3CD 0%, #FFE5B4 100%);
    border-left: 5px solid #FF9800;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.15);
    animation: fadeIn 0.8s ease-out;
}

.affiliate-notice-main p {
    margin: 0;
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.6;
}

.affiliate-notice-main strong {
    color: #FF9800;
    font-weight: 700;
}

/* 제휴 고지 (하단/일반) */
.affiliate-notice {
    padding: 1.5rem;
    text-align: center;
    background: #FFF3CD;
    color: #856404;
    font-size: 0.9em;
    border-radius: 8px;
    margin: 2rem 0;
}

/* 반응형 제휴 고지 */
@media (max-width: 768px) {
    .affiliate-notice-main {
        padding: 1rem 1.5rem;
        border-radius: 8px;
    }

    .affiliate-notice-main p {
        font-size: 0.9rem;
    }
}
