/* Shared Styles for Koritsuki Entertainment Website */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: black;
    color: white;
    min-height: 100vh;
}

/* Fixed fullscreen background using pseudo-element - works on all browsers including mobile */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('textures/HaloBG.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background-color: rgba(64, 64, 64, 0.5);
    margin-bottom: 20px;
    border-radius: 10px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
}

nav .left-links {
    flex: 1;
    text-align: right;
}

nav .center-logo a {
    text-decoration: none;
}

nav .center-logo img {
    height: 4.4em;
}

nav .right-links {
    flex: 1;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.1em;
}

nav a.active {
    color: #00ffff;
    font-weight: bold;
}

#pilotDisplay {
    color: #00ffff;
    font-weight: bold;
    font-size: 0.9em;
    margin-right: 15px;
}

.main-content {
    background-color: rgba(64, 64, 64, 0.5);
    border-radius: 10px;
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container.center-text {
    text-align: center;
}

h1 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    text-align: center;
}

h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    text-align: center;
}

p {
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 800px;
    margin-bottom: 20px;
}

p.center {
    text-align: center;
}

ul {
    text-align: left;
    max-width: 800px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
}

.cta-button {
    display: inline-block;
    background-color: #00aaaa;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    margin: 10px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #00cccc;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    text-align: center;
    width: 300px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.media-placeholder {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 40px;
    margin: 10px;
    text-align: center;
    width: 200px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

.media-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(64, 64, 64, 0.5);
    margin-top: 20px;
    border-radius: 10px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

footer a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

footer a.active {
    color: #00ffff;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    nav {
        flex-direction: column;
        text-align: center;
    }

    nav .left-links,
    nav .right-links {
        text-align: center;
        margin-top: 10px;
    }

    h1 {
        font-size: 1.5em;
    }

    p {
        font-size: 1em;
    }

    .features-grid {
        flex-direction: column;
        align-items: center;
    }

    .media-grid {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.2em;
    }

    p {
        font-size: 0.9em;
    }

    nav a {
        font-size: 1em;
        margin: 0 10px;
    }
}

/* =========================================
   Roadmap Styles - Redesign (Clean Block) 
   ========================================= */

.roadmap-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* 1. Add Task Button */
#addBtn {
    background-color: #00aaaa;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 20px;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

#addBtn:hover {
    background-color: #00cccc;
    transform: scale(1.05);
}

/* 2. Input Group (The "Red Box" area) */
.input-group {
    background-color: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center everything vertically */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#taskInput {
    width: 100%;
    min-height: 100px;
    box-sizing: border-box;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 1.1em;
    font-family: 'Arial', sans-serif;
    resize: vertical;
    margin-bottom: 20px;
}

#taskInput:focus {
    outline: none;
    border-color: #00ffff;
    background-color: rgba(255, 255, 255, 0.15);
}

/* Save/Cancel Buttons Container */
.input-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    width: 100%;
}

.save-btn {
    background-color: #00aa00;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background 0.3s;
}

.save-btn:hover {
    background-color: #00cc00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.cancel-btn {
    background-color: transparent;
    color: #ddd;
    border: 1px solid #777;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.cancel-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}

/* 3. Filter Menu */
.roadmap-menu {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.roadmap-filter-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ccc;
    font-size: 1em;
    cursor: pointer;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s;
}

.roadmap-filter-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.roadmap-filter-btn.active {
    background-color: #00aaaa;
    color: white;
    border-color: #00aaaa;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

/* 4. Task List */
#roadmapList {
    list-style: none !important;
    /* Force remove bullets */
    list-style-type: none !important;
    padding: 0;
    margin: 0;
    text-align: left;
}

.roadmap-item {
    background-color: rgba(40, 40, 40, 0.7);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    border-left: 5px solid transparent;
    transition: transform 0.2s, background-color 0.3s;
}

.roadmap-item:hover {
    transform: translateX(5px);
    background-color: rgba(60, 60, 60, 0.9);
}

.task-text {
    flex-grow: 1;
    font-size: 1.1em;
    line-height: 1.5;
    white-space: pre-wrap;
    color: #eee;
}

/* Status Icons */
.status-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    margin-right: 20px;
    flex-shrink: 0;
    cursor: default;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: white;
    font-weight: bold;
}

.status-upcoming {
    background-color: #ffffff;
    /* White */
    color: #000;
    /* Black text for contrast */
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.status-reported {
    background-color: #ff9580;
    color: #000;
    box-shadow: 0 0 8px rgba(255, 149, 128, 0.4);
}

.status-inprogress {
    background-color: #feffb5;
    color: #000;
    /* Better contrast on yellow */
    box-shadow: 0 0 8px rgba(254, 255, 181, 0.4);
}

.status-completed {
    background-color: #388e3c;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.4);
}

.admin-clickable {
    cursor: pointer;
    border: 2px solid white;
}

.admin-clickable:hover {
    transform: scale(1.1);
}

.delete-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5em;
    /* Bigger delete X */
    cursor: pointer;
    padding: 5px 15px;
    margin-left: 10px;
    transition: color 0.3s;
    line-height: 1;
}

.delete-btn:hover {
    color: #ff4444;
}

/* =========================================
   Screenshots & Media Slideshow
   ========================================= */

.media-section-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.media-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.media-header-row h2 {
    margin: 0 auto; /* Center the title */
    font-size: 1.8em;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

#add-photos-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 8px 16px;
    font-size: 0.9em;
    font-weight: bold;
    border-radius: 4px;
    background-color: #aa0000;
    border: 1px solid #ff3333;
    color: white;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
    transition: all 0.3s ease;
}

#add-photos-btn:hover {
    background-color: #ff3333;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.8);
    transform: translateY(-50%) scale(1.05);
}

.media-layout {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    margin-top: 10px;
}

.main-display-container {
    flex: 2 1 500px;
    max-width: 650px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease;
}

.main-display-container:hover {
    border-color: rgba(0, 255, 255, 0.6);
}

.main-display-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    object-fit: contain;
    max-height: 450px;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    grid-auto-rows: 70px;
    gap: 10px;
    flex: 1 1 150px;
    max-width: 250px;
    align-content: start;
}

.thumbnail-item {
    aspect-ratio: 1/1;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-item:hover {
    border-color: #00ffff;
    transform: scale(1.08);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.bottom-grid {
    display: none;
    margin-top: 20px;
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    grid-auto-rows: 70px;
    gap: 10px;
}

/* Modal dialog for photo upload */
.upload-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.upload-modal-content {
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid #00ffff;
    border-radius: 12px;
    width: 450px;
    max-width: 90%;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    text-align: center;
    position: relative;
    box-sizing: border-box;
}

.upload-modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.upload-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

.upload-modal-close:hover {
    color: #ff3333;
}

.upload-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.upload-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 0.9em;
    color: #ccc;
}

.upload-form-group input[type="text"] {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    box-sizing: border-box;
}

.upload-form-group input[type="text"]:focus {
    outline: none;
    border-color: #00ffff;
}

/* Custom styled file upload button */
.file-select-btn {
    display: block;
    background: rgba(0, 255, 255, 0.1);
    border: 1px dashed #00ffff;
    padding: 15px;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    color: #00ffff;
    font-weight: bold;
    transition: all 0.3s ease;
}

.file-select-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: scale(1.02);
}

#selected-file-name {
    margin-top: 8px;
    font-size: 0.85em;
    color: #aaa;
    word-break: break-all;
}

.upload-submit-btn {
    width: 100%;
    background-color: #00aaaa;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.upload-submit-btn:hover:not(:disabled) {
    background-color: #00cccc;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.5);
}

.upload-submit-btn:disabled {
    background-color: #555;
    color: #999;
    cursor: not-allowed;
}

#upload-status-msg {
    margin-top: 15px;
    font-size: 0.9em;
}

.msg-success {
    color: #00ff00;
}

.msg-error {
    color: #ff3333;
}

/* Mobile Layout for Media Section */
@media (max-width: 900px) {
    .media-layout {
        flex-direction: column;
        align-items: center;
    }
    
    .left-grid, .right-grid {
        display: none !important;
    }
    
    .bottom-grid {
        display: grid !important;
    }
    
    .main-display-container {
        flex: 1 1 auto;
        width: 100%;
    }
}