@import url('https://fonts.googleapis.com/css?family=Khand:200,300,400,500,600,700,800');


body {
    display: flex;
    flex-direction: row;
    font-family: 'Khand';
    display: flex;
    align-items: center;
    background-image: linear-gradient(#000, #000, #393000, #5d4f00);
    height: 100vh;
    margin: 0;
}

/* LIGHT MODE SUPPORT FOR /mystation */

body.light-mode {
	background-image: linear-gradient(#ebe9e1, #dac98e, #d1ba46, #c8b12f );
	color: black;
}

/* Left bar */
.left-bar.light-mode {
	background-color: #a9941a;
}

.left-bar.light-mode h2,
.left-bar.light-mode h1 {
	color: #000;
}

.left-bar.light-mode a:hover {
	opacity: 0.6;
}

/* Header */
.header.light-mode h1,
.header.light-mode i {
	color: #000;
}




/* Boxes */
.follower-stations-box.light-mode,
.followed-stations-box.light-mode,
.name-and-description.light-mode,
.middle-box.light-mode,
.left .name-and-description.light-mode,
.my-station-section .left.light-mode h2,
.link-item.light-mode {
	background-color: #e2e2e2;
	color: #000;
	border-color: #aaa;
}

.name-and-description.light-mode p {
    color: #000;
}

.add-link-button.light-mode {
	background-color: #f1c40f;
	color: #000;
}

.add-link-button.light-mode:hover {
	background-color: #d4ac0d;
}

.link-item.light-mode input {
	color: #000;
}

.pfp-wrapper .overlay.light-mode,
.banner-wrapper .overlay.light-mode {
	background-color: rgba(255, 255, 255, 0.6);
	color: #000;
}

.top.light-mode {
	outline-color: #ccc;
}

/* Input outlines (optional) */
input[type="text"].light-mode {
	border-bottom: 1px solid #333;
}


.left-bar {
    display: flex;
    flex-direction: column;
    background-color: #000;
    width: 17%;
    height: 91.5vh;
    align-items: center;
    text-align: center;
    padding-top: 5%;
    font-family: 'Khand';
}

.left-bar a {
    margin-top: -5%;
    margin-bottom: 7%;
    text-decoration: none;
}

.left-bar h2 {
    color:white;
    font-size: 1.1rem;
    font-weight: 500;
}


.left-bar a:hover {
    opacity: 80%;
    cursor:pointer;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5%;
}

.brand a {
    margin-bottom: 0%;
}

.brand img {
    width: 50%
}

.brand h1 {
    color:white;
    font-size: 1.5rem;
    margin-top: -5%;
    margin-bottom: 40%;
    font-weight: 800;
}

.brand h1:hover {
    cursor: pointer;
}

.main {
    display: flex;
    flex-direction: column;
    padding: 2%;
    width: 78%;
    height: 89vh;
}

.header {
    display: flex;
    align-items: center;
    flex-direction: row;
    max-height: 13%;
}

.header i {
    color: white;
    
}

.header h1 {
    color: white;
    font-size: 2rem;
    font-weight: 500;
    min-width: 87%;
}

.header a:hover {
    opacity: 80%;
    cursor: pointer;
}

/* IMPORTANT: display:flex always, but opacity and pointer-events control visibility! */
.settings-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.settings-dropdown {
    position: absolute;
    top: 120%; /* Push it slightly below the bars */
    left: 50%;
    transform: translateX(-50%) translateY(-10px); /* Center it under bars */
    background-color: black;
    min-width: 150px;
    box-shadow: 0px 8px 16px rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    flex-direction: column;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    display: flex;
    z-index: 10;
    padding: 10px 0; /* Padding top/bottom */
}

/* Chatbox pointer (little triangle) */
.settings-dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent black transparent;
}

.settings-dropdown a {
    color: white;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-family: 'Khand';
    font-size: 1rem;
    text-align: center;
}
  
/* default hover for all normal links */
.settings-dropdown a:hover {
    background-color: #333;
    border-radius: 5px;
}
  
/* SPECIAL logout color */
.settings-dropdown a.logout-link {
    color: #ff4d4d; /* red text */
}
  
/* SPECIAL logout hover */
.settings-dropdown a.logout-link:hover {
    background-color: #330000; /* dark red background */
    color: #ff8080; /* lighter red text */
}
  

/* Hover open if not locked */
.settings-dropdown-wrapper:hover .settings-dropdown:not(.locked) {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Locked open */
.settings-dropdown.locked {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
  

  


.broadcasts-section {
    height: 90%;
    width: 100%;
}

.my-station-section {
    height: 90%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.my-station-section .top {
    position: relative;
    height: 18%;
    width: 95%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    background-color: transparent; /* We will set background only on .banner-wrapper now */
    border-radius: 2rem;
    overflow: hidden;
    outline: solid 1px #ffffff;

}

.top .follower-stations-box,
.top .followed-stations-box {
    position: relative;
    z-index: 5; /* Above the banner */
    pointer-events: auto; /* Allow clicks and hover events */
}

.banner-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border-radius: 2rem;
    overflow: hidden;
    cursor: pointer;
    z-index: 1; /* Below follower/followed boxes */
    pointer-events: auto; /* default */
}

/* 🛡️ IMPORTANT: "holes" in the banner where boxes are */
.banner-wrapper::before {
    content: "";
    position: absolute;
    top: 15%;
    right: 10%; /* Adjust this to match box placement */
    width: 18%; /* Covers the follower/followed area */
    height: 70%;
    background: transparent;
    pointer-events: none; /* ❗ Makes that area IGNORE hover */
    z-index: 10;
}


/* The dark overlay that appears on hover */
.banner-wrapper .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 2rem;
    z-index: 2;
}

.banner-wrapper:hover .overlay {
    opacity: 1;
}

/* Follower and Followed boxes */
.top .follower-stations-box, .top .followed-stations-box {
    position: relative;
    z-index: 3; /* make sure boxes are above banner and visible */
    background-color: black;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 70%;
    width: 8%;
    border-radius: 1rem;
    margin-left: 1rem;
    margin-right: 2%;
    outline: solid 1px #ffffff;
}



.top .followed-stations-box {
    background-color: #000;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    height: 70%;
    width: 8%;
    border-radius: 1rem;
    padding: 1%;

    margin-right: 2%;
    outline: solid 1px #ffffff;
}

.top .follower-stations-box {
    background-color: #000;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    height: 70%;
    width: 8%;
    border-radius: 1rem;
    padding: 1%;
    
    margin-right: 2%;
    outline: solid 1px #ffffff;
}

.top .followed-stations-box h1 {
    font-size: 2.5vh;
    font-weight: 600;
    margin-bottom: 0vh;
}

.top .follower-stations-box h1 {
    font-size: 2.5vh;
    font-weight: 600;
    margin-bottom: 0vh;
}


.my-station-section .bottom {
    height: 70%;
    width: 100%;
    display: flex;
    flex-direction: row;
    margin-top: 5%;
}

.my-station-section .left {
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.my-station-box h2 {
    color: white;
}

.my-station-section .left img {
    height: 25vh;
    width: 25vh;
    border-radius: 50%;
    margin-bottom: 1vh;
    object-fit: cover; 
    outline: solid 1px #ffffff;
}

.my-station-section .left a {
    border-radius: 50%;
}

.my-station-section .left a:hover {
    opacity: 80%;
    cursor: pointer;
}

.my-station-section .middle {
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
/* Improved Links UI */
.middle-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 80%;  /* Increased height to accommodate more links */
    width: 80%;   /* Wider to fit links better */
    padding: 20px;
    background-color: #000;
    border-radius: 3vh;
    color: white;
    outline: solid 1px #ffffff;
    box-sizing: border-box;
    overflow-y: auto; /* Adds scrolling for many links */
}
  
.middle-box h2 {
    margin-bottom: 15px;
    font-size: 1.6rem;
}
  
.links-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
    max-height: 80%;
    overflow-y: auto;
}
  
.link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #111;
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    outline: solid 1px #333;
    transition: outline-color 0.3s;
}
  
.link-item:hover {
    outline-color: #666;
}
  
.link-item input {
    width: 100%;
    background-color: transparent;
    color: white;
    border: none;
    outline: none;
    font-family: 'Khand';
    font-size: 1rem;
    padding: 5px 0;
}
  
.link-item input:focus {
    outline: none;
    border-bottom: 1px solid #ffcc33;
}
  
.link-item input::placeholder {
    color: #aaa;
}
  
.link-item .delete-link {
    background: none;
    border: none;
    color: #ff4d4d;
    font-size: 1.1rem;
    cursor: pointer;
    margin-left: 10px;
    opacity: 0.7;
    transition: opacity 0.3s;
}
  
.link-item .delete-link:hover {
    opacity: 1;
}
  
.add-link-button {
    margin-top: 20px;
    padding: 8px 15px;
    border: none;
    background-color: #ffcc33;
    color: black;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'Khand';
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.3s;
}
  
.add-link-button:hover {
    background-color: #e6b82e;
}
  
/* Empty state styling */
.empty-links-message {
    margin: 20px 0;
    font-style: italic;
}

.right .my-station-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    width: 90%;
    background-color: #000;
    border-radius: 3vh;
    color: white;
    outline: solid 1px #ffffff;
    
    box-sizing: border-box;
}

.my-station-box .edit-title {
    height:15%;
}

.my-station-box h1 {
    font-size: 3vh; /* 🔥 use vh for responsive title size */
    font-weight: 600;
    margin-bottom: 1%;
}

.my-station-box h2 {
    font-size: 2.5vh;
    font-weight: 400;
    margin-bottom: 2%;
}



.links-box {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 10px;
}


.my-station-box button:hover {
    background-color: #5a4c00;
}




.pfp-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.pfp-wrapper .overlay {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    opacity: 0;
    transition: 0.3s;
    border-radius: 50%; /* ✅ circular */
    overflow: hidden;
    height: 25vh;
    width: 25vh;
}

.pfp-wrapper:hover .overlay {
    opacity: 1;
}



.left .name-and-description {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:flex-start;
    text-align: center;
    height: fit-content;
    max-width: 80%;
    min-width: 50%;
    background-color: #000;
    color: white;
    border-radius: 3vh;
    padding: 3%;
    outline: solid 1px #ffffff;
}

.left p {
    color: white;
    font-size: 1rem;
    font-weight: 400;
    margin-top: 0%;
}

#save-description-btn {
	font-family: 'Khand';
	padding: 4px 10px;
	background-color: #ffcc33;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s;
}

#save-description-btn:hover {
	background-color: #e6b82e;
}


/* Phones (width <= 767px) */
@media (max-width: 767px) {
    body {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        overflow-x: hidden;
    }

    .left-bar {
        flex-direction: row;
        width: 95%;
        height: 60px;
        justify-content: center;
        align-items: center;
        padding: 0 10px;
        position: sticky;
        top: 0;
        z-index: 999;
        background-color: #000;
    }

    .left-bar .brand {
        display: none; /* Hide big logo on mobile */
    }

    .left-bar a {
        margin: 0 5px;
        font-size: 0.7rem;
        color: white;
    }

    .main {
        width: 95%;
        padding: 10px;
        margin-top: 10px;
    }

    .left {
        height: auto;
        padding: 0 5%;
    }

    .top .followed-stations-box, 
    .top .follower-stations-box {
        width: 15%;
    }
    
    .middle-box {
        width: 100%;
    }

    
    .pfp-wrapper img {
        height: 15vh;
    }
}