/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #e0e0e0;
}

/* ==================== HEADER ==================== */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 2.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

header .subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

/* ==================== NAVIGATION ==================== */
nav {
    background: rgba(30, 30, 60, 0.95);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #667eea;
}

nav h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

nav ul li a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* ==================== MAIN CONTENT ==================== */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* ==================== SECTIONS ==================== */
.location-section {
    margin-bottom: 3rem;
    background: rgba(30, 30, 60, 0.6);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.location-section > h2 {
    font-size: 1.8rem;
    color: #667eea;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

/* ==================== STEPS ==================== */
.step {
    background: rgba(20, 20, 40, 0.8);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.step h3 {
    color: #9f7aea;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.step p {
    margin-bottom: 1rem;
}

.step ul, .step ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.step li {
    margin-bottom: 0.5rem;
}

/* ==================== CODE BLOCKS ==================== */
code {
    background: rgba(102, 126, 234, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    color: #f093fb;
}

.command-block, .code-block {
    background: #0d1117;
    border-radius: 10px;
    margin: 1rem 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.command-header, .code-header {
    background: linear-gradient(90deg, #667eea, #764ba2);
    padding: 0.7rem 1rem;
    font-weight: bold;
    font-size: 0.85rem;
    color: white;
}

.command-block pre, .code-block pre {
    padding: 1rem;
    overflow-x: auto;
    margin: 0;
}

.command-block code, .code-block code {
    background: none;
    padding: 0;
    color: #58a6ff;
    font-size: 0.85rem;
    line-height: 1.8;
}

/* ==================== ALERTS ==================== */
.warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.2));
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    color: #ffd54f;
}

.success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(129, 199, 132, 0.2));
    border: 1px solid #4caf50;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    color: #81c784;
}

.info-box {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(100, 181, 246, 0.2));
    border: 1px solid #2196f3;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    color: #90caf9;
}

.info-box ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.note {
    font-size: 0.85rem;
    color: #90caf9;
    font-style: italic;
    margin-top: 0.3rem;
}

/* ==================== KEYBOARD KEYS ==================== */
kbd {
    background: linear-gradient(180deg, #555, #333);
    border: 1px solid #666;
    border-radius: 5px;
    padding: 0.2rem 0.6rem;
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
    color: white;
    box-shadow: 0 2px 0 #222, 0 3px 5px rgba(0, 0, 0, 0.3);
    margin: 0 0.2rem;
}

.keyboard-shortcut {
    text-align: center;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    margin: 1rem 0;
}

.keyboard-keys {
    list-style: none;
    margin-left: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.keyboard-keys li {
    background: rgba(50, 50, 80, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

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

.port-table th {
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: bold;
}

.port-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.port-table tr:hover td {
    background: rgba(102, 126, 234, 0.1);
}

/* ==================== TROUBLESHOOT ==================== */
.troubleshoot {
    background: rgba(40, 20, 20, 0.6);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
}

.troubleshoot h4 {
    color: #ef5350;
    margin-bottom: 0.5rem;
}

.troubleshoot pre {
    background: #0d1117;
    padding: 0.8rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    overflow-x: auto;
}

.troubleshoot code {
    background: none;
    color: #58a6ff;
}

/* ==================== LINKS ==================== */
a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #9f7aea;
    text-decoration: underline;
}

/* ==================== FOOTER ==================== */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(20, 20, 40, 0.9);
    border-top: 2px solid rgba(102, 126, 234, 0.3);
    margin-top: 3rem;
}

footer p {
    color: #888;
}

footer .version {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    color: #555;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    main {
        padding: 1rem;
    }
    
    .location-section {
        padding: 1rem;
    }
    
    .step {
        padding: 1rem;
    }
    
    .port-table {
        font-size: 0.8rem;
    }
    
    .port-table th, .port-table td {
        padding: 0.5rem;
    }
    
    .keyboard-keys {
        flex-direction: column;
    }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #764ba2, #667eea);
}

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

.location-section {
    animation: fadeIn 0.5s ease-out;
}

/* ==================== SELECTION ==================== */
::selection {
    background: #667eea;
    color: white;
}
