/* =========================================================
   CUSTOM.CSS - Profile404

   Table of contents:
     1.  Variables
     2.  Base
     3.  Layout container
     4.  Header & navigation
     5.  Page layout (columns)
     6.  Profile info (pic, details, status)
     7.  Playlist widget
     8.  Contact box & profile URL
     9.  Interests table
     10. Right column (blurbs / bio)
     11. Footer
     12. Hidden YouTube player
     13. Responsive
   ========================================================= */


/* =========================================================
   1. VARIABLES
   ========================================================= */

:root {
    /* Colors */
    --color-text: #222;
    --color-heading: #000;
    --color-link: #336dc3;
    --color-header-bg: #044eca;
    --color-nav-bg: #003399;
    --color-border-blue: #6698cb;
    --color-panel-bg: #eaf3fb;
    --color-panel-hover: #f2f7fc;
    --color-accent: #ff6600;

    /* Typography */
    --font-main: Verdana, Geneva, Arial, sans-serif;
    --font-alt: Arial, Helvetica, sans-serif;
}


/* =========================================================
   2. BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: var(--font-main);
    font-size: 13px;
    color: var(--color-text);
    background-color: #000;
    background-image: url("https://profile404.neocities.org/assetes/Background.jpg");
    background-repeat: repeat;
    background-attachment: fixed;
}

a {
    color: var(--color-link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1 {
    margin: 0 30px 10px;
    color: var(--color-heading);
    font-size: 20px;
    line-height: 1.2;
}


/* =========================================================
   3. LAYOUT CONTAINER
   ========================================================= */

.profile404-master-container {
    width: 760px;
    margin: 0 auto;
    background: #fff;
}


/* =========================================================
   4. HEADER & NAVIGATION
   ========================================================= */

.profile404-header {
    width: 100%;
    background: var(--color-header-bg);
}

.profile404-top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 16px;
}

.profile404-top-nav .profile404-left,
.profile404-top-nav .profile404-right {
    display: flex;
    align-items: center;
}

.profile404-nav-logo {
    display: block;
    width: 200px !important; /* Logo size */
    height: auto !important;
    object-fit: contain;
}

/* ---------- Search ---------- */

.profile404-search-form {
    display: flex;
    align-items: stretch;
}

.profile404-search-input {
    width: 180px;
    padding: 4px 6px;
    border: 1px solid #ccc;
    font-family: var(--font-main);
    font-size: 12px;
}

.profile404-search-button {
    padding: 4px 10px;
    border: 0;
    border-left: 1px solid #fff;
    background: var(--color-link);
    color: #fff;
    font-weight: bold;
    cursor: default;
}

/* ---------- Main navigation bar ---------- */

.profile404-main-nav-wrapper {
    width: 100%;
    background: var(--color-nav-bg);
}

.profile404-main-nav-container {
    width: 100%;
}

.profile404-main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin: 0;
    padding: 0 16px;
    list-style: none;
}

.profile404-main-nav li a {
    display: block;
    padding: 8px 12px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.profile404-main-nav li a:hover {
    background: #fff !important;
    color: #000 !important;
    text-decoration: none;
}


/* =========================================================
   5. PAGE LAYOUT (COLUMNS)
   ========================================================= */

.profile404-layout {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    direction: rtl; /* Flips column order; children reset to ltr below */
}

.profile404-left-column,
.profile404-right-column {
    direction: ltr;
}

.profile404-left-column {
    flex-shrink: 0;
    width: 295px;
}

.profile404-right-column {
    flex: 1;
    min-width: 0;
}


/* =========================================================
   6. PROFILE INFO (PIC, DETAILS, STATUS)
   ========================================================= */

.profile404-general-about {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

.profile404-pic {
    flex: 0 0 155px;
    width: 155px;
}

.profile404-pic img {
    display: block;
    width: 155px;
    height: auto;
    margin: 0;
    border: 1px solid var(--color-border-blue);
}

.profile404-details {
    flex: 1;
    min-width: 0;
    margin: 0 0 8px;
    padding-top: 0;
    font-size: 12px;
    line-height: 1.25;
}

.profile404-details p {
    margin: 4px 0;
}

.profile404-details img {
    display: block;
    max-width: 100%;
    height: auto;
}

.profile404-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    margin: 6px 0;
    padding: 0;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
}

.profile404-mood,
.profile404-last-seen {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
}

.profile404-last-seen {
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   7. PLAYLIST WIDGET
   ========================================================= */

#profile404-playlist-container {
    width: 284px;
    margin: 8px 0;
    padding: 0;
    font-family: var(--font-alt);
}

#profile404-playlist-container ul {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.profile404-playlist-widget {
    width: 284px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #999;
    border-radius: 0;
    background: #e5e5e5;
    color: var(--color-text);
    box-shadow: inset 0 1px 0 #fff, 0 1px 3px rgba(0, 0, 0, 0.35);
}

.profile404-playlist-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 57px;
    margin: 0;
    padding: 5px 8px;
    border-bottom: 1px solid #999;
    background: linear-gradient(to bottom, #fff 0%, #eee 45%, #d2d2d2 50%, #e8e8e8 100%);
}

.profile404-pp-drag {
    display: flex;
    flex: 0 0 27px;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    margin: 0 6px 0 0;
    padding: 0;
    border: 1px solid #888;
    border-radius: 6px;
    background: linear-gradient(to bottom, #fff, #d0d0d0);
    color: #555;
    font-size: 15px;
    font-weight: bold;
    line-height: 25px;
    pointer-events: none;
    user-select: none;
    box-shadow: inset 0 1px 0 #fff, 0 1px 1px rgba(0, 0, 0, 0.25);
}

/* ---------- Equalizer bars ---------- */

.profile404-pp-equalizer {
    display: flex;
    flex: 0 0 25px;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    width: 25px;
    height: 30px;
    margin: 0 7px 0 0;
    overflow: hidden;
}

.profile404-pp-equalizer span {
    display: block;
    width: 5px;
    height: 30px;
    border-radius: 1px;
    background: linear-gradient(
        to top,
        #20a52a 0%,
        #20a52a 28%,
        #ffe600 29%,
        #ffe600 52%,
        #ff8c00 53%,
        #ff8c00 76%,
        #e60000 77%,
        #e60000 100%
    );
    transform-origin: bottom center;
    animation: profile404-equalizer-bounce 0.55s ease-in-out infinite alternate;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.5);
}

.profile404-pp-equalizer span:nth-child(1) { animation-duration: 1.48s; animation-delay: -1.12s; }
.profile404-pp-equalizer span:nth-child(2) { animation-duration: 1.62s; animation-delay: -1.32s; }
.profile404-pp-equalizer span:nth-child(3) { animation-duration: 1.42s; animation-delay: -0.18s; }
.profile404-pp-equalizer span:nth-child(4) { animation-duration: 0.70s; animation-delay: -0.45s; }

@keyframes profile404-equalizer-bounce {
    0%   { transform: scaleY(0.25); }
    25%  { transform: scaleY(0.55); }
    50%  { transform: scaleY(0.85); }
    75%  { transform: scaleY(0.45); }
    100% { transform: scaleY(1); }
}

/* ---------- Song title / artist ---------- */

.profile404-song-info {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 3px 7px;
    overflow: hidden;
    border-radius: 5px;
    background: #000;
    color: #fff;
    font-family: var(--font-alt);
    font-size: 12px;
    font-weight: bold;
    line-height: 15px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.profile404-song-artist {
    display: block;
    margin: 2px 0 0;
    padding: 0;
    overflow: hidden;
    color: #aaa;
    font-size: 10px;
    font-weight: normal;
    line-height: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* =========================================================
   8. CONTACT BOX & PROFILE URL
   ========================================================= */

.profile404-contact {
    width: 100%;
    margin: 10px 0;
    border: 1px solid var(--color-border-blue);
    background: #fff;
}

/* Shared heading style (contact box + interests) */
.profile404-contact-heading,
.profile404-section-heading {
    padding: 5px 8px;
    border-bottom: 1px solid var(--color-border-blue);
    background: var(--color-panel-bg);
    color: var(--color-heading);
    font-weight: bold;
}

.profile404-contact-heading {
    font-size: 12px;
}

.profile404-section-heading {
    font-size: 16px;
}

.profile404-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

.profile404-contact-link {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 38px;
    margin: 0;
    padding: 7px 8px;
    border: none;
    font-size: 12px;
    line-height: 1.2;
}

.profile404-contact-link:hover {
    background: var(--color-panel-hover);
}

.profile404-contact-icon {
    flex: 0 0 auto;
    width: 22px;
    margin-right: 5px;
    text-align: center;
}

.profile404-url-info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 295px;
    height: 30px;
    margin: 10px 0;
    padding: 4px;
    overflow: hidden;
    border: 1px solid var(--color-border-blue);
    color: var(--color-heading);
    font-family: var(--font-alt);
    font-size: 11px;
    line-height: 14px;
    text-align: left;
    vertical-align: middle;
}


/* =========================================================
   9. INTERESTS TABLE
   ========================================================= */

.profile404-table-section {
    width: 100%;
    margin: 10px 0;
    border: 1px solid var(--color-border-blue);
}

.profile404-interests-scroll {
    height: 400px;
    overflow-x: hidden;
    overflow-y: auto;
}

.profile404-details-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.profile404-details-table td {
    padding: 6px 8px;
    border: none;
    vertical-align: top;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-wrap: break-word; /* Legacy fallback */
}

.profile404-details-table td:first-child {
    width: 80px;
    background: var(--color-panel-bg);
    font-weight: bold;
}

.profile404-details-table p {
    margin: 0;
}

/* ---------- Custom scrollbar (WebKit) ---------- */

.profile404-interests-scroll::-webkit-scrollbar {
    width: 8px;
}

.profile404-interests-scroll::-webkit-scrollbar-track {
    background: #eee;
}

.profile404-interests-scroll::-webkit-scrollbar-thumb {
    border: 1px solid #666;
    border-radius: 0;
    background: #888;
}


/* =========================================================
   10. RIGHT COLUMN (BLURBS / BIO)
   ========================================================= */

.profile404-blurbs {
    width: 100%;
    margin: 0;
    border: none;
}

.profile404-blurbs-inner {
    padding: 12px;
}

.profile404-bio-text {
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.profile404-bio-text hr {
    width: 100%;
    margin: 8px 0;
    border: 0;
    border-top: 1px solid #d3d3d3;
}

.profile404-bio-block {
    width: 350px;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

.profile404-bio-title {
    color: var(--color-accent);
    font-weight: bold;
    text-align: left;
}

.profile404-bio-scroll {
    width: 350px;
    max-width: 100%;
    height: 125px;
    margin-top: 10px;
    padding: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #000;
    background: #fff;
    line-height: 1.4;
    text-align: left;
}

.profile404-bio-image {
    width: 100%;
    margin: 10px 0;
    text-align: center;
}

.profile404-bio-image img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

.profile404-bio-image:first-of-type img {
    width: 300px;
}

.profile404-quote {
    margin: 10px 0;
    text-align: center;
}


/* =========================================================
   11. FOOTER
   ========================================================= */

footer {
    padding: 18px 20px;
    border-top: 1px solid #ddd;
    color: #555;
    font-size: 11px;
    text-align: center;
}

footer p {
    margin: 5px 0;
}

footer a {
    margin: 0 4px;
}


/* =========================================================
   12. HIDDEN YOUTUBE PLAYER
   ========================================================= */

#youtubePlayer {
    position: fixed;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}


/* =========================================================
   13. RESPONSIVE
   ========================================================= */

/* ---------- Tablet & below ---------- */

@media (max-width: 790px) {

    .profile404-master-container {
        width: 100%;
    }

    .profile404-layout {
        flex-direction: column;
    }

    .profile404-left-column,
    .profile404-right-column {
        width: 100%;
        min-width: 0;
    }

    .profile404-top-nav {
        flex-direction: column;
        gap: 10px;
    }

    .profile404-main-nav {
        justify-content: center;
        padding: 0 8px;
    }

    .profile404-pic img {
        max-width: 100%;
    }

    #profile404-playlist-container,
    .profile404-playlist-widget,
    .profile404-url-info {
        width: 100%;
    }
}

/* ---------- Mobile ---------- */

@media (max-width: 480px) {

    .profile404-contact-grid {
        grid-template-columns: 1fr;
    }

    .profile404-contact-link:not(:last-child) {
        border-bottom: 1px solid var(--color-border-blue);
    }

    .profile404-bio-block,
    .profile404-bio-scroll {
        width: 100%;
        max-width: 100%;
    }

    .profile404-search-form {
        width: 100%;
    }

    .profile404-search-input {
        flex: 1;
        width: auto;
    }

    /* Mobile logo override */
    .profile404-nav-logo {
        width: 250px !important;
        height: 100px !important;
    }
}