/* XABY Global Styles */
:root {
    --xaby-primary: #68BB3A;
    --xaby-secondary: #4793F6;
    --xaby-warning: #DDD74A;
    --xaby-error: #D1472F;
    --xaby-background: #1A1A1A;
    --xaby-text: #FFFFFF;
    --xaby-purple: #a259ff;
    --xaby-blue: #4da3ff;
    --xaby-red: #ff3b30;
    --xaby-yellow: #ffd500;
    --xaby-green: #57F287;
}

html, body {
    height: 100vh;
    margin: 0;
    padding: 0;
    background-color: var(--xaby-background);
    color: var(--xaby-text);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Round', 'Segoe UI', Roboto, sans-serif;
}

/* Landing Page Styles */
.landing-container {
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.landing-content {
    padding: 20px;
}

.landing-logo img {
    width: 140px;
    height: auto;
    margin-bottom: 40px;
}

.landing-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.landing-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    white-space: pre-line;
}

.login-button {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--xaby-green);
    border-radius: 9999px;
    color: #ffffff;
    background-color: #000000;
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.login-button:hover {
    background-color: var(--xaby-green);
    color: #000;
}

/* Step Form Common Styles */
.step-container {
    width: 100%;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    height: 100vh;
}

.step-form-wrapper {
    width: 100%;
    max-width: 460px;
    padding: 0 1.25rem;
}

.step-logo {
    width: 160px;
    height: auto;
    display: block;
    margin: 0.5rem auto 1.25rem auto;
}

.step-progress {
    position: relative;
    width: 100%;
    height: 8px;
    background-color: #000;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.step-progress .fill {
    position: absolute;
    height: 100%;
    background-color: #fff;
    border-radius: 4px 0 0 4px;
}

.step-progress .step-icon {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    font-weight: bold;
    font-size: 1rem;
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    text-align: center;
    z-index: 2;
}

.step-title {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Form Elements */
.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 1rem;
    border: 1px solid #555;
    background: #2a2a2a;
    color: var(--xaby-text);
    box-sizing: border-box;
}

.url-wrapper {
    display: flex;
    align-items: center;
    background: #2a2a2a;
    border: 1px solid #555;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.url-wrapper .prefix {
    padding: 0.75rem 1rem;
    color: var(--xaby-purple);
    font-weight: bold;
    border-right: 1px solid #555;
    background: #1e1e1e;
}

.url-wrapper input {
    border: none;
    background: transparent;
}

.form-note {
    font-size: 0.85rem;
    color: #aaaaaa;
    margin-bottom: 1.5rem;
}

/* File Upload */
.file-upload {
    border: 2px dashed #444;
    background: #2a2a2a;
    border-radius: 10px;
    text-align: center;
    color: #aaa;
    padding: 1rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.file-upload:hover {
    border-color: var(--xaby-purple);
    color: var(--xaby-purple);
}

.file-upload input {
    display: none;
}

.icon-preview {
    display: none;
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

.btn-primary:disabled {
    background-color: #2a2a2a;
    color: #555;
    cursor: not-allowed;
    opacity: 1;
}

.btn-primary:not(:disabled) {
    background-color: var(--xaby-purple);
}

.btn-outline {
    display: block;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 9999px;
    border: 2px solid;
    background: transparent;
    color: #fff;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}

/* Game/Theme Cards */
.card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #2a2a2a;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid #999;
    cursor: pointer;
}

.card img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.card .title {
    flex: 1;
    margin-left: 1rem;
    font-size: 1rem;
}

.card .add-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #000;
    font-size: 1.25rem;
    font-weight: bold;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Color Themes */
.color-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.select-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #000;
    border: none;
}

.card[data-selected="true"] .select-indicator {
    background: var(--xaby-yellow);
}

/* MyPage Styles */
.mypage-container {
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.mypage-content {
    padding: 20px;
}

.mypage-logo img {
    width: 140px;
    height: auto;
    margin-bottom: 40px;
}

.mypage-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.mypage-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    white-space: pre-line;
}

.edit-button {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--xaby-green);
    border-radius: 9999px;
    color: #ffffff;
    background-color: #000000;
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.edit-button:hover {
    background-color: var(--xaby-green);
    color: #000;
}

/* Step2 specific styles */
.search-box {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 10px;
    color: var(--xaby-text);
    margin-bottom: 1.5rem;
    box-sizing: border-box;
}

/* Step3 specific styles */
.theme-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #2a2a2a;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid #999;
    cursor: pointer;
}

.theme-card .color-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.theme-card .title {
    flex: 1;
    margin-left: 1rem;
    font-size: 1rem;
}

.theme-card .select-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #000;
    border: none;
}

.theme-card[data-selected="true"] .select-indicator {
    background: var(--xaby-yellow);
}

.next-button, .done-button {
    display: block;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 9999px;
    border: 2px solid;
    background: transparent;
    color: #fff;
    font-weight: bold;
    text-align: center;
    margin-top: 2rem;
    cursor: pointer;
    text-decoration: none;
}
