@import url('elements.css');

.nav-brand img {
	width: 60px;
	height: 60px;
	margin: 0;
	border-radius: 20px;
}

/* Gang Page Specific Styles */
.gang-hero {
	height: 100vh;
	width: 90%;
	background: linear-gradient(rgba(41, 15, 15, 0.9), rgba(15, 15, 41, 0.76)),
		url('/Files/Images/gangimg/ziongang.png') center/cover no-repeat;
	position: relative;	
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	border-radius: 10px;
	margin-left: 90px;
	overflow: auto;
	margin-bottom: 70px;
}

.gang-hero h1 {
	font-size: 3.5rem;
	color: var(--primary-color);
	margin-bottom: 1rem;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.gang-hero p {
	font-size: 1.2rem;
	color: var(--text-color);
	max-width: 600px;
	opacity: 0.9;
}

.gang-detail {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 4rem 2rem;
	position: relative;
	border-bottom: 1px solid rgba(255, 0, 0, 0.1);
	overflow-x: hidden;
}

.gang-detail:last-child {
	border-bottom: none;
}

.gang-header {
	text-align: center;
	margin-bottom: 3rem;
}

.gang-header h2 {
	font-size: 2.5rem;
	color: var(--primary-color);
	margin-bottom: 0.5rem;
}

.gang-motto {
	font-style: italic;
	color: var(--text-color);
	opacity: 0.8;
}

.gang-info {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 2rem;
	padding: 0;
	overflow: hidden;
}

.gang-image {
	width: 100%;
	height: 100%;
	border-radius: 10px;
	margin: 0 auto;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(255, 0, 0, 0.2);
	position: relative;
	cursor: pointer;

}

.gang-image .history-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.85);
	padding: 2rem;
	opacity: 0;
	transition: opacity 1s ease;
	overflow-y: auto;
	color: var(--text-color);
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.gang-image:hover .history-overlay {
	opacity: 1;
}

.history-overlay h3 {
	color: var(--primary-color);
	margin-bottom: 1rem;
	font-size: 1.5rem;
}

.history-overlay p {
	line-height: 1.6;
	margin: 0;
	font-size: 1rem;
}

.gang-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Top Navigation Bar */
.top-navbar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 70px;
	background: rgba(13, 20, 36, 0.9);
	padding: 0.5rem 1rem;
	z-index: 1002;
	backdrop-filter: blur(10px);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav-brand {
	display: flex;
	align-items: center;
	margin: 0;
	
}

.top-nav-links {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 2rem;
	margin: 0;
	padding: 0;
}

.top-nav-links a {
	color: var(--text-color);
	text-decoration: none;
	font-size: 1rem;
	transition: color 0.3s ease;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* Sidebar */
.sidebar {
	position: fixed;
	right: auto;
	left: 0;
	top: 70px;
	width: 120px;
	height: calc(100vh - 70px);
	background: rgba(13, 20, 36, 0.95);
	backdrop-filter: blur(10px);
	z-index: 1001;

}

.side-nav-links {
	width: 100%;
	padding: 0;
	margin: 0;
	list-style: none;
}

.side-nav-links li {
	margin: 1rem 0;
	text-align: center;
}

.side-nav-links a {
	color: #ffffff;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
	writing-mode: vertical-rl;
	text-orientation: mixed;
	transform: rotate(180deg);
	padding: 0rem 0;
	display: inline-block;
	text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.side-nav-links a:hover {
	color: var(--primary-color);
	text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Main Content Adjustment */
.main-content {
	position: relative;
	width: calc(100% - 40px);
	margin-left: 40px;
	padding-top: 70px;
	display: flex;
	flex-direction: column;
	align-items: center;
	z-index: 1;
}

/* Hamburger Menu Button */
.menu-toggle {
	display: none;
	position: fixed;
	top: 1rem;
	right: 1rem;
	background: none;
	border: none;
	color: var(--text-color);
	font-size: 1.5rem;
	cursor: pointer;
	z-index: 1001;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
	display: none;
	position: fixed;
	left: 1rem;
	top: 1rem;
	background: none;
	border: none;
	color: var(--text-color);
	font-size: 1.5rem;
	cursor: pointer;
	z-index: 1002;
}

/* Navigation Toggles */
.menu-toggle,
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    position: fixed;
    z-index: 1000;
    padding: 10px;
}

.menu-toggle {
    top: 10px;
    right: 10px;
}

.sidebar-toggle {
    top: 10px;
    left: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) { /* iPad and smaller devices */
    .nav-brand {
        display: none; /* Hide logo only in responsive mode */
    }

    .menu-toggle,
    .sidebar-toggle {
        display: block;
    }

    .top-navbar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 250px;
        height: 100vh;
        background: rgba(13, 20, 36, 0.95);
        backdrop-filter: blur(10px);
        transition: 0.3s;
        z-index: 999;
        padding-top: 60px; /* Add space for the toggle button */
    }

    .top-navbar.active {
        left: 0;
    }

    .top-nav-links {
        flex-direction: column;
        padding: 0 20px;
    }

    .top-nav-links li {
        margin: 15px 0;
        width: 100%;
    }

    .top-nav-links a {
        font-size: 1.1rem;
        width: 100%;
        padding: 10px 0;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 992px) {
	.gang-info {
		gap: 1.5rem;
	}

	.gang-image {
		max-height: 400px;
	}
}

@media (max-width: 768px) {
	.gang-hero {
		height: 30vh;
	}

	.gang-hero h1 {
		font-size: 2.5rem;
	}

	.gang-detail {
		width: 100%;
		margin: 0;
		transform: none;
	}

	.gang-detail {
		padding: 3rem 1rem;
	}

	.gang-header h2 {
		font-size: 2rem;
	}

	.menu-toggle {
		display: block;
		position: fixed;
		top: 1rem;
		right: 1rem;
		z-index: 1001;
	}

	.top-navbar {
		padding: 0.5rem 1rem;
		flex-direction: column;
		transform: translateY(-100%);
		transition: transform 0.3s ease;
	}

	.top-navbar.active {
		transform: translateY(0);
	}

	.nav-brand {
		margin-bottom: 1rem;
		justify-content: center;
	}

	.top-nav-links {
		flex-direction: column;
		align-items: center;
	}

	.top-nav-links li {
		margin: 0.5rem 0;
	}

	.sidebar {
		transform: translateX(100%);
		top: 0;
		height: 100vh;
		transition: transform 0.3s ease;
	}

	.sidebar.active {
		transform: translateX(0);
	}

	.sidebar-toggle {
		display: block;
	}

	.main-content {
		width: 100%;
		margin: 0;
		padding-right: 0;
		padding-top: 60px;
	}

	.gang-detail, .gang-info, .gang-image {
		width: 100%;
		margin: 0;
	}

	.gang-image {
		height: 500px;
	}

	/* Adjust top navbar position for mobile */
	.top-navbar {
		left: 0;
		width: 100%;
	}

	/* Add overlay when sidebar is open */
	.sidebar-overlay {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.5);
		z-index: 1000;
	}

	.sidebar-overlay.active {
		display: block;
	}

    .menu-toggle,
    .sidebar-toggle {
        display: block;
    }

    .top-navbar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 250px;
        height: 100vh;
        background: #1a1a1a;
        transition: 0.3s;
        z-index: 999;
    }

    .top-navbar.active {
        left: 0;
    }

    .top-nav-links {
        flex-direction: column;
        padding-top: 60px;
    }

    .top-nav-links li {
        margin: 10px 0;
    }

    .sidebar {
        left: -250px;
        transition: 0.3s;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .sidebar-overlay.active {
        display: block;
    }
}

@media (max-width: 480px) {
	.gang-hero h1 {
		font-size: 2rem;
	}

	.gang-hero p {
		font-size: 1rem;
	}

	.gang-detail {
		padding: 2rem 1rem;
	}
}

.trail-dot {
	width: 8px;
	height: 8px;
	background: rgba(255, 0, 0, 0.5);
	border-radius: 50%;
	position: fixed;
	pointer-events: none;
	transform: translate(-50%, -50%);
	transition: width 0.2s, height 0.2s;
	z-index: 9999;
	mix-blend-mode: screen;
	filter: blur(1px);
}

.trail-dot:nth-child(2n) {
	background: rgba(255, 30, 30, 0.4);
	width: 6px;
	height: 6px;
}

.trail-dot:nth-child(3n) {
	background: rgba(255, 60, 60, 0.3);
	width: 4px;
	height: 4px;
}

.trail-dot:nth-child(4n) {
	background: rgba(255, 90, 90, 0.2);
	width: 3px;
	height: 3px;
}