/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%);
    color: #e0e1dd;
    line-height: 1.8;
    padding: 0;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    color: #00b4d8;
    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;
}

/* Header */
header {
    text-align: center;
    padding: 15px 20px;
    background: rgba(27, 38, 59, 0.9);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(0, 180, 216, 0.2);
    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: #00b4d8;
    background: rgba(0, 180, 216, 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: #90e0ef;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00b4d8;
    text-decoration: underline;
}

/* Show Referral Links */
a.show-referral {
    word-break: break-all; /* Break long URLs at any character */
    overflow-wrap: break-word; /* Ensure wrapping in modern browsers */
}

/* Buttons */
button, .button {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(45deg, #00b4d8, #90e0ef);
    color: #0d1b2a;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 180, 216, 0.5);
}

button:hover, .button:hover {
    background: linear-gradient(45deg, #90e0ef, #00b4d8);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.7);
}

/* Lists */
ul {
    margin-left: 25px;
    list-style-type: disc;
}

ol {
    margin-left: 25px;
    list-style-type: decimal;
}

li {
    margin-bottom: 15px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    background: rgba(65, 90, 119, 0.9);
    border-top: 1px solid rgba(0, 180, 216, 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;
}

.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: #00b4d8;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 180, 216, 0.2);
    padding-top: 20px;
}

.footer-bottom p {
    font-size: 0.9em;
}

.footer-bottom a {
    color: #90e0ef;
}

.footer-bottom a:hover {
    color: #00b4d8;
}

/* Code Blocks */
code, pre {
    background: #0d1b2a;
    padding: 5px 10px;
    border-radius: 5px;
    color: #90e0ef;
    font-family: 'Courier New', Courier, monospace;
}

pre {
    padding: 20px;
    overflow-x: auto;
    white-space: pre-wrap;
    border-left: 4px solid #00b4d8;
    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;
    color: #e0e1dd;
    background: rgba(27, 38, 59, 0.85);
    border: 1px solid rgba(0, 180, 216, 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, #00b4d8, #90e0ef);
    color: #0d1b2a;
    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: #0d1b2a transparent transparent transparent;
}

.sc-table thead th.sorting_asc::after {
    border-width: 0 5px 5px;
    border-color: transparent transparent #0d1b2a transparent;
}

.sc-table thead th.sorting_desc::after {
    border-width: 5px 5px 0;
    border-color: #0d1b2a 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(0, 180, 216, 0.1);
    vertical-align: middle;
    font-weight: 400;
    word-wrap: break-word;
    max-width: 100px;
}

/* 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(0, 180, 216, 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 Adjustments for Mobile */
    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 Adjustments for Mobile */
    .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 and Copy Button Adjustments */
    .referral-code {
        font-size: 1.2em; /* Slightly smaller for mobile */
    }
    .copy-btn {
        font-size: 0.85em; /* Adjust for mobile readability */
        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 Adjustments for Smaller Mobile */
    header {
        padding: 8px 10px;
    }
    h1 {
        font-size: 1.8em;
    }
    nav a {
        font-size: 1em;
        padding: 8px 12px;
    }
    /* Footer Adjustments for Smaller Mobile */
    .footer-links h3 {
        font-size: 1.4em;
    }
    .footer-links a {
        font-size: 1em;
    }
    /* Referral Code and Copy Button Adjustments */
    .referral-code {
        font-size: 1em; /* Further reduction for very small screens */
    }
    .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: #00b4d8;
    background: rgba(0, 180, 216, 0.1);
    padding: 4px 10px;
    border-radius: 5px;
    border: 1px solid #00b4d8;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(0, 180, 216, 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, #00b4d8, #90e0ef);
    color: #0d1b2a;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 180, 216, 0.5);
}

.copy-btn:hover {
    background: linear-gradient(45deg, #90e0ef, #00b4d8);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.7);
}

/* 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(0, 180, 216, 1); }
    100% { transform: scale(1); }
}

/* Icon List Styling */
.icon-list {
    list-style: none;
    margin-left: 25px;
    padding-left: 0;
}

.icon-list li {
    margin-bottom: 15px;
    padding-left: 10px;
}