/* --- 1. FONTS & VARIABLES --- */
@font-face {
	font-family: "menufont";
	src: url(https://4love.ge/fonts/bpg_mrgvlovani_caps_2010.woff) format("woff");
	font-weight: 400;
}

:root {
	--primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	--text-main: #2d3748;
	--text-light: #718096;
	--shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
	--shadow-card: 0 20px 60px rgba(118, 75, 162, 0.15); /* The Purple Lift Shadow */
}

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

/* --- FIXED NAVBAR STYLES --- */

/* 1. Push content down so it doesn't hide behind the menu */
body {
	font-family: 'Noto Sans Georgian', sans-serif;
	background-color: #f7fafc;
	color: var(--text-main);
	line-height: 1.6;
	min-height: 100vh;
	
	/* IMPORTANT: Pushes content down so the menu doesn't cover it */
	padding-top: 80px; 
}

/* 2. The Glass Navbar */
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 70px;
	background: rgba(255, 255, 255, 0.85); /* See-through white */
	backdrop-filter: blur(12px);          /* The Blur Effect */
	-webkit-backdrop-filter: blur(12px);  /* For Safari */
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 5%;
	z-index: 1000;
	box-shadow: 0 2px 15px rgba(0,0,0,0.04);
	border-bottom: 1px solid rgba(255,255,255,0.5);
	font-family: menufont;
}

/* 3. Logo Style */
.nav-logo {
	font-family: 'menufont';
	font-size: 24px;
	font-weight: bold;
	background: var(--primary-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	text-decoration: none;
	letter-spacing: 1px;
}

/* 4. Desktop Menu Links */
.nav-links {
	display: flex;
	gap: 30px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-links a {
	text-decoration: none;
	color: var(--text-main);
	font-weight: 600;
	font-size: 15px;
	transition: 0.3s;
	position: relative;
	padding: 5px 0;
}

/* Hover Color */
.nav-links a:hover {
	color: #764ba2;
}

/* The "Sliding Underline" Animation */
.nav-links a::after {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	bottom: 0;
	left: 0;
	background: var(--primary-gradient);
	transition: width 0.3s ease;
}

.nav-links a:hover::after {
	width: 100%;
}

/* 5. Mobile Hamburger Icon (Hidden on Desktop) */
.hamburger {
	display: none;
	font-size: 24px;
	cursor: pointer;
	color: var(--text-main);
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
	/* Hide the links by default */
	.nav-links {
		position: absolute;
		top: 70px; /* Starts right below the header */
		left: 0;
		width: 100%;
		background: white;
		flex-direction: column;
		align-items: center;
		gap: 0;
		max-height: 0; /* Hidden */
		overflow: hidden;
		transition: max-height 0.4s ease-out; /* Smooth Slide Down */
		box-shadow: 0 10px 20px rgba(0,0,0,0.05);
		border-bottom: 1px solid rgba(0,0,0,0.05);
	}

	/* This class is added by JS to open the menu */
	.nav-links.active {
		max-height: 350px;
	}

	.nav-links li {
		width: 100%;
		text-align: center;
	}

	.nav-links a {
		display: block;
		padding: 20px;
		border-bottom: 1px solid #f7fafc;
	}
	
	/* Remove underline animation on mobile */
	.nav-links a::after { display: none; }

	/* Show the hamburger */
	.hamburger {
		display: block;
	}
}

/* Background Orbs */
.orb { position: fixed; border-radius: 50%; filter: blur(100px); z-index: -1; opacity: 0.4; }
.orb-1 { width: 70vw; height: 70vw; background: #a18cd1; top: -20%; left: -10%; }
.orb-2 { width: 60vw; height: 60vw; background: #fbc2eb; bottom: -20%; right: -10%; }

.container { max-width: 850px; margin: 0 auto; padding: 20px; }

/* --- 2. MAIN PAGE STYLES --- */
.hero { text-align: center; margin: 40px 0; }
.hero h1 {
	font-family: 'menufont'; font-size: 2.5rem;
	background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { color: var(--text-light); margin-bottom: 30px; }

.search-wrapper { position: relative; max-width: 500px; margin: 0 auto 50px; }
.search-input {
	width: 100%; padding: 15px 25px; border-radius: 50px;
	border: 2px solid #fff; background: rgba(255,255,255,0.8);
	font-size: 1rem; box-shadow: var(--shadow-soft); outline: none;
}
.search-input:focus { background: white; border-color: #a18cd1; }

/* --- 5-COLUMN AUTHOR GRID --- */
.author-grid { 
	display: grid; 
	/* Changes 250px min to 160px to allow 5 columns on desktop */
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); 
	gap: 15px; 
	padding-bottom: 50px; 
}

/* Smaller Circle Image */
.author-img { 
	width: 85px; /* Reduced from 100px */
	height: 85px; 
	border-radius: 50%; 
	object-fit: cover; 
	margin-bottom: 12px; 
	border: 3px solid #f7fafc;
	box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Slimmer Typography for the Card */
.author-card h3 {
	font-size: 15px; /* Smaller font for 5-column layout */
	font-weight: 700;
	margin-bottom: 5px;
	color: var(--text-main);
	line-height: 1.2;
	font-family: menufont;
}

.author-card span {
	font-size: 12px;
	color: #764ba2;
	font-weight: 600;
	opacity: 0.8;
}

/* Responsive: Keep 2 columns on small mobile phones */
@media (max-width: 480px) {
	.author-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
}

/* --- 3. THE "WHITE CARD" STYLE (Applied to Reading AND Author Profile) --- */

/* This style now applies to BOTH pages */
.glass-card, 
.profile-header {
	background: #ffffff; /* Solid White */
	border: 1px solid rgba(0,0,0,0.05);
	border-radius: 24px;
	padding: 40px;
	box-shadow: var(--shadow-card);
	margin-bottom: 30px;
	position: relative;
	max-width: 800px;
	margin-left: auto; margin-right: auto;
}

/* --- 4. AUTHOR PROFILE SPECIFICS --- */
.profile-header { display: flex; align-items: center; gap: 30px; }

.profile-img-large { 
	width: 150px; height: 150px; 
	border-radius: 50%; object-fit: cover; 
	border: 4px solid white; 
	box-shadow: var(--shadow-soft); 
	flex-shrink: 0; /* Prevents image from squishing */
}
.profile-info h1 { margin: 0 0 10px; font-family: 'menufont'; color: #2d3748; font-size: 2rem; }
.profile-bio { font-size: 1rem; color: #4a5568; line-height: 1.7; }


/* --- 5. READING PAGE SPECIFICS --- */
.article-header {
	text-align: center;
	margin-bottom: 40px;
	border-bottom: 2px solid #f7fafc;
	padding-bottom: 30px;
}

.icon-bubble {
	width: 60px; height: 60px;
	border-radius: 18px;
	display: flex; align-items: center; justify-content: center;
	font-size: 24px;
	margin: 0 auto 20px auto;
}
.bubble-purple { background: rgba(118, 75, 162, 0.1); color: #764ba2; }
.bubble-pink   { background: rgba(255, 88, 168, 0.1); color: #ff58a8; }
.bubble-teal   { background: rgba(0, 184, 148, 0.1); color: #00b894; }

.work-title {
	font-size: 32px; font-weight: 800; color: #2d3748;
	margin-bottom: 10px; font-family: 'menufont';
}

.read-meta {
	background: #f7fafc; color: #718096;
	font-weight: 700; font-size: 13px;
	padding: 8px 16px; border-radius: 50px;
	display: inline-block; margin-top: 15px;
}

.article-content {
	font-size: 19px; line-height: 2.1; color: #4a5568;
	text-align: left;
}


/* --- 6. WORK LIST (On Author Page) --- */
.work-item {
	display: flex; justify-content: space-between; padding: 15px 20px;
	background: white; margin-bottom: 12px; border-radius: 16px;
	text-decoration: none; color: var(--text-main); transition: 0.2s;
	box-shadow: 0 4px 6px rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.02);
}
.work-item:hover { transform: translateX(5px); color: #764ba2; box-shadow: var(--shadow-soft); }


/* --- 7. BUTTONS --- */
.nav-btn {
	background: rgba(255,255,255,0.6);
	color: var(--text-main); font-weight: 700; font-size: 14px;
	padding: 10px 20px; border-radius: 50px;
	text-decoration: none; transition: 0.3s;
	border: 1px solid white;
	font-family: menufont;
}
.nav-btn:hover { background: white; transform: translateY(-2px); box-shadow: var(--shadow-soft); }

/* Mobile */
@media (max-width: 768px) {
	.glass-card, .profile-header { padding: 30px 20px; }
	.profile-header { flex-direction: column; text-align: center; }
	.work-title { font-size: 24px; }
	.article-content { font-size: 17px; }
}

/* --- STANDARD MODERN HEADING --- */
.section-title {
	font-family: 'menufont', sans-serif; /* Uses your custom font */
	font-size: 2rem;       /* 32px equivalent */
	font-weight: 800;      /* Bold */
	color: #1a202c;        /* Modern Dark Grey/Black */
	text-align: left;      /* Aligned to the left */
	margin: 40px 0 20px 0; /* Spacing */
	padding-bottom: 15px;  /* Space for the line */
	border-bottom: 2px solid #edf2f7; /* Subtle divider line */
	letter-spacing: -0.5px; /* Tighter, modern letter spacing */
}

/* Add this to style.css if missing */
.read-more-btn {
	color: #764ba2;
	font-weight: 800;
	cursor: pointer;
	margin-left: 8px;
	text-decoration: underline;
	font-size: 0.95rem;
}
.read-more-btn:hover {
	color: #4A00E0;
	text-decoration: none;
}



/* --- MODERN FEEDBACK SECTION --- */
 .feedback-wrapper {
	 margin-top: 50px;
	 padding-top: 30px;
	 border-top: 1px solid rgba(0,0,0,0.05);
	 text-align: center;
 }
 
 .feedback-title {
	 font-size: 14px;
	 font-weight: 700;
	 color: var(--text-light);
	 margin-bottom: 20px;
	 text-transform: uppercase;
	 letter-spacing: 1px;
 }
 
 .feedback-buttons {
	 display: flex;
	 justify-content: center;
	 gap: 20px;
 }
 
 .vote-btn {
	 display: flex;
	 align-items: center;
	 gap: 10px;
	 padding: 12px 25px;
	 border-radius: 50px;
	 border: none;
	 cursor: pointer;
	 font-family: inherit;
	 font-weight: 700;
	 font-size: 16px;
	 transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	 background: rgba(255, 255, 255, 0.5);
	 box-shadow: 0 4px 15px rgba(0,0,0,0.05);
	 border: 1px solid rgba(255, 255, 255, 0.8);
 }
 
 .btn-like { color: #48bb78; }
 .btn-like:hover {
	 background: #48bb78;
	 color: white;
	 transform: translateY(-3px);
 }
 
 .btn-dislike { color: #f56565; }
 .btn-dislike:hover {
	 background: #f56565;
	 color: white;
	 transform: translateY(-3px);
 }
 
 .vote-msg {
	 display: none;
	 margin-top: 15px;
	 font-weight: 600;
	 animation: fadeInUp 0.5s ease;
 }
 
 /* Reading Progress Bar Styles */
.progress-container {
	 width: 100%;
	 height: 5px;
	 background: rgba(0,0,0,0.05); 
	 position: fixed;
	 top: 70px; /* This must match your navbar height */
	 left: 0;
	 z-index: 10001; /* This ensures it stays on top of the menu */
 }
 
 .progress-bar {
	 height: 100%;
	 background: var(--primary-gradient);
	 width: 0%;
	 transition: width 0.1s ease-out;
 }
 
 /* --- MODERN NAVBAR (GLASSMORPHISM) --- */
 .navbar {
	 position: fixed;
	 top: 0;
	 left: 0;
	 width: 100%;
	 height: 70px;
	 display: flex;
	 align-items: center;
	 justify-content: space-between;
	 padding: 0 5%;
	 background: rgba(255, 255, 255, 0.85); /* Clean glass look */
	 backdrop-filter: blur(15px);
	 -webkit-backdrop-filter: blur(15px);
	 border-bottom: 1px solid rgba(255, 255, 255, 0.5);
	 z-index: 10000;
 }
 
 /* --- TEXT-ONLY LOGO DESIGN --- */
 .nav-logo {
	 text-decoration: none;
	 display: flex;
	 align-items: center;
 }
 
 .logo-text {
	 font-family: 'menufont', sans-serif;
	 font-size: 28px;
	 font-weight: 900; /* Extra Bold for the first half */
	 letter-spacing: 1px;
	 color: var(--text-main);
	 text-transform: uppercase;
 }
 
 .logo-text .accent {
	 font-weight: 300; /* Thin for the second half */
	 background: var(--primary-gradient);
	 -webkit-background-clip: text;
	 -webkit-text-fill-color: transparent;
	 margin-left: 2px;
 }
 
 /* --- PROGRESS BAR (EXACTLY UNDER MENU) --- */
 .progress-container {
	 width: 100%;
	 height: 4px;
	 background: rgba(0,0,0,0.03); 
	 position: fixed;
	 top: 70px; /* This moves it below the 70px navbar */
	 left: 0;
	 z-index: 10001;
 }
 
 .progress-bar {
	 height: 100%;
	 background: var(--primary-gradient);
	 width: 0%;
	 transition: width 0.1s ease-out;
 }
 
 /* --- MODERN LOGO & ICON STYLE --- */
 .nav-logo {
	 display: flex;
	 align-items: center;
	 gap: 12px;
	 text-decoration: none;
	 transition: all 0.3s ease;
 }
 
 /* The Wrapper (No box/background, just a clean icon) */
 .logo-wrapper {
	 font-size: 28px;
	 background: var(--primary-gradient);
	 -webkit-background-clip: text;
	 -webkit-text-fill-color: transparent;
	 filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
	 display: flex;
	 align-items: center;
	 justify-content: center;
 }
 
 /* The Modern Text Style */
 .logo-text {
	 font-family: 'menufont', sans-serif;
	 font-size: 24px;
	 font-weight: 900;
	 letter-spacing: 1.5px;
	 color: var(--text-main);
	 line-height: 1;
 }
 
 .logo-text .accent {
	 font-weight: 400; /* Modern contrast */
	 background: var(--primary-gradient);
	 -webkit-background-clip: text;
	 -webkit-text-fill-color: transparent;
 }
 
 /* --- REFINED NAVBAR --- */
 .navbar {
	 position: fixed;
	 top: 0; left: 0;
	 width: 100%; height: 70px;
	 display: flex; align-items: center; justify-content: space-between;
	 padding: 0 5%;
	 background: rgba(255, 255, 255, 0.8);
	 backdrop-filter: blur(15px);
	 -webkit-backdrop-filter: blur(15px);
	 border-bottom: 1px solid rgba(255, 255, 255, 0.4);
	 z-index: 10000;
 }
 
 /* --- PROGRESS BAR (LOCKED UNDER MENU) --- */
 .progress-container {
	 width: 100%; height: 4px;
	 background: rgba(0,0,0,0.03);
	 position: fixed;
	 top: 70px; /* Aligned to navbar height */
	 left: 0;
	 z-index: 10001;
 }
 
 /* --- AUTHOR CARD MODERNIZATION --- */
 .author-card {
	 display: flex;
	 flex-direction: column;
	 align-items: center;
	 text-align: center;
	 background: rgba(255, 255, 255, 0.6); /* Glass effect */
	 border: 1px solid rgba(255, 255, 255, 0.8);
	 border-radius: 16px;
	 padding: 20px;
	 transition: all 0.3s ease;
	 text-decoration: none;
	 color: var(--text-main);
 }
 
 .author-card:hover {
	 transform: translateY(-5px);
	 background: white;
	 box-shadow: 0 10px 30px rgba(0,0,0,0.08);
 }
 
 .author-img-wrapper {
	 width: 100px;
	 height: 100px;
	 border-radius: 50%;
	 overflow: hidden;
	 margin-bottom: 15px;
	 border: 3px solid rgba(255,255,255,0.8);
	 box-shadow: 0 5px 15px rgba(0,0,0,0.1);
	 transition: 0.3s;
 }
 
 .author-card:hover .author-img-wrapper {
	 transform: scale(1.05);
	 border-color: #a18cd1; /* Purple accent on hover */
 }
 
 .author-img {
	 width: 100%;
	 height: 100%;
	 object-fit: cover;
 }
 
 .author-info h3 {
	 margin: 0 0 8px 0;
	 font-size: 1.1rem;
	 font-weight: 700;
 }
 
 /* --- THE NEW COUNT BADGE --- */
 .work-count {
	 display: inline-flex;
	 align-items: center;
	 gap: 6px;
	 font-size: 0.85rem;
	 color: #667eea; /* Purple/Blue text */
	 background: rgba(102, 126, 234, 0.1); /* Light purple bg */
	 padding: 5px 12px;
	 border-radius: 20px;
	 font-weight: 600;
	 transition: 0.3s;
 }
 
 .author-card:hover .work-count {
	 background: #667eea;
	 color: white;
 }