/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Exo 2', sans-serif;
    background: linear-gradient(135deg, #0a192f 0%, #1a365d 100%);
    color: #ffffff; /* White text for readability */
    line-height: 1.8;
    padding: 0;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    color: #ff9500; /* Orange for headings */
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
h1 { font-size: 2em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }
p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #e0e1dd; /* Light gray for body text */
}

/* Image class */
.content-image {
    max-width: 100%;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 149, 0, 0.5); /* Orange glow */
}

/* Header */
header {
    text-align: center;
    padding: 15px 20px;
    background: rgba(27, 38, 59, 0.9);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 149, 0, 0.2); /* Orange tint */
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Navigation */
nav {
    margin-top: 10px;
}
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
nav a {
    color: #e0e1dd;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    transition: all 0.3s ease;
    border-radius: 5px;
    font-size: 0.95em;
}
nav a:hover {
    color: #ff4500; /* Orange-red */
    background: rgba(255, 149, 0, 0.1);
    transform: translateY(-2px);
}

/* Main Content */
main {
    max-width: 1100px;
    margin: 80px auto 40px;
    padding: 0 20px;
}
section {
    background: rgba(27, 38, 59, 0.85);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    width: 100%;
}
section:hover {
    transform: translateY(-5px);
}

/* Anchor Offset for Headings */
h2[id]:before,
h3[id]:before,
h4[id]:before {
    content: "";
    display: block;
    height: 210px;
    margin-top: -80px;
    visibility: hidden;
}

/* Links */
a {
    color: #ff4500; /* Orange-red */
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #ff0000; /* Red */
}

/* Show Referral Links */
a.show-referral {
    word-break: break-all;
    overflow-wrap: break-word;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(45deg, #ff9500, #ff0000); /* Orange to red */
    color: #ffffff; /* White text */
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.5); /* Red glow */
}
.button:hover {
    background: linear-gradient(45deg, #ff0000, #ff9500);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.7);
    color: #ffffff;
}

/* Lists */
ul {
    margin-left: 25px;
    list-style-type: disc;
    color: #e0e1dd;
}
ol {
    margin-left: 25px;
    list-style-type: decimal;
    color: #e0e1dd;
}
li {
    margin-bottom: 15px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    background: rgba(65, 90, 119, 0.9);
    border-top: 1px solid rgba(255, 149, 0, 0.2);
    margin-top: 40px;
}
.footer-links {
    max-width: 1100px;
    margin: 0 auto 30px;
    text-align: left;
}
.footer-links h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #ff9500;
}
.footer-links ul {
    list-style: none;
    margin-left: 0;
    columns: 2;
    column-gap: 40px;
}
.footer-links a {
    color: #e0e1dd;
    font-size: 1em;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: #ff4500;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 149, 0, 0.2);
    padding-top: 20px;
}
.footer-bottom p {
    font-size: 0.9em;
    color: #e0e1dd;
}
.footer-bottom a {
    color: #ff4500;
}
.footer-bottom a:hover {
    color: #ff0000;
}

/* Code Blocks */
code, pre {
    background: #0d1b2a;
    padding: 5px 10px;
    border-radius: 5px;
    color: #ff9500; /* Orange code */
    font-family: 'Courier New', Courier, monospace;
}
pre {
    padding: 20px;
    overflow-x: auto;
    white-space: pre-wrap;
    border-left: 4px solid #ff4500;
    background: rgba(13, 27, 42, 0.95);
}

/* Table Wrapper */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 0 auto 40px;
}

/* General table styling */
.sc-table {
    width: auto;
    max-width: none;
    margin: 0;
    border-collapse: collapse;
    font-family: 'Exo 2', sans-serif;
    font-size: 1.1em;
    background: rgba(27, 38, 59, 0.85);
    color: #e0e1dd;
    border: 1px solid rgba(255, 149, 0, 0.2);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    table-layout: auto;
}

/* Header styling */
.sc-table thead th {
    background: linear-gradient(45deg, #ff9500, #ff0000);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8em;
    padding: 12px 12px;
    text-align: left;
    border-bottom: 2px solid rgba(27, 38, 59, 0.85);
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 1px;
    word-wrap: break-word;
    max-width: 100px;
}

/* Sorting icons (DataTables) */
.sc-table thead th.sorting::after,
.sc-table thead th.sorting_asc::after,
.sc-table thead th.sorting_desc::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    vertical-align: middle;
    border-style: solid;
    transition: border-color 0.3s ease;
}
.sc-table thead th.sorting::after {
    border-width: 5px 5px 0;
    border-color: #ffffff transparent transparent transparent;
}
.sc-table thead th.sorting_asc::after {
    border-width: 0 5px 5px;
    border-color: transparent transparent #ffffff transparent;
}
.sc-table thead th.sorting_desc::after {
    border-width: 5px 5px 0;
    border-color: #ffffff transparent transparent transparent;
}
.sc-table thead th:hover::after {
    border-color: #e0e1dd transparent transparent transparent;
}

/* Body styling */
.sc-table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 149, 0, 0.1);
    vertical-align: middle;
    font-weight: 400;
    word-wrap: break-word;
    max-width: 100px;
    color: #e0e1dd;
}

/* Row striping */
.sc-table tbody tr.row-striping:nth-child(even) {
    background: rgba(65, 90, 119, 0.2);
}

/* Row hover effect */
.sc-table tbody tr.row-hover:hover {
    background: rgba(255, 149, 0, 0.1);
    transition: background-color 0.3s ease;
}

/* Specific tweaks for sc-table-starter-ships */
.sc-table-starter-ships {
    overflow: hidden;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .table-wrapper {
        width: 100%;
        overflow-x: auto;
    }
    .sc-table {
        font-size: 1em;
        margin: 0 10px 20px;
    }
    .sc-table thead th,
    .sc-table tbody td {
        padding: 8px 10px;
        max-width: 150px;
    }
    .sc-table thead th {
        font-size: 1.1em;
    }
    header {
        padding: 10px 15px;
    }
    nav ul {
        flex-direction: column;
        gap: 10px;
        max-height: 200px;
        overflow-y: auto;
        padding: 0;
    }
    nav a {
        font-size: 1.1em;
        padding: 10px 15px;
        display: block;
    }
    .footer-links {
        text-align: center;
    }
    .footer-links ul {
        columns: 1;
    }
    .footer-links a {
        font-size: 1.1em;
    }
    .footer-links h3 {
        font-size: 1.6em;
    }
    #footer-referral-link {
        font-size: 1em;
        word-break: break-all;
    }
    .footer-bottom p {
        font-size: 1em;
    }
    .referral-code {
        font-size: 1.2em;
    }
    .copy-btn {
        font-size: 0.85em;
        padding: 6px 12px;
    }
}
@media (max-width: 600px) {
    .table-wrapper {
        width: 100%;
        overflow-x: auto;
    }
    .sc-table {
        font-size: 0.9em;
        margin: 0 0 20px;
    }
    .sc-table thead th,
    .sc-table tbody td {
        padding: 6px 8px;
        max-width: 100px;
        min-width: 60px;
    }
    header {
        padding: 8px 10px;
    }
    h1 {
        font-size: 1.8em;
    }
    nav a {
        font-size: 1em;
        padding: 8px 12px;
    }
    .footer-links h3 {
        font-size: 1.4em;
    }
    .footer-links a {
        font-size: 1em;
    }
    .referral-code {
        font-size: 1em;
    }
    .copy-btn {
        font-size: 0.8em;
        padding: 5px 10px;
    }
}

/* Responsive video container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 20px auto;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Referral Code Styling */
.referral-code {
    font-weight: 600;
    font-size: 1.4em;
    color: #ff9500;
    background: rgba(255, 149, 0, 0.1);
    padding: 4px 10px;
    border-radius: 5px;
    border: 1px solid #ff9500;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(255, 149, 0, 0.5);
    display: inline-block;
    margin-right: 10px;
}

/* Copy Button Styling */
.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    background: linear-gradient(45deg, #ff9500, #ff0000);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.5);
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.copy-btn:hover {
    background: linear-gradient(45deg, #ff0000, #ff9500);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.7);
    transform: scale(1.05);
}

/* Animation for copy feedback */
.copy-btn.copied {
    animation: pulse 0.5s ease;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); box-shadow: 0 0 15px rgba(255, 149, 0, 1); }
    100% { transform: scale(1); }
}

/* Icon List Styling */
.icon-list {
    list-style: none;
    margin-left: 25px;
    padding-left: 0;
    color: #e0e1dd;
}
.icon-list li {
    margin-bottom: 15px;
    padding-left: 10px;
}