/* v2/css/student-relationship.css */
@charset "utf-8";

:root {
    --safe-bottom: env(safe-area-inset-bottom, 20px);
    --r: 24px;
}

body {
    margin: 0;
    background: var(--bg-main);
    background-image: var(--bg-grad);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Pretendard', system-ui, -apple-system, sans-serif;
    padding-bottom: 100px;
}

.header {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .title {
    font-size: 19px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

.wrap {
    max-width: 540px;
    margin: 0 auto;
    padding: 24px 20px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 28px 24px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.step-title {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

/* Choice UI */
.choice-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.choice-btn {
    border: 1.5px solid var(--border);
    background: var(--input-bg, rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.choice-btn .emoji {
    font-size: 36px;
    transition: transform 0.2s;
}

.choice-btn span {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-sub);
}

.choice-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.choice-btn:hover .emoji {
    transform: scale(1.1);
}

.choice-group .choice-btn.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    box-shadow: 0 8px 16px -4px var(--accent-soft);
}

.choice-group .choice-btn.active span {
    color: var(--accent);
}

/* Specific Step Colors */
#surveyArea .card:nth-child(1) .choice-btn:nth-child(1).active {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

#surveyArea .card:nth-child(1) .choice-btn:nth-child(1).active span {
    color: #10b981;
}

#surveyArea .card:nth-child(1) .choice-btn:nth-child(2).active {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

#surveyArea .card:nth-child(1) .choice-btn:nth-child(2).active span {
    color: #f59e0b;
}

#surveyArea .card:nth-child(1) .choice-btn:nth-child(3).active {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

#surveyArea .card:nth-child(1) .choice-btn:nth-child(3).active span {
    color: #ef4444;
}

/* Tags UI */
.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.tag {
    padding: 10px 18px;
    border-radius: 14px;
    background: var(--input-bg, rgba(255, 255, 255, 0.03));
    border: 1.5px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: 0.2s;
}

.tag:hover {
    border-color: var(--accent);
}

.tag.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

input[type="text"] {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    background: var(--input-bg, rgba(255, 255, 255, 0.03));
    border-radius: 16px;
    font-size: 15px;
    color: var(--text-main);
    outline: none;
    transition: 0.2s;
}

input[type="text"]:focus {
    border-color: var(--accent);
    background: var(--card-bg);
}

/* Submit Button */
.btn {
    border: none;
    border-radius: 20px;
    padding: 20px;
    width: 100%;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #34d399, #10b981);
}

.btn:active {
    transform: scale(0.96);
}

.btn.ghost {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-main);
    box-shadow: none;
}

/* Tab Bar */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 12px 0 calc(12px + var(--safe-bottom)) 0;
    z-index: 200;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-sub);
    text-decoration: none;
    width: 100%;
    cursor: pointer;
}

.tab-item.active {
    color: var(--accent);
    font-weight: 700;
}

.tab-icon {
    font-size: 26px;
}

.hidden {
    display: none !important;
}

.info-txt {
    font-size: 13px;
    color: var(--text-sub);
    margin-top: 16px;
    line-height: 1.6;
    text-align: center;
}

.done-card {
    text-align: center;
    padding: 60px 24px;
}

#loginCheck {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(8px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#surveyArea .card {
    animation: fadeIn 0.4s ease-out backwards;
}