/* 
    shanesspace.com v1.2 stylesheet
    Adds clickable HEY icon and hidden footer message panel.
*/


/* GLOBAL RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* BASE PAGE */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f4f4;
    color: #222222;
    line-height: 1.6;
    padding-top: 80px;
    padding-bottom: 120px;
}


/* LINKS */
a {
    color: #005f99;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* SECTION 1: FIXED HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    height: 64px;
    background-color: #111827;
    color: #ffffff;
    border-radius: 0 0 14px 14px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}


/* DARK MODE */
body.dark-mode {
    background-color: #0f172a;
    color: #e2e8f0;
}

body.dark-mode a {
    color: #93c5fd;
}

body.dark-mode .site-header {
    background-color: #0f172a;
}

body.dark-mode .profile-card,
body.dark-mode .about-card,
body.dark-mode .reel-card,
body.dark-mode .reel-content,
body.dark-mode .footer-inner {
    background-color: #1f2937;
    color: #e2e8f0;
}

body.dark-mode .button-link {
    background-color: #2563eb;
    color: #ffffff;
}

body.dark-mode .button-link:hover {
    background-color: #1d4ed8;
}

body.dark-mode .reel-image-box {
    background-color: #334155;
}

body.dark-mode .section-heading p,
body.dark-mode .post-meta,
body.dark-mode .footer-status,
body.dark-mode .form-main-label,
body.dark-mode .message-option {
    color: #cbd5e1;
}

body.dark-mode h3 {
    color: #ffffff;
}

body.dark-mode .post-type-label,
body.dark-mode .post-format-label {
    background-color: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}


/* HEADER INNER */
.header-inner {
    height: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0 24px;
}

.theme-toggle-button {
    justify-self: center;
    background: none;
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.95rem;
    cursor: pointer;
}

.theme-toggle-button:hover {
    background-color: #ffffff;
    color: #111827;
}


/* SITE TITLE */
.site-title a {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}


/* HEADER NAV */
.header-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}


/* LOGIN LINK */
.login-link {
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.95rem;
}

.login-link:hover {
    background-color: #ffffff;
    color: #111827;
    text-decoration: none;
}


/* MAIN PAGE CONTAINER */
.page-container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}


/* SECTIONS 2 AND 3 LAYOUT */
.profile-about-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    margin-bottom: 32px;
}


/* SECTION 2: PROFILE CARD */
.profile-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}


/* PROFILE IMAGE */
.profile-image {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #111827;
    background-color: #dddddd;
    margin-bottom: 16px;
}


/* PROFILE TEXT */
.profile-card h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.profile-note {
    font-size: 0.9rem;
    color: #666666;
}


/* SECTION 3: ABOUT CARD */
.about-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.about-card h1 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #111827;
}

.about-card p {
    margin-bottom: 14px;
}


/* BUTTON STYLE LINK */
.button-link {
    display: inline-block;
    margin-top: 10px;
    background-color: #111827;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: bold;
}

.button-link:hover {
    background-color: #374151;
    text-decoration: none;
}


/* SECTION 4: REEL SECTION */
.reel-section {
    margin-bottom: 40px;
}

.section-heading {
    margin-bottom: 18px;
}

.section-heading h2 {
    font-size: 1.7rem;
    color: #111827;
}

.section-heading p {
    color: #555555;
}


/* BASE REEL CARD */
.reel-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0;
    background-color: #ffffff;
    border-radius: 16px;
    margin-bottom: 22px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}


/* IMAGE AREA */
.reel-image-box {
    background-color: #d1d5db;
    min-height: 190px;
}

.reel-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* IMAGE ONLY POSTS */
.image-only-post .reel-image-box {
    min-height: 240px;
}


/* REEL CONTENT */
.reel-content {
    padding: 22px;
}


/* TEXT ONLY POSTS */
.text-only-post {
    grid-template-columns: 1fr;
}

.text-only-post .reel-content {
    padding: 26px;
}


/* POST TEXT */
.reel-content h3 {
    font-size: 1.35rem;
    margin-top: 8px;
    margin-bottom: 6px;
    color: #111827;
}

.post-meta {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 12px;
}


/* REEL ACTIONS */
.reel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
}

.reel-actions a {
    font-weight: bold;
}


/* SOURCE COLOUR SYSTEM */

/* Logged-in user posts: blue */
.logged-in-user-card {
    border-left: 8px solid #2563eb;
}

.logged-in-user-card .reel-content {
    background-color: #eff6ff;
}

.logged-in-user-card .post-type-label {
    background-color: #dbeafe;
    color: #1d4ed8;
}


/* Visitor posts: green */
.visitor-card {
    border-left: 8px solid #16a34a;
}

.visitor-card .reel-content {
    background-color: #f0fdf4;
}

.visitor-card .post-type-label {
    background-color: #dcfce7;
    color: #15803d;
}


/* VIP posts: gold */
.vip-card {
    border-left: 8px solid #d4af37;
}

.vip-card .reel-content {
    background-color: #fff7d6;
}

.vip-card .post-type-label {
    background-color: #fde68a;
    color: #854d0e;
}


/* Advertiser posts: orange */
.advertiser-card {
    border-left: 8px solid #f97316;
}
.advertiser-card .reel-content {
    background-color: #fff7ed;
}

.advertiser-card .post-type-label {
    background-color: #ffedd5;
    color: #c2410c;
}


/* POST LABELS */
.post-type-label,
.post-format-label {
    display: inline-block;
    margin-right: 6px;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: bold;
}

.post-format-label {
    background-color: #e5e7eb;
    color: #111827;
}

.image-only-post .post-format-label {
    background-color: #ede9fe;
    color: #6d28d9;
}

.image-blog-post .post-format-label {
    background-color: #e0f2fe;
    color: #0369a1;
}

.text-only-post .post-format-label {
    background-color: #fef9c3;
    color: #854d0e;
}


/* 
    SECTION 5: HEY ICON BUTTON
    This stays visible at the bottom of the page.
*/
.hey-button {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: 96px;
    height: 96px;
    border: none;
    border-radius: 22px;
    background-color: #ffffff;
    cursor: pointer;
    z-index: 1100;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    padding: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


/* HEY ICON IMAGE */
.hey-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* HOVER EFFECT */
.hey-button:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
}


/* 
    MESSAGE FOOTER
    Hidden by default.
    JavaScript adds .footer-open when the HEY icon is clicked.
*/
.site-footer {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) translateY(110%);
    width: 100%;
    background-color: #111827;
    color: #ffffff;
    z-index: 1200;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease;
}


/* FOOTER OPEN STATE */
.site-footer.footer-open {
    transform: translateX(-50%) translateY(0);
}


/* FOOTER INNER */
.footer-inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 0;
}


/* FOOTER TOP ROW */
.footer-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.footer-top-row h2 {
    font-size: 1.2rem;
}


/* CLOSE BUTTON */
.close-footer-button {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background-color: #374151;
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.close-footer-button:hover {
    background-color: #4b5563;
}


/* FOOTER FORM */
.footer-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-main-label {
    font-size: 0.9rem;
    font-weight: bold;
}


/* RADIO OPTIONS */
.message-options {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.message-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: #e5e7eb;
}


/* MESSAGE INPUT ROW */
.footer-input-row {
    display: flex;
    gap: 10px;
}

.footer-input-row input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.footer-input-row button {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background-color: #2563eb;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
}

.footer-input-row button:hover {
    background-color: #1d4ed8;
}


/* IMAGE UPLOAD PLACEHOLDER */
.upload-placeholder {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.upload-placeholder label {
    font-size: 0.9rem;
    font-weight: bold;
}

.upload-placeholder input {
    color: #ffffff;
}


/* FOOTER STATUS */
.footer-status {
    font-size: 0.8rem;
    color: #d1d5db;
    margin-top: 8px;
}


/* TABLET VIEW */
@media screen and (max-width: 850px) {

    .profile-about-layout {
        grid-template-columns: 1fr;
    }

    .reel-card {
        grid-template-columns: 1fr;
    }

    .reel-image-box {
        height: 240px;
    }

    .text-only-post {
        grid-template-columns: 1fr;
    }

}


/* MOBILE VIEW */
@media screen and (max-width: 600px) {

    body {
        padding-top: 76px;
        padding-bottom: 110px;
    }

    .site-header {
        width: 100%;
        border-radius: 0;
    }

    .header-inner {
        padding: 0 14px;
    }

    .site-title a {
        font-size: 1.1rem;
    }

    .login-link {
        padding: 5px 10px;
        font-size: 0.85rem;
    }

    .page-container {
        width: 94%;
    }

    .about-card,
    .profile-card,
    .reel-content,
    .text-only-post .reel-content {
        padding: 18px;
    }

    .about-card h1 {
        font-size: 1.55rem;
    }

    .section-heading h2 {
        font-size: 1.4rem;
    }

    .profile-image {
        width: 130px;
        height: 130px;
    }

    .reel-image-box {
        height: 210px;
    }

    .hey-button {
        width: 76px;
        height: 76px;
        bottom: 14px;
        border-radius: 18px;
    }

    .footer-input-row {
        flex-direction: column;
    }

    .footer-input-row button {
        width: 100%;
    }

}