
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    height: 100vh; 
    overflow: hidden;
}

#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

main {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    padding: 20px;
    height: calc(100vh - 60px);
    overflow: hidden; 
    box-sizing: border-box;
    margin-top: 20px;
}

section {
    background: #000;
    border: 1px solid #1f1f1f;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

#RA {
    flex: 1;
    max-width: 10%;
    height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #000;
    border: 2px solid #1f1f1f;
    border-radius: 10px;
    padding: 10px;
    font-size: 16px;
    overflow: hidden;
    position: relative;
}

.setting-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    padding-top: 15px;
    margin-bottom: auto;
    font-size: 14px;
}

.blurred {
    opacity: 0.8;
    pointer-events: none;
    transition: all 0.3s ease;
    position: relative;
}

    .blurred::after {
        content: "Please log in or register to access these features";
        position: absolute;
        top: 100%;
        left: 50%;
        width: 80%;
        transform: translate(-50%, -50%);
        font-size: 14px;
        color: #fff;
        background-color: rgba(0, 0, 0, 0.9);
        padding: 10px 15px;
        border-radius: 5px;
        text-align: center;
        z-index: 1;
        pointer-events: none;
    }

.visible {
    opacity: 1;
    pointer-events: auto;
}

.login-register {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;    
    text-align: right;
    font-size: 14px;
}

#main {
    flex: 2;
    max-width: 80%;
    height: 95%;
    overflow-y: auto; 
    background: #000;
    border: 2px solid #1f1f1f;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 15px;
    border: 1px solid #2a3748;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

    .filter-container span:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(1.1);
    }

    .filter-container span.active {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 5px;
    }

.content-container {
    flex: 1;
    border-radius: 10px;
    border: 1px solid #2a3748;
    padding: 15px;
    overflow-y: auto;
    display: block;
}

    .content-container::-webkit-scrollbar {
        display: none;
    }

.content-row {
    padding-top: 35px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
    align-items: stretch;
}

.content-box {
    background: #1f1f1f;
    padding: 230px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    font-size: 14px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

    .content-box:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(1.05);
    }

#add {
    flex: 1;
    max-width: 10%;
    height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #000;
    border: 2px solid #1f1f1f;
    border-radius: 10px;
    padding: 10px;
    font-size: 14px;
    position: relative;
}

#add p {
    margin-top: auto;
    margin-bottom: auto;
}

.system-container1,
.system-container2 {
    display: none;
}

button {
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

    button:hover {
        background-color: #333;
        color: #fff;
        transform: scale(1.1);
    }

.exit-button {
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-left: 5px;
}

    .exit-button:hover {
        background-color: #333;
        color: #fff;
        transform: scale(1.1);
    }

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;

    background: transparent;
    padding: 12px 28px;
    margin: 0;

    display: grid;
    grid-template-columns: 1fr auto 1fr; 
    align-items: center;

    z-index: 100;
}

.bottom-nav-links {
    grid-column: 2;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

    .bottom-nav a {
        color: #ffffff;
        text-decoration: none;
        font-weight: bold;
        transition: color 0.3s ease, transform 0.3s ease;
        padding: 8px 10px;
        border-radius: 5px;
    }

.bottom-nav a:hover {
  background-color: transparent;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;

    background-color: rgba(0, 0, 0, 0.65);

    justify-content: center;
    align-items: center;           
    padding: 24px;                    

    overflow: auto;
}

.idea-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;

    background-color: rgba(0, 0, 0, 0.5);

    justify-content: center;
    align-items: flex-start;         
    padding: 40px 0;

    overflow-y: auto;
}

.idea-modal-content {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    margin: 0 auto; 
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    color: #fff;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content {
    background: #000;
    border: 1px solid #1f1f1f;
    border-radius: 12px;

    width: min(92vw, 420px);         
    max-width: 420px;

    padding: 26px 24px;              
    box-shadow: none;             
    overflow: hidden;
}

.modal-content h3 {
    margin: 0 0 14px 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 12px;                       
}

.modal-content input {
    width: 100%;
    padding: 12px 12px;

    background: transparent;
    color: #fff;

    border: 1px solid #1f1f1f;
    border-radius: 10px;

    outline: none;
}

.modal-content input:focus {
    border-color: #b7c3ff;
    box-shadow: 0 0 0 3px rgba(183, 195, 255, 0.22);
}

.modal-content button {
    width: 100%;
    padding: 12px 14px;

    background: transparent;
    color: #b7c3ff;

    border: 1px solid #1f1f1f;
    border-radius: 10px;

    font-size: 16px;
    cursor: pointer;

    transition: border-color 0.2s ease, color 0.2s ease;
}

.modal-content button:hover {
    background: transparent;
    border-color: #b7c3ff;
    color: #ffffff;
    transform: none;
}

.modal-content .close-btn {
    opacity: 0.8;
}

.modal-content .close-btn:hover {
    opacity: 1;
    color: #b7c3ff;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .close-btn:hover {
        color: #fff;
    }

.idea-card {
    background: #000;
    border: 1px solid #1f1f1f;
    padding: 30px;
    border-radius: 10px;

    width: 100%;
    max-width: none;
    margin: 0;

    min-height: clamp(420px, 55vh, 680px);
    height: 100%;

    overflow: hidden;

    display: flex;
    flex-direction: column;

    box-shadow: none;
    transition: none;
    will-change: auto;
    backface-visibility: visible;
}

.idea-card:hover {
    transform: none;
}

.media-container img,
.media-container video {
    max-width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.idea-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.idea-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.idea-author {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

    .idea-author img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        margin-bottom: 5px;
    }

.idea-body {
    text-align: center;
    margin: 20px 0;
    font-size: 16px;
    line-height: 1.5;
    flex: 1;
}

.idea-card > button {
    margin-top: 14px;
}

.idea-cost {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.idea-cost p {
    margin: 0;
}

.idea-footer {
    display: flex;
    justify-content: flex-start;
    font-size: 14px;
    line-height: 1.4;
}

.idea-modal-content {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    transform: translateZ(0);
}

.filter-container span.active {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
}

.notification {
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    opacity: 0;
    animation: fadeInOut 4s forwards;
}

.footer-credit {
    grid-column: 3;
    justify-self: end;
    opacity: 0.75;
    font-size: 14px;
    white-space: nowrap;
}

.mobile-only { display: none; }
.desktop-only { display: inline; }

.mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0 0 var(--nav-h, 64px) 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 850;
}
.mobile-backdrop.is-open { display: block; }

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    10%, 90% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@media (max-width: 992px) {
  :root { --nav-h: 64px; }

  body {
    height: 100dvh;
    overflow: hidden;          
  }

  main {
    height: calc(100dvh - var(--nav-h));
    overflow: hidden;

    display: block;              
    padding: 12px;
    margin-top: 0;
  }

  #main {
    width: 100%;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 14px;
  }

  .content-container {
    height: 100%;
    overflow-y: auto;
    padding: 12px;
  }

  .content-row {
    grid-template-columns: 1fr !important;
    gap: 16px;
    padding-top: 16px;
  }

  #RA, #add {
    position: fixed;
    top: 0;
    bottom: var(--nav-h);
    height: auto;

    width: min(88vw, 360px);
    max-width: none;

    z-index: 900;

    overflow-y: auto;

    border-radius: 0;             
    padding: 14px;
  }

  #RA {
    left: 0;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }

  #add {
    right: 0;
    transform: translateX(105%);
    transition: transform 0.22s ease;
  }

  #RA.is-open, #add.is-open { transform: translateX(0); }

  .bottom-nav {
    position: fixed;
    left: 0;
    bottom: 0;

    height: var(--nav-h);
    width: 100%;

    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) 12px;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;

    background: rgba(0, 0, 0, 0.35);       
    backdrop-filter: blur(10px);

    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
  }

  .bottom-nav-links {
    grid-column: 2;
    display: flex;
    justify-content: center;
    gap: 10px;

    flex-wrap: nowrap;
    overflow-x: auto;                      
    white-space: nowrap;
    scrollbar-width: none;
  }
  .bottom-nav-links::-webkit-scrollbar { display: none; }

  .bottom-nav a {
    padding: 8px 10px;
    font-size: 13px;
  }

  .nav-panel-btn {
    background: transparent;
    color: #b7c3ff;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;

    padding: 8px 10px;
    font-size: 13px;

    cursor: pointer;
  }

  .mobile-only { display: inline-flex; }
  .desktop-only, .footer-credit { display: none; } 
}
