/* ===== SHARED STYLES ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    line-height: 1.7;
    min-height: 100vh;
}

a {
    color: #e5a00d;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== HEADER ===== */
.header {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(229, 160, 13, 0.3);
}

.header h1 {
    color: #e5a00d;
    font-size: 2em;
    margin-bottom: 5px;
}

.header .subtitle {
    color: #aaa;
    font-size: 1.1em;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: #e5a00d;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.container-narrow {
    max-width: 900px;
}

/* ===== LANDING PAGE - DEVICE GRID ===== */
.intro {
    text-align: center;
    margin-bottom: 40px;
}

.intro h2 {
    color: #e5a00d;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.intro p {
    color: #ccc;
    font-size: 1.1em;
    max-width: 600px;
    margin: 0 auto;
}

.device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.device-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    display: block;
}

.device-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #e5a00d;
    transform: translateY(-5px);
    text-decoration: none;
}

.device-card .icon {
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
}

.device-card h3 {
    color: #e5a00d;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.device-card p {
    color: #aaa;
    font-size: 0.95em;
}

/* ===== CATEGORY SECTIONS ===== */
.category {
    margin-bottom: 50px;
}

.category h2 {
    color: #e5a00d;
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(229, 160, 13, 0.3);
}

/* ===== GUIDE PAGE STYLES ===== */
.breadcrumb {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
}

.breadcrumb a {
    color: #aaa;
}

.breadcrumb span {
    color: #666;
    margin: 0 10px;
}

.breadcrumb .current {
    color: #e5a00d;
}

.guide-header {
    text-align: center;
    padding: 40px 20px;
    background: rgba(229, 160, 13, 0.1);
    border-bottom: 1px solid rgba(229, 160, 13, 0.2);
}

.guide-header .icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.guide-header h1 {
    color: #e5a00d;
    font-size: 2.2em;
    margin-bottom: 10px;
}

.guide-header .tagline {
    color: #aaa;
    font-size: 1.1em;
}

/* ===== STEPS ===== */
.step {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    margin: 25px 0;
    border-left: 5px solid #e5a00d;
}

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

.step-number {
    background: #e5a00d;
    color: #1a1a2e;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3em;
    flex-shrink: 0;
}

.step-title {
    font-size: 1.4em;
    color: #fff;
}

.path {
    background: #2d2d44;
    padding: 12px 18px;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', monospace;
    margin: 15px 0;
    display: inline-block;
    font-size: 0.95em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== SETTINGS ===== */
.settings-grid {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.setting {
    background: rgba(229, 160, 13, 0.15);
    padding: 18px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.setting-name {
    font-weight: 600;
    color: #fff;
}

.setting-value {
    color: #4ade80;
    font-weight: bold;
    background: rgba(74, 222, 128, 0.15);
    padding: 5px 12px;
    border-radius: 5px;
}

.setting-description {
    width: 100%;
    color: #aaa;
    font-size: 0.9em;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== INFO BOXES ===== */
.info-box {
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.info-box h4 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box.tip {
    background: rgba(59, 130, 246, 0.15);
    border-left: 4px solid #3b82f6;
}

.info-box.tip h4 {
    color: #3b82f6;
}

.info-box.warning {
    background: rgba(239, 68, 68, 0.15);
    border-left: 4px solid #ef4444;
}

.info-box.warning h4 {
    color: #ef4444;
}

.info-box.note {
    background: rgba(168, 85, 247, 0.15);
    border-left: 4px solid #a855f7;
}

.info-box.note h4 {
    color: #a855f7;
}

.info-box.success {
    background: rgba(74, 222, 128, 0.15);
    border-left: 4px solid #4ade80;
}

.info-box.success h4 {
    color: #4ade80;
}

.info-box.explain {
    background: rgba(229, 160, 13, 0.1);
    border-left: 4px solid #e5a00d;
}

.info-box.explain h4 {
    color: #e5a00d;
}

/* ===== SUMMARY BOX ===== */
.summary-box {
    background: linear-gradient(135deg, rgba(229, 160, 13, 0.15) 0%, rgba(229, 160, 13, 0.05) 100%);
    border: 2px solid #e5a00d;
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
}

.summary-box h3 {
    color: #e5a00d;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.checklist {
    list-style: none;
}

.checklist li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.checkmark {
    color: #4ade80;
    font-weight: bold;
    font-size: 1.2em;
}

/* ===== VERIFICATION SECTION ===== */
.verify-section {
    background: rgba(74, 222, 128, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.verify-section h3 {
    color: #4ade80;
    margin-bottom: 15px;
}

/* ===== TABLES ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    background: rgba(229, 160, 13, 0.2);
    color: #e5a00d;
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
}

.footer a {
    color: #888;
}

/* ===== BACK BUTTON ===== */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(229, 160, 13, 0.2);
    color: #e5a00d;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.back-btn:hover {
    background: rgba(229, 160, 13, 0.3);
    text-decoration: none;
}

/* ===== TABS ===== */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.15);
}

.tab.active {
    background: rgba(229, 160, 13, 0.2);
    border-color: #e5a00d;
    color: #e5a00d;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .device-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .header h1 {
        font-size: 1.5em;
    }

    .guide-header h1 {
        font-size: 1.8em;
    }

    .step {
        padding: 20px;
    }

    .setting {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

    .container {
        padding: 15px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step {
    animation: fadeIn 0.5s ease forwards;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }
.step:nth-child(4) { animation-delay: 0.4s; }
.step:nth-child(5) { animation-delay: 0.5s; }
.step:nth-child(6) { animation-delay: 0.6s; }
