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

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

:root {
    --primary: #fbbf24;
    --primary-light: #fcd34d;
    --primary-dark: #f59e0b;
    --bg-gradient-start: #f5f1e8;
    --bg-gradient-end: #fef3c7;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(251, 191, 36, 0.3);
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --accent: #5eead4;
    --accent-secondary: #a78bfa;
    --success: #86efac;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    padding: 2rem;
    position: relative;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(94, 234, 212, 0.2) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-20px, 20px) rotate(5deg);
    }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header .subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.review-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(253, 224, 71, 0.4);
    border-color: var(--accent);
}

.profile-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
}

.avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: white;
    background-image: url('logo.png');
    background-size: 70%;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5);
    margin: 0 auto 1rem;
    overflow: hidden;
    position: relative;
    border: 3px solid var(--accent);
}

.avatar-large img {
    display: none;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.profile-role {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: white;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    overflow: hidden;
    border: 2px solid var(--card-border);
}

.avatar img {
    width: 80%;
    height: 80%;
    object-fit: cover;
}

.reviewer-info h2,
.reviewer-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.reviewer-info .role,
.reviewer-info .review-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.review-section {
    margin-bottom: 1.5rem;
}

.review-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 2px;
}

.review-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.review-content p {
    margin-bottom: 1rem;
}

.review-content p:last-child {
    margin-bottom: 0;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--primary);
    color: var(--primary-light);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(99, 102, 241, 0.3);
    transform: scale(1.05);
}

.rating {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.star {
    color: var(--accent);
    font-size: 1.2rem;
}

.star.empty {
    color: var(--text-muted);
}

.footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

    .header h1 {
        font-size: 2rem;
    }

    .review-card {
        padding: 1.5rem;
    }

    .review-header {
        flex-direction: column;
        text-align: center;
    }
}

/* 스크롤바 스타일링 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-gradient-end);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

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

/* Landing Page Styles */
.member-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.member-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 32px;
    padding: 3rem 2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, rgba(94, 234, 212, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.member-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    border-color: rgba(251, 191, 36, 0.3);
}

.member-card:hover::before {
    opacity: 1;
}

.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border: 4px solid white;
    z-index: 1;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.member-card:hover .member-avatar {
    transform: scale(1.1) rotate(5deg);
}

.member-avatar img {
    width: 75%;
    height: 75%;
    object-fit: contain;
}

.member-info {
    z-index: 1;
    margin-bottom: 2rem;
}

.member-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.member-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

.view-button {
    background: white;
    color: var(--text-primary);
    padding: 0.9rem 2.5rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.4s ease;
    border: 1px solid var(--card-border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    z-index: 1;
}

.member-card:hover .view-button {
    background: var(--text-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--text-primary);
}

.index-footer {
    margin-top: 6rem;
    padding-bottom: 4rem;
    text-align: center;
    color: var(--text-sub);
    font-size: 0.95rem;
    opacity: 0.6;
    font-weight: 500;
}

/* Common Header Home Button */
.home-link {
    position: absolute;
    top: 2.5rem;
    left: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.4rem;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 100;
}

.home-link:hover {
    transform: translateX(-5px);
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .home-link {
        top: 1.5rem;
        left: 1.5rem;
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .member-grid {
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .member-card {
        padding: 2rem 1.5rem;
    }
}