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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #0d1117;
    color: #c9d1d9;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 0 0 0;
    margin-bottom: 40px;
}

.hero-image {
    margin-bottom: 30px;
    width: 100%;
    background: #004734;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-logo {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.02);
}

h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

h1 .emoji {
    color: inherit;
}

h1 .title-text {
    background: linear-gradient(90deg, #58a6ff, #79c0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2em;
    color: #8b949e;
    margin-bottom: 30px;
}

/* 통합 챌린지 안내 */
.challenge-overview {
    margin: 40px 0;
    padding: 30px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.challenge-content {
    margin-bottom: 25px;
}

.challenge-types {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    color: #58a6ff;
    font-weight: 500;
    line-height: 1.6;
}

.challenge-motto {
    margin: 0 0 25px 0;
    font-size: 1.1em;
    color: #8b949e;
    font-weight: 400;
}

.current-period {
    margin: 0;
}

/* 스티키 도전 메시지 */
.challenge-provocative {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #21262d;
    border-bottom: 1px solid #30363d;
    padding: 12px 0;
    text-align: center;
    color: #f0f6fc;
    font-weight: 500;
    font-size: 0.9em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.challenge-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1f6feb, #388bfd);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1em;
    box-shadow: 0 4px 12px rgba(31, 111, 235, 0.3);
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.challenge-badge.urgent {
    background: linear-gradient(135deg, #da3633, #f85149);
    box-shadow: 0 4px 12px rgba(218, 54, 51, 0.3);
    animation: urgent-pulse 1.5s infinite;
}

.challenge-badge.new-week {
    background: linear-gradient(135deg, #1f6feb, #58a6ff);
    box-shadow: 0 4px 12px rgba(35, 134, 54, 0.3);
    animation: celebration-pulse 2s infinite;
}

.badge-icon {
    font-size: 1.2em;
}

.challenge-info {
    margin-top: 15px;
    font-size: 0.95em;
    color: #8b949e;
    font-style: italic;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(31, 111, 235, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(31, 111, 235, 0.4);
    }
}

@keyframes urgent-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(218, 54, 51, 0.3);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 8px 25px rgba(218, 54, 51, 0.5);
    }
}

@keyframes celebration-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(35, 134, 54, 0.3);
    }
    25% {
        transform: scale(1.05) rotate(-1deg);
    }
    75% {
        transform: scale(1.05) rotate(1deg);
    }
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #58a6ff;
}

.stat-card h3 {
    color: #8b949e;
    font-size: 1em;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #58a6ff;
}

.ranking {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
}

.ranking h2 {
    margin-bottom: 20px;
    font-size: 1.8em;
}

.ranking-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    background: #21262d;
    border: 1px solid #30363d;
    color: #c9d1d9;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #30363d;
}

.filter-btn.active {
    background: #1f6feb;
    border-color: #1f6feb;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ranking-item {
    display: flex;
    align-items: center;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s;
}

.ranking-item:hover {
    border-color: #58a6ff;
    background: #161b22;
}

.rank-number {
    font-size: 1.5em;
    font-weight: bold;
    color: #8b949e;
    width: 50px;
}

.rank-number.gold { color: #ffd700; }
.rank-number.silver { color: #c0c0c0; }
.rank-number.bronze { color: #cd7f32; }

.user-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-name {
    font-weight: bold;
    color: #58a6ff;
    text-decoration: none;
}

.user-name:hover {
    text-decoration: underline;
}

.user-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.badge {
    background: #1f6feb;
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.9em;
}

.badge.fail {
    background: #da3633;
}

.how-to {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
}

.how-to h2 {
    margin-bottom: 30px;
    font-size: 1.8em;
}

.steps-vertical {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.step-vertical {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 25px;
    position: relative;
    transition: all 0.2s;
}

.step-vertical:hover {
    border-color: #58a6ff;
    transform: translateX(5px);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.step-number {
    background: #1f6feb;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-vertical h3 {
    margin: 0;
    font-size: 1.2em;
}

.step-vertical p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.step-example {
    font-style: italic;
    color: #8b949e;
    font-size: 0.95em;
}

.step-highlight {
    font-weight: bold;
    margin: 5px 0;
}

.step-highlight:first-of-type {
    color: #3fb950;
}

.step-highlight:last-of-type {
    color: #f85149;
}

.secrets-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.secrets-list li {
    background: #161b22;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 6px;
    border: 1px solid #30363d;
}

.step-vertical code {
    background: #161b22;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
}

.penalty-info {
    background: #161b22;
    border: 1px solid #f85149;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.penalty-info h4 {
    color: #f85149;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.penalty-info ul {
    list-style: none;
    padding: 0;
}

.penalty-info li {
    padding: 5px 0;
    color: #8b949e;
}

.penalty-info li::before {
    content: "• ";
    color: #f85149;
    font-weight: bold;
}

.record-info {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.record-info h4 {
    color: #58a6ff;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.example-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #0d1117;
    border-radius: 6px;
    overflow: hidden;
}

.example-table th,
.example-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #30363d;
}

.example-table th {
    background: #21262d;
    color: #58a6ff;
    font-weight: 600;
    font-size: 0.9em;
}

.example-table td {
    color: #c9d1d9;
    font-size: 0.9em;
}

.example-table tbody tr:hover {
    background: #161b22;
}

.example-table tbody tr:last-child td {
    border-bottom: none;
}

.workflow-code {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

.workflow-code h3 {
    margin-bottom: 15px;
}

.workflow-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.workflow-buttons {
    display: flex;
    gap: 10px;
}

.penalty-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.penalty-toggle label {
    font-weight: 500;
    color: #c9d1d9;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 25px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #30363d;
    transition: .4s;
    border-radius: 25px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 19px;
    width: 19px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #1f6feb;
}

input:checked + .toggle-slider:before {
    transform: translateX(25px);
}

.toggle-status {
    font-weight: bold;
    color: #1f6feb;
}

.toggle-status.off {
    color: #f85149;
}

.copy-btn, .download-btn {
    background: #1f6feb;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
}

.download-btn {
    background: #1f6feb;
}

.copy-btn:hover {
    background: #58a6ff;
}

.download-btn:hover {
    background: #58a6ff;
}

.copy-btn.copied {
    background: #58a6ff;
}

.workflow-preview {
    border: 1px solid #30363d;
    border-radius: 8px;
    overflow: hidden;
}

.workflow-info {
    background: #161b22;
    padding: 15px;
    border-bottom: 1px solid #30363d;
}

.workflow-info p {
    margin: 0 0 10px 0;
    color: #58a6ff;
}

.workflow-info ol {
    margin: 0;
    padding-left: 20px;
}

.workflow-info li {
    margin: 5px 0;
    color: #c9d1d9;
}

.workflow-note {
    margin-top: 15px;
    padding: 10px;
    background: #58a6ff20;
    border-left: 3px solid #58a6ff;
    border-radius: 4px;
    color: #58a6ff;
    font-size: 0.9em;
}

.fork-btn {
    display: inline-block;
    background: #1f6feb;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.2s;
}

.fork-btn:hover {
    background: #58a6ff;
    transform: translateY(-2px);
}

.workflow-options {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.workflow-options li {
    background: #161b22;
    padding: 12px 15px;
    margin: 8px 0;
    border-radius: 6px;
    border: 1px solid #30363d;
}

.step-note {
    font-style: italic;
    color: #8b949e;
    font-size: 0.9em;
    margin-top: 10px;
}

.fork-info {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
}

.fork-info h3 {
    margin-bottom: 25px;
    font-size: 1.4em;
    color: #58a6ff;
}

.fork-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    transition: all 0.2s;
}

.benefit-item:hover {
    border-color: #58a6ff;
    transform: translateY(-2px);
}

.benefit-icon {
    font-size: 1.5em;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #58a6ff20;
    border-radius: 50%;
    flex-shrink: 0;
}

.benefit-item h4 {
    margin: 0 0 8px 0;
    color: #e6edf3;
}

.benefit-item p {
    margin: 0;
    color: #8b949e;
    font-size: 0.9em;
}

.repo-info {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
}

.repo-info p {
    margin: 0 0 15px 0;
    color: #58a6ff;
}

.repo-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.repo-info li {
    padding: 8px 0;
    border-bottom: 1px solid #30363d;
    color: #c9d1d9;
}

.repo-info li:last-child {
    border-bottom: none;
}

pre {
    background: #161b22;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
}

pre code {
    color: #e6edf3;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #8b949e;
}

footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #30363d;
    color: #8b949e;
}

@media (max-width: 768px) {
    .hero-image {
        padding: 20px;
        border-radius: 8px;
    }

    .hero-logo {
        max-width: 100%;
        border-radius: 6px;
    }

    h1 {
        font-size: 2em;
    }

    .challenge-badge {
        font-size: 1em;
        padding: 10px 20px;
    }

    .challenge-info {
        font-size: 0.9em;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .stats {
        grid-template-columns: 1fr;
    }

    .step-vertical {
        padding: 20px;
    }

    .step-header {
        gap: 10px;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9em;
    }

    .ranking-filters {
        flex-wrap: wrap;
    }

    .user-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .workflow-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .penalty-toggle {
        justify-content: center;
    }

    .workflow-buttons {
        justify-content: center;
    }

    .copy-btn, .download-btn {
        flex: 1;
    }
}

/* 자극적인 멘트 스타일 */
.challenge-provocative {
    margin: 20px auto;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f85149, #da3633);
    border-radius: 8px;
    font-size: 1.3em;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    animation: gentle-bounce 3s infinite;
    box-shadow: 0 2px 8px rgba(248, 81, 73, 0.3);
    max-width: 100%;
    transition: all 0.3s ease;
}

.challenge-provocative.sticky-mode {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    font-size: 1.1em;
    padding: 8px 20px;
    margin: 0;
    border-radius: 0 0 8px 8px;
    animation: none;
    box-shadow: 0 2px 12px rgba(248, 81, 73, 0.4);
    width: calc(100% - 40px);
    max-width: 100%;
}

.challenge-motivation {
    margin: 20px 0;
    padding: 20px;
    background: #1f2937;
    border: 2px solid #374151;
    border-radius: 10px;
    text-align: center;
}

.motivation-text {
    margin: 8px 0;
    font-size: 1em;
    font-weight: 500;
    color: #f59e0b;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.motivation-text:first-child {
    color: #10b981;
    font-size: 1.1em;
}

.motivation-text:last-child {
    color: #ef4444;
    font-size: 1.1em;
    font-weight: 700;
}

@keyframes gentle-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* 개인정보 안내 스타일 */
.privacy-info {
    background: #0f1419;
    border: 2px solid #1f6feb;
    border-radius: 10px;
    padding: 25px;
    margin-top: 20px;
}

.privacy-info h4 {
    margin: 0 0 20px 0;
    color: #58a6ff;
    font-size: 1.2em;
    text-align: center;
}

.privacy-content p {
    margin: 15px 0 10px 0;
    color: #e6edf3;
    font-weight: 600;
}

.privacy-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.privacy-content li {
    padding: 8px 0;
    border-bottom: 1px solid #30363d;
    color: #c9d1d9;
}

.privacy-content li:last-child {
    border-bottom: none;
}

.privacy-content strong {
    color: #79c0ff;
}

.privacy-notice {
    background: #0d1117;
    border: 1px solid #1f6feb;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.privacy-notice p {
    margin: 10px 0;
    color: #c9d1d9;
    font-weight: normal;
}

.privacy-notice p:first-child {
    color: #58a6ff;
    font-weight: 600;
    margin-bottom: 15px;
}

.privacy-notice strong {
    color: #58a6ff;
    font-weight: 700;
}

/* 워크플로우 약관 스타일 */
.workflow-terms {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
}

.workflow-terms h3 {
    margin: 0 0 25px 0;
    color: #58a6ff;
    font-size: 1.3em;
    text-align: center;
    border-bottom: 2px solid #30363d;
    padding-bottom: 15px;
}

.terms-content h4 {
    margin: 25px 0 15px 0;
    color: #e6edf3;
    font-size: 1.1em;
    font-weight: 600;
    padding-left: 10px;
    border-left: 3px solid #58a6ff;
}

.terms-content h4:first-child {
    margin-top: 0;
}

.terms-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.terms-content li {
    padding: 8px 0 8px 20px;
    border-bottom: 1px solid #21262d;
    color: #c9d1d9;
    font-size: 0.95em;
    line-height: 1.5;
    position: relative;
}

.terms-content li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #58a6ff;
    font-weight: bold;
}

.terms-content li:last-child {
    border-bottom: none;
}

.terms-content strong {
    color: #79c0ff;
    font-weight: 600;
}

.terms-notice {
    background: #0d1117;
    border: 2px solid #f85149;
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
}

.terms-notice p:first-child {
    color: #f85149;
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 15px;
    text-align: center;
}

.terms-notice p {
    margin: 8px 0;
    color: #c9d1d9;
    font-size: 0.9em;
    line-height: 1.4;
}

/* 내 프로필 섹션 스타일 */
.my-profile {
    margin: 40px 0;
    padding: 30px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
}

.my-profile h2 {
    margin: 0 0 25px 0;
    color: #e6edf3;
    text-align: center;
}

.profile-search {
    margin-bottom: 25px;
}

.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

#profileInput {
    flex: 1;
    padding: 12px 16px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #e6edf3;
    font-size: 14px;
}

#profileInput:focus {
    outline: none;
    border-color: #58a6ff;
}

.search-btn, .clear-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.search-btn {
    background: #1f6feb;
    color: white;
}

.search-btn:hover {
    background: #58a6ff;
}

.clear-btn {
    background: #da3633;
    color: white;
}

.clear-btn:hover {
    background: #f85149;
}

.search-hint {
    margin: 0;
    font-size: 12px;
    color: #8b949e;
    text-align: center;
}

.profile-result {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 25px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #30363d;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #58a6ff;
}

.profile-info h3 {
    margin: 0 0 8px 0;
    color: #e6edf3;
    font-size: 1.5em;
}

.profile-status {
    margin: 0;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.profile-status.success {
    background: #58a6ff20;
    color: #58a6ff;
    border: 1px solid #58a6ff;
}

.profile-status.progress {
    background: #ffa50020;
    color: #ffa500;
    border: 1px solid #ffa500;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #8b949e;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 1.5em;
    font-weight: 700;
    color: #58a6ff;
}

.profile-recent h4 {
    margin: 0 0 15px 0;
    color: #e6edf3;
    font-size: 1.1em;
}

.recent-records {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
}

.record-period {
    font-size: 14px;
    color: #c9d1d9;
}

.record-result {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.record-commits {
    color: #8b949e;
}

.record-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.record-status.success {
    background: #58a6ff20;
    color: #58a6ff;
}

.record-status.fail {
    background: #f8514920;
    color: #f85149;
}

/* 카드 생성기 스타일 */
.profile-card-generator {
    margin-top: 25px;
    padding: 20px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
}

.card-sample {
    margin: 20px 0;
    padding: 20px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
}

.card-sample h5 {
    margin: 0 0 8px 0;
    color: #58a6ff;
    font-size: 1.1em;
    text-align: center;
}

.sample-description {
    margin: 0 0 20px 0;
    color: #8b949e;
    font-size: 0.9em;
    text-align: center;
    font-style: italic;
}

.sample-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.sample-tab {
    padding: 8px 16px;
    background: #21262d;
    border: 1px solid #30363d;
    color: #c9d1d9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    font-weight: 500;
}

.sample-tab:hover {
    background: #30363d;
    border-color: #58a6ff;
}

.sample-tab.active {
    background: linear-gradient(135deg, #1f6feb, #58a6ff);
    border-color: #1f6feb;
    color: white;
    box-shadow: 0 2px 8px rgba(35, 134, 54, 0.3);
}

.sample-content {
    position: relative;
}

.sample-card {
    display: none;
}

.sample-card.active {
    display: block;
}

.sample-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.sample-preview svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.sample-note {
    margin: 0;
    color: #58a6ff;
    font-size: 0.9em;
    font-weight: 600;
    text-align: center;
    padding: 10px;
    background: #58a6ff20;
    border-radius: 6px;
    border-left: 3px solid #58a6ff;
}

/* 카드 기능 섹션 스타일 */
.card-feature {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
}

.card-feature h2 {
    margin: 0 0 15px 0;
    text-align: center;
    font-size: 1.8em;
}

.feature-description {
    text-align: center;
    color: #8b949e;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.card-usage {
    margin-top: 30px;
    padding: 25px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
}

.card-usage h3 {
    margin: 0 0 20px 0;
    color: #58a6ff;
    text-align: center;
}

.usage-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.usage-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    transition: all 0.2s;
}

.usage-step:hover {
    border-color: #58a6ff;
    transform: translateX(5px);
}

.step-icon {
    font-size: 1.5em;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #58a6ff20;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 5px 0;
    color: #e6edf3;
    font-size: 1.1em;
}

.step-content p {
    margin: 0;
    color: #8b949e;
    font-size: 0.9em;
}

.card-info {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
}

.card-info h4 {
    margin: 0 0 10px 0;
    color: #58a6ff;
}

.card-info p {
    margin: 0 0 15px 0;
    color: #c9d1d9;
    font-size: 0.9em;
}

.card-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-info li {
    padding: 5px 0;
    color: #8b949e;
    font-size: 0.9em;
}

.card-info li::before {
    content: "• ";
    color: #58a6ff;
    font-weight: bold;
}

.profile-card-generator h4 {
    margin: 0 0 10px 0;
    color: #e6edf3;
    font-size: 1.1em;
}

.card-description {
    margin: 0 0 20px 0;
    color: #8b949e;
    font-size: 0.9em;
}

.card-preview {
    margin: 20px 0;
    padding: 20px;
    background: transparent;
    border: none;
    border-radius: 6px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
}

.card-preview svg {
    max-width: 100%;
    height: auto;
}

.card-preview.empty {
    color: #8b949e;
    font-style: italic;
}

.card-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.card-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.card-btn:first-child {
    background: #1f6feb;
    color: white;
}

.card-btn:first-child:hover {
    background: #58a6ff;
}

.card-btn.copy-btn {
    background: #1f6feb;
    color: white;
}

.card-btn.copy-btn:hover {
    background: #58a6ff;
}

.card-btn.copy-btn.copied {
    background: #58a6ff;
}

.card-code {
    margin-top: 15px;
}

.card-code h5 {
    margin: 0 0 8px 0;
    color: #e6edf3;
    font-size: 0.9em;
}

.card-code textarea {
    width: 100%;
    padding: 10px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #e6edf3;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    resize: vertical;
}

.card-code textarea:focus {
    outline: none;
    border-color: #58a6ff;
}

/* 개인정보 처리방침 섹션 스타일 */
.privacy-policy {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
}

.privacy-policy h2 {
    margin: 0 0 25px 0;
    text-align: center;
    font-size: 1.8em;
}

.contact-info {
    margin-top: 25px;
    padding: 20px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    text-align: center;
}

.contact-info h4 {
    margin: 0 0 15px 0;
    color: #58a6ff;
}

.contact-info p {
    margin: 0 0 15px 0;
    color: #c9d1d9;
}

.contact-link {
    display: inline-block;
    background: #1f6feb;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.contact-link:hover {
    background: #58a6ff;
    transform: translateY(-2px);
}

/* 페이지네이션 스타일 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 20px 0;
}

.page-btn {
    background: #21262d;
    border: 1px solid #30363d;
    color: #c9d1d9;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    min-width: 40px;
}

.page-btn:hover {
    background: #30363d;
    border-color: #58a6ff;
}

.page-btn.active {
    background: #1f6feb;
    border-color: #1f6feb;
    color: white;
}

.page-dots {
    color: #8b949e;
    padding: 0 4px;
    font-size: 14px;
}

/* 워크플로우 활성화 가이드 스타일 */
.workflow-enable-guide {
    margin-top: 20px;
    padding: 20px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
}

.workflow-enable-guide h4 {
    margin: 0 0 20px 0;
    color: #58a6ff;
    font-size: 1.1em;
    text-align: center;
}

.guide-images {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.guide-step {
    text-align: center;
}

.guide-step h5 {
    margin: 0 0 15px 0;
    color: #e6edf3;
    font-size: 1em;
    font-weight: 600;
}

.guide-image {
    max-width: 100%;
    height: auto;
    border: 2px solid #30363d;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.guide-image:hover {
    border-color: #58a6ff;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(46, 160, 67, 0.2);
}

.guide-description {
    margin: 0;
    color: #8b949e;
    font-size: 0.9em;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .guide-images {
        flex-direction: row;
        gap: 30px;
    }

    .guide-step {
        flex: 1;
    }
}

/* 랭킹 상세정보 스타일 */
.ranking-detail {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    margin: 10px 0;
    animation: fadeIn 0.3s ease;
}

.ranking-user-detail {
    padding: 20px;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
}

.detail-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #58a6ff;
}

.detail-info h4 {
    margin: 0 0 5px 0;
    color: #e6edf3;
    font-size: 1.2em;
}

.detail-status {
    margin: 0;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.detail-status.success {
    background: #58a6ff20;
    color: #58a6ff;
    border: 1px solid #58a6ff;
}

.detail-status.progress {
    background: #ffa50020;
    color: #ffa500;
    border: 1px solid #ffa500;
}

.close-detail {
    position: absolute;
    top: 0;
    right: 0;
    background: #21262d;
    border: 1px solid #30363d;
    color: #c9d1d9;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-detail:hover {
    background: #f85149;
    border-color: #f85149;
    color: white;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.detail-stat-item {
    text-align: center;
    padding: 12px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
}

.detail-stat-label {
    display: block;
    font-size: 11px;
    color: #8b949e;
    margin-bottom: 6px;
}

.detail-stat-value {
    display: block;
    font-size: 1.1em;
    font-weight: 700;
    color: #58a6ff;
}

/* GitHub 링크 스타일 */
.github-link {
    color: #8b949e;
    text-decoration: underline;
    font-size: 0.75em;
    font-weight: normal;
    margin-left: 8px;
}

.github-link:hover {
    color: #58a6ff;
    text-decoration: underline;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 카드 쇼케이스 섹션 */
.card-showcase {
    margin: 50px 0;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.card-showcase h2 {
    color: white;
    margin-bottom: 10px;
}

.showcase-desc {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    margin-bottom: 30px;
}

.card-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.demo-card {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.demo-card h3 {
    margin-bottom: 15px;
    color: white;
}

.demo-iframe-container {
    display: flex;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 15px;
}

.demo-code {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.demo-code h3 {
    margin-bottom: 15px;
    color: white;
}

.code-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.code-tab {
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.code-tab:hover {
    background: rgba(255,255,255,0.3);
}

.code-tab.active {
    background: rgba(255,255,255,0.4);
    font-weight: 600;
}

.code-block {
    position: relative;
    background: rgba(0,0,0,0.3);
    border-radius: 6px;
    overflow: hidden;
}

.code-block.hidden {
    display: none;
}

.code-block pre {
    margin: 0;
    padding: 15px;
    color: #f8f8f2;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.4;
    overflow-x: auto;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: rgba(255,255,255,0.3);
}

.demo-features {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.feature-icon {
    font-size: 16px;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .card-demo {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .demo-features {
        flex-direction: column;
        gap: 10px;
    }
}

/* 프로필 카드 섹션 */
.profile-card-section {
    margin: 20px 0;
    padding: 20px;
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
}

.profile-card-section h4 {
    margin-bottom: 15px;
    color: #f0f6fc;
}

.card-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

.card-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-preview iframe {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-import-section {
    margin-top: 20px;
    padding: 15px;
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
}

.import-url {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.import-url input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #30363d;
    border-radius: 4px;
    font-size: 14px;
    font-family: monospace;
    background: #0d1117;
    color: #c9d1d9;
}

.import-url button {
    padding: 8px 12px;
    background: #1f6feb;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.import-url button:hover {
    background: #58a6ff;
}

/* 카드 임베딩 섹션 */
.card-embedding {
    background: #0d1117;
    border-top: 1px solid #30363d;
    color: #f0f6fc;
    padding: 60px 0;
    margin-top: 60px;
}

.embedding-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.embedding-intro {
    text-align: center;
    margin-bottom: 40px;
}

.embedding-intro p {
    font-size: 1.2em;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.embedding-example {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: start;
}

.example-card, .example-result {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 30px;
}

.example-card h3, .example-result h3 {
    margin-bottom: 20px;
    color: white;
}

.code-block {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 20px 60px 20px 20px; /* 오른쪽에 버튼 공간 확보 */
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    color: #e2e8f0;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    line-height: 1.5;
    padding-right: 0; /* pre 태그 오른쪽 패딩 제거 */
}

.code-block .copy-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #1f6feb;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
    white-space: nowrap; /* 버튼 텍스트 줄바꿈 방지 */
    min-width: 50px; /* 최소 너비 보장 */
}

.code-block .copy-btn:hover {
    background: #58a6ff;
}

.card-demo {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 160px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


.feature-item h4 {
    margin-bottom: 10px;
    color: white;
    font-size: 1.1em;
}

.feature-item p {
    opacity: 0.8;
    font-size: 0.9em;
    line-height: 1.5;
}

/* 반응형 */
@media (max-width: 768px) {
    .embedding-example {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-embedding {
        padding: 40px 0;
    }

    .example-card, .example-result {
        padding: 20px;
    }

    .code-block pre {
        font-size: 12px;
    }

    .code-block {
        padding: 15px 50px 15px 15px; /* 모바일에서 패딩 줄임 */
    }

    .code-block .copy-btn {
        top: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 11px;
        min-width: 40px;
    }
}

/* 이미지 모달 스타일 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.close-button {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #58a6ff;
}

.modal-caption {
    color: #c9d1d9;
    padding: 15px;
    font-size: 1.1em;
    font-weight: 500;
}

.clickable-image {
    cursor: pointer !important;
    transition: all 0.3s ease;
}

.clickable-image:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

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

/* 랭킹 아이템 스타일 개선 */
.main-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #c9d1d9;
    line-height: 1.4;
}

.main-stat span {
    font-weight: 700;
}

.ranking-item {
    transition: all 0.2s ease;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: #161b22;
    border: 1px solid #30363d;
}

.ranking-item:hover {
    background: #21262d;
    border-color: #58a6ff;
    transform: translateX(4px);
}

.user-stats {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

/* 주의사항 섹션 */
.notice-box {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #21262d;
}

.notice-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.notice-item:first-child {
    padding-top: 0;
}

.notice-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.notice-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #f0f6fc;
}

.notice-content p {
    margin: 0;
    font-size: 14px;
    color: #8b949e;
    line-height: 1.5;
}

/* 토스트 메시지 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1f6feb;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: #1f6feb;
    border-left: 4px solid #58a6ff;
}

.toast.info {
    background: #1f6feb;
    border-left: 4px solid #58a6ff;
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
}

.toast.hide {
    transform: translateX(400px);
    opacity: 0;
}
