/* Discord Token Checker - Page Styles */

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

/* Header Controls */
.header-controls {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    z-index: 100;
    padding: 0 20px;
}

.header-controls-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-controls-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.back-btn {
    padding: 8px 20px;
    border-radius: 8px;
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.3);
    color: #5865f2;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    height: 40px;
}

.back-btn:hover {
    background: rgba(88, 101, 242, 0.25);
    border-color: rgba(88, 101, 242, 0.5);
}

.lang-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.3);
    color: #5865f2;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    height: 40px;
}

.lang-btn:hover {
    background: rgba(88, 101, 242, 0.25);
    border-color: rgba(88, 101, 242, 0.5);
}

.theme-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.3);
    color: #5865f2;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    height: 40px;
}

.theme-btn:hover {
    background: rgba(88, 101, 242, 0.25);
    border-color: rgba(88, 101, 242, 0.5);
}

*, *::before, *::after {
    font-style: normal !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f2f3f5;
    padding: 20px;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    color: #2e3338;
    font-style: normal;
    font-synthesis: none;
    -webkit-font-synthesis: none;
}

/* ダークモード */
body.dark-mode {
    background: #313338;
    color: #dbdee1;
}

body.dark-mode .header-controls {
    background: transparent;
}

body.dark-mode .back-btn {
    background: rgba(88, 101, 242, 0.2);
    border-color: rgba(88, 101, 242, 0.4);
    color: #7289da;
}

body.dark-mode .back-btn:hover {
    background: rgba(88, 101, 242, 0.3);
    border-color: rgba(88, 101, 242, 0.6);
}

body.dark-mode .lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

body.dark-mode .lang-btn:hover {
    background: rgba(88, 101, 242, 0.3);
    border-color: rgba(88, 101, 242, 0.6);
}

body.dark-mode .theme-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

body.dark-mode .theme-btn:hover {
    background: rgba(88, 101, 242, 0.3);
    border-color: rgba(88, 101, 242, 0.6);
}

body.dark-mode .manual-section {
    background: #2b2d31;
}

body.dark-mode textarea {
    background: #1e1f22;
    color: #dbdee1;
    border-color: #3f4147;
}

body.dark-mode .image-item img {
    border-color: #3f4147;
}

body.dark-mode .step-number {
    background: #5865f2;
    color: white;
}

body.dark-mode .warning-note {
    background: rgba(250, 166, 26, 0.1);
    border-color: #faa61a;
}

body.dark-mode .warning-note strong {
    color: #faa61a;
}

body.dark-mode code {
    background: #1e1f22;
    color: #00d9ff;
}

body.dark-mode [style*="background: rgba(88, 101, 242, 0.08)"] {
    background: rgba(88, 101, 242, 0.15) !important;
}

body.dark-mode [style*="color: #2e3338"],
body.dark-mode [style*="color: #313338"] {
    color: #dbdee1 !important;
}

.container {
    max-width: 465px;
    margin: 0 auto;
    padding: 100px 30px 60px;
}

h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 40px;
    color: #2e3338;
    text-align: center;
    line-height: 1.1;
}

.dark-mode h1 {
    color: #dbdee1;
}

.title-line {
    display: block;
}

.step {
    padding-top: 48px;
    padding-bottom: 48px;
    border-bottom: 2px solid #b5b6b8;
}

.step-intro {
    border-top: 2px solid #b5b6b8;
    padding-top: 48px;
}

.dark-mode .step-intro {
    border-top-color: #5e6772;
}

.step:first-child:not(.step-intro) {
    padding-top: 0;
}

.step:last-child {
    border-bottom: none;
}

.dark-mode .step {
    border-bottom-color: #5e6772;
}

.step-title {
    font-size: 24px;
    font-weight: 700;
    color: #2e3338;
    margin-bottom: 20px;
}

.dark-mode .step-title {
    color: #dbdee1;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.copy-btn {
    flex: 8;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #5865f2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.copy-btn:hover {
    background: #4752c4;
}

.delete-textarea-btn {
    flex: 2;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #5865f2;
    background: transparent;
    color: #5865f2;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.delete-textarea-btn:hover {
    background: rgba(88, 101, 242, 0.1);
    border-color: #4752c4;
}

.dark-mode .delete-textarea-btn {
    border-color: #5865f2;
    color: #5865f2;
}

.dark-mode .delete-textarea-btn:hover {
    background: rgba(88, 101, 242, 0.2);
    border-color: #7289da;
}

.manual-section {
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 2px solid #e3e5e8;
}

.manual-title {
    font-size: 14px;
    color: #5e6772;
    margin-bottom: 12px;
    font-weight: 600;
}

.dark-mode .manual-title {
    color: #949ba4;
}

.manual-section textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    border: 2px solid #e3e5e8;
    border-radius: 8px;
    resize: vertical;
    transition: border-color 0.2s;
}

.manual-section textarea:focus {
    outline: none;
    border-color: #5865f2;
}

.warning-note {
    padding: 16px 20px;
    background: rgba(250, 166, 26, 0.1);
    border-left: 4px solid #faa61a;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 400;
    color: #2e3338;
    line-height: 1.7;
}

.warning-note strong {
    color: #faa61a;
    font-weight: 400;
}

.dark-mode .warning-note {
    color: #dbdee1;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.image-item {
    text-align: center;
}

.image-item img {
    width: 100%;
    border: 2px solid #e3e5e8;
    border-radius: 12px;
}

.step-description {
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: #2e3338;
}

.dark-mode .step-description {
    color: #dbdee1;
}

.instruction-text {
    margin: 20px 0;
}

.instruction-text p {
    margin-bottom: 16px;
    color: #2e3338;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
}

.dark-mode .instruction-text p {
    color: #dbdee1;
}

.info-toggle {
    margin: 16px 0 0 0;
    padding: 12px;
    background: transparent;
    border-radius: 6px;
    border: 1px solid #e3e5e8;
}

.dark-mode .info-toggle {
    border-color: #3f4147;
}

.info-toggle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.info-toggle-title {
    font-size: 13px;
    font-weight: 600;
    color: #5865f2;
}

.info-toggle-icon {
    font-size: 14px;
    color: #5865f2;
    transition: transform 0.2s;
}

.info-toggle-icon.open {
    transform: rotate(180deg);
}

.info-toggle-content {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e3e5e8;
    display: none;
}

.dark-mode .info-toggle-content {
    border-top-color: #3f4147;
}

.info-toggle-content.open {
    display: block;
}

.info-toggle-content p {
    margin-bottom: 10px;
    color: #5e6772;
    font-size: 12px;
    line-height: 1.6;
}

.dark-mode .info-toggle-content p {
    color: #949ba4;
}

code {
    background: #f2f3f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 14px;
    color: #00d9ff;
}

/* Language Toggle - Hidden by default */
.lang-hidden {
    display: none;
}


.code-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    border: 2px solid #e3e5e8;
    border-radius: 8px;
    resize: vertical;
    transition: border-color 0.2s;
}

@media (max-width: 500px) {
    .container {
        max-width: 100%;
        padding: 80px 20px 40px;
    }
    
    h1 {
        font-size: 28px;
    }

    .button-group {
        flex-direction: column;
    }

    .copy-btn, .delete-textarea-btn {
        flex: 1;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
    }
}
