/* General Body Styles */
body {
    margin: 0;
    font-family: sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

/* --- Header --- */
.top-bar {
    background-color: #7c4dff; /* A purple shade, adjust as needed */
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#banner-settings-icon {
    position: absolute;
    right: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
}

.top-bar.disabled {
    opacity: 0.5;
    filter: grayscale(80%);
}

.top-bar.disabled, .advisory-bar.disabled {
    opacity: 0.5;
    filter: grayscale(80%);
}

#banner-preview {
    display: flex;
    padding: 0.5rem;
    font-size: 0.8rem;
    border-radius: 5px;
    margin-top: 0.5rem;
}

#banner-preview p {
    margin: 0;
    color: white;
}

.top-bar a {
    color: #fff;
    text-decoration: underline;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0rem 1rem;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.main-nav .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-nav .logo img {
    height: 80px;
}

.main-nav .logo .logo-text {
    height: 100px; /* Adjust as needed for proper scaling */
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Authentication integration */
.auth-buttons,
.user-menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-buttons button,
.user-menu button {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    transition: background-color 0.3s;
}

.main-nav ul a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.main-nav ul a.button {
    background-color: #ff4081; /* A pink/magenta shade, adjust as needed */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.main-nav ul .auth-buttons button {
    background-color: #00b0ff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.main-nav ul a.button:hover {
    background-color: #f50057;
}

/* --- Hero Section --- */
.hero {
    background-image: url('../Assets/Header Background 2560x1375.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 4rem 1rem;
}

.hero-content .launchpad-icon {
    width: 360px;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin: 0;
    font-weight: bold;
    text-transform: lowercase;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-content .button {
    background-color: #00b0ff; /* A bright blue shade, adjust as needed */
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.hero-content .button:hover {
    background-color: #0091ea;
}

/* --- Advisory Section --- */
.advisory-bar {
    background-color: #9c27b0; /* A deep purple shade, adjust as needed */
    color: white;
    padding: 0.75rem;
    font-size: 0.9rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}


#advisory-banner-settings-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.5rem;
}

#advisory-banner-preview {
    display: flex;
    padding: 0.5rem;
    font-size: 0.8rem;
    border-radius: 5px;
    margin-top: 0.5rem;
}

#advisory-banner-preview p {
    margin: 0;
    color: white;
}

/* --- Language Grid --- */
.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.language-card {
    background-color: white;
    border: 1px solid #4caf50; /* Green border */
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.language-card .flag {
    width: 80px;
    height: 50px; /* Adjust height for a more rectangular shape */
    object-fit: cover;
    margin-bottom: 1rem;
}

.language-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.language-card .status {
    font-weight: bold;
    margin: 1rem 0;
}

.language-card .origin {
    font-size: 0.8rem;
    color: #666;
    margin-top: auto; /* Pushes it to the bottom */
}

.language-card .button {
    background-color: #00b0ff;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    display: inline-block;
    margin: 1rem 0;
}

.language-card .button:hover {
    background-color: #0091ea;
}

/* --- Progress Circle --- */
.progress-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(#00b0ff var(--progress), #e0e0e0 0);
    position: relative;
}

.progress-circle::before {
    content: attr(data-progress) '%';
    position: absolute;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

/* --- Translatonaut Info Section --- */
.translatonaut-info {
    background-image: url('../Assets/Header Background 2560x1375.jpg');
    background-size: cover;
    background-position: center;
    padding: 4rem 1rem;
    color: white;
}

.translatonaut-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.translatonaut-img {
    width: 200px;
    margin-bottom: 2rem;
}

.translatonaut-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.requirements {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 2rem;
    border-radius: 15px;
    text-align: left;
}

.requirements ol {
    padding-left: 0;
}

.requirements ol li {
    margin-left: 40px;
}

.requirements .button {
    background-color: #00b0ff;
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    display: inline-block;
    margin-top: 1rem;
}

.requirements .button:hover {
    background-color: #0091ea;
}


/* --- Footer --- */
footer {
    background-color: #fff;
    padding: 2rem 0;
    border-top: 1px solid #e0e0e0;
}

.footer-main {
    display: flex;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 3rem;
}

.footer-logo-section {
    flex-shrink: 0;
}

.footer-logo {
    width: 280px;
    height: auto;
}

.footer-content {
    display: flex;
    gap: 6rem;
    flex: 1;
}

.footer-column {
    flex: 1;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #333;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
}

.footer-section ul a:hover {
    color: #333;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
    color: #666;
}
/* Advisory Banner Settings Modal Styling */
.text-styling-options {
    display: flex;
    gap: 10px;
    align-items: center;
}

.style-btn {
    padding: 5px 10px;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    cursor: pointer;
    border-radius: 4px;
}

.style-btn.active {
    background-color: #ddd;
    border-color: #999;
}

#advisory-font-select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
.language-card.add-new-tile {
    border-style: dashed;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #4caf50;
}

.language-card .tile-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: none;
}

.language-card:hover .tile-actions {
    display: flex;
    gap: 5px;
}

.tile-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}
.phase-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.phase-header img {
    width: 40px;
    height: 40px;
}

.phase-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #333;
}
.social-icon-link svg {
    fill: #333;
    transition: fill 0.3s;
}

.social-icon-link:hover svg {
    fill: #ff4500; /* Reddit Orange */
}
.wp-social-link-discord:hover svg {
    fill: #5865F2; /* Discord Blue */
}
.wp-social-link-reddit:hover svg {
    fill: #ff4500; /* Reddit Orange */
}

/* Footer Social Icons */
.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none;
    flex-shrink: 0;
}

.social-icons a:hover {
    transform: translateY(-2px);
}

.social-icons a svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Discord - Black circle */
.social-icons a[href*="discord"] {
    background-color: #000;
}
.social-icons a[href*="discord"]:hover {
    background-color: #5865F2;
}

/* Reddit - Orange circle */
.social-icons a[href*="reddit"] {
    background-color: #FF4500;
}
.social-icons a[href*="reddit"]:hover {
    background-color: #cc3700;
}

/* Patreon - Black circle */
.social-icons a[href*="patreon"] {
    background-color: #000;
}
.social-icons a[href*="patreon"]:hover {
    background-color: #f96854;
}

/* YouTube - Red circle */
.social-icons a[href*="youtube"] {
    background-color: #FF0000;
}
.social-icons a[href*="youtube"]:hover {
    background-color: #cc0000;
}
/* --- Skills Table Modal --- */
.skills-modal-content {
    min-width: 800px;
        max-width: 1200px;
  width: 90%;
    background-color: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.skills-table-container {
    max-height: 60vh;
    overflow-y: auto;
    margin-top: 1.5rem;
}

.skills-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.skills-table th, .skills-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.skills-table th {
    background-color: #f4f6f8;
    font-weight: bold;
    position: sticky;
    top: 0;
    resize: horizontal;
    overflow: auto;
}

.skills-table tbody tr:hover {
    background-color: #f9f9f9;
}

.status-dropdown {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 30px;
}

.skills-modal-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.skills-modal-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end; /* Align all buttons to the right */
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    gap: 1rem; /* Add gap between all buttons */
}

.main-actions {
    display: contents; /* This will make the children of .main-actions behave as direct children of .skills-modal-actions */
}

/* Base button style for skills modal */
.skills-modal-actions .button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: white;
}

.skills-modal-actions .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.save-button {
    background-color: #4caf50; /* Green */
}

.save-button:hover {
    background-color: #43a047;
}

.cancel-button {
    background-color: #f44336; /* Red */
}

.cancel-button:hover {
    background-color: #d32f2f;
}

.add-skill-button {
    background-color: #00b0ff; /* Blue */
}

.add-skill-button:hover {
    background-color: #0091ea;
}

.skill-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
}

.resizer {
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    cursor: col-resize;
    user-select: none;
    height: 100%;
}