/* Custom Styles for PTA Application */

/* Sinhala Cursive Font - Maname for Hero Title */
.maname-regular {
    font-family: "Maname", serif;
    font-weight: 400;
    font-style: normal;
}

/* Hero section h1 styling - ONLY for index page hero */
.index-hero-section h1 {
    font-family: "Maname", serif !important;
    font-weight: 400 !important;
    font-style: normal;
    font-size: calc(1.8rem + 2.5vw) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

@media (min-width: 1200px) {
    .index-hero-section h1 {
        font-size: 3.8rem !important;
    }
}

/* Share Dropdown on Hover */
.share-dropdown:hover .dropdown-menu,
.share-dropdown .dropdown-menu:hover {
	display: block !important;
}

/* Hero CTA Button - Modern Design */
.btn-hero-cta {
	position: relative;
	padding: 1.1rem 2.5rem;
	font-size: 1.15rem;
	font-weight: 600;
	border-radius: 50px;
	background: linear-gradient(135deg, #863efa 0%, #6b32c8 100%);
	border: none;
	box-shadow: 0 8px 24px rgba(134, 62, 250, 0.35), 
	            0 4px 12px rgba(134, 62, 250, 0.25);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	text-decoration: none;
	color: #fff !important;
}

.btn-hero-cta::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s;
}

.btn-hero-cta:hover::before {
	left: 100%;
}

.btn-hero-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(134, 62, 250, 0.45), 
	            0 6px 16px rgba(134, 62, 250, 0.35);
	background: linear-gradient(135deg, #9544ff 0%, #7a3de0 100%);
	color: #fff !important;
}

.btn-hero-cta:active {
	transform: translateY(0);
	box-shadow: 0 6px 20px rgba(134, 62, 250, 0.3), 
	            0 3px 10px rgba(134, 62, 250, 0.2);
}

.btn-hero-cta i {
	font-size: 1.3rem;
	transition: transform 0.3s ease;
}

.btn-hero-cta:hover i {
	transform: rotate(90deg) scale(1.1);
}

.btn-hero-cta:focus {
	outline: none;
	box-shadow: 0 8px 24px rgba(134, 62, 250, 0.35), 
	            0 4px 12px rgba(134, 62, 250, 0.25),
	            0 0 0 4px rgba(134, 62, 250, 0.2);
}

@media (max-width: 768px) {
	.btn-hero-cta {
		padding: 0.95rem 2rem;
		font-size: 1.05rem;
	}
}

/* Hero CTA Secondary Button - Outline Style */
.btn-hero-cta-secondary {
	position: relative;
	padding: 1.1rem 2.5rem;
	font-size: 1.15rem;
	font-weight: 600;
	border-radius: 50px;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(10px);
	border: 2px solid rgba(255, 255, 255, 0.3);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 
	            0 4px 12px rgba(0, 0, 0, 0.1);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	text-decoration: none;
	color: #fff !important;
}

.btn-hero-cta-secondary::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s;
}

.btn-hero-cta-secondary:hover::before {
	left: 100%;
}

.btn-hero-cta-secondary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 
	            0 6px 16px rgba(0, 0, 0, 0.2);
	background: rgba(255, 255, 255, 0.25);
	border-color: rgba(255, 255, 255, 0.5);
	color: #fff !important;
}

.btn-hero-cta-secondary:active {
	transform: translateY(0);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 
	            0 3px 10px rgba(0, 0, 0, 0.15);
}

.btn-hero-cta-secondary i {
	font-size: 1.3rem;
	transition: transform 0.3s ease;
}

.btn-hero-cta-secondary:hover i {
	transform: scale(1.1);
}

.btn-hero-cta-secondary:focus {
	outline: none;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 
	            0 4px 12px rgba(0, 0, 0, 0.1),
	            0 0 0 4px rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
	.btn-hero-cta-secondary {
		padding: 0.95rem 2rem;
		font-size: 1.05rem;
	}
}

/* Vote Button Styling */
.btn-vote,
.btn-vote-dislike {
	color: #adb5bd;
	overflow: visible !important;
}
.btn-vote i,
.btn-vote-dislike i {
	color: #adb5bd;
}

/* Like button active/hover states */
.btn-vote.liked,
.btn-vote.liked i {
	color: #dc3545;
}
.btn-vote:hover,
.btn-vote:hover i {
	color: #dc3545;
}

/* Dislike button active/hover states */
.btn-vote-dislike.disliked,
.btn-vote-dislike.disliked i {
	color: #863efa;
}
.btn-vote-dislike:hover,
.btn-vote-dislike:hover i {
	color: #863efa;
}

/* Ensure parent containers don't clip the outline */
.d-flex.align-items-center.justify-content-center.gap-1 {
	overflow: visible !important;
}

/* Ensure card hstack doesn't clip vote buttons */
.card.hstack {
	overflow: visible !important;
}

.vstack {
	overflow: visible !important;
}

/* Prevent fixed width containers from clipping */
.w-90px,
.w-50px,
.w-sm-80px {
	overflow: visible !important;
}


/* Category icon styling in sidebar */
.nav-link-sidebar .nav-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

.nav-link-sidebar .nav-icon i {
	font-size: 1.1rem;
	color: inherit;
}

.nav-link-sidebar .nav-link.active .nav-icon i {
	color: white;
}

/* Hero Section with Background Images */
.hero-section-with-video {
	min-height: 500px;
	display: flex;
	align-items: center;
}

.hero-bg-wrapper {
	top: 0;
	left: 0;
	z-index: 0;
}

.hero-bg-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: 0;
}

.hero-bg-overlay {
	background: linear-gradient(135deg, rgba(134, 62, 250, 0.05) 0%, rgba(255, 255, 255, 0.8) 100%);
	z-index: 1;
}

/* Modern Feature Tags */
.hero-features {
	margin-top: 2rem;
}

.feature-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 1.25rem;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	border-radius: 50px;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--bs-heading-color);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	border: 1px solid rgba(134, 62, 250, 0.1);
}

.feature-tag:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(134, 62, 250, 0.15);
	background: rgba(255, 255, 255, 1);
}

.feature-icon {
	width: 20px;
	height: 20px;
	object-fit: contain;
}

/* Modern Hero Buttons */
.hero-actions {
	margin-top: 2.5rem;
}

.btn-hero-primary,
.btn-hero-youtube {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 2rem;
	font-size: 1.1rem;
	font-weight: 600;
	border-radius: 50px;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	border: none;
	cursor: pointer;
}

.btn-hero-primary {
	background: linear-gradient(135deg, #863efa 0%, #6c2fd4 100%);
	color: white;
	box-shadow: 0 8px 24px rgba(134, 62, 250, 0.3);
}

.btn-hero-primary:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 32px rgba(134, 62, 250, 0.4);
	color: white;
}

.btn-hero-primary::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

.btn-hero-primary:hover::before {
	width: 300px;
	height: 300px;
}

.btn-hero-youtube {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	color: #ff0000;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	border: 2px solid rgba(255, 0, 0, 0.2);
}

.btn-hero-youtube:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 32px rgba(255, 0, 0, 0.2);
	background: rgba(255, 255, 255, 1);
	color: #ff0000;
	border-color: rgba(255, 0, 0, 0.3);
}

.btn-hero-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	font-size: 1.2rem;
	position: relative;
	z-index: 1;
}

.btn-hero-text {
	position: relative;
	z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.hero-section-with-video {
		min-height: 400px;
	}

	.feature-tag {
		padding: 0.5rem 1rem;
		font-size: 0.85rem;
	}

	.btn-hero-primary,
	.btn-hero-youtube {
		padding: 0.875rem 1.5rem;
		font-size: 1rem;
	}
}

/* Dark mode support */
[data-bs-theme="dark"] .hero-bg-overlay {
	background: linear-gradient(135deg, rgba(134, 62, 250, 0.15) 0%, rgba(0, 0, 0, 0.7) 100%);
}

[data-bs-theme="dark"] .feature-tag {
	background: rgba(30, 30, 30, 0.95);
	border-color: rgba(134, 62, 250, 0.2);
	color: var(--bs-body-color);
}

[data-bs-theme="dark"] .btn-hero-youtube {
	background: rgba(30, 30, 30, 0.95);
	color: #ff4444;
	border-color: rgba(255, 0, 0, 0.3);
}

/* Feed page header icon centering */
.card-body .avatar.avatar-lg {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0;
}

.card-body .avatar.avatar-lg i {
	display: inline-block;
	line-height: 1;
	margin: 0;
	padding: 0;
	font-size: inherit;
}

/* Category clipart styling */
.category-clipart-icon {
	width: 22px;
	height: 22px;
	object-fit: contain;
	flex-shrink: 0;
}

.category-clipart-header {
	width: 60%;
	height: 60%;
	object-fit: contain;
}

/* Remove dots from comment items/replies on answer details page */
ul.comment-wrap li.comment-item,
ul.comment-wrap .comment-item,
.comment-wrap li.comment-item,
.comment-wrap .comment-item,
ul.list-unstyled.comment-wrap li.comment-item,
ul.list-unstyled.comment-wrap .comment-item {
	list-style: none !important;
	list-style-type: none !important;
	padding-left: 0 !important;
}

ul.comment-wrap li.comment-item::before,
ul.comment-wrap li.comment-item::after,
ul.comment-wrap .comment-item::before,
ul.comment-wrap .comment-item::after,
.comment-wrap li.comment-item::before,
.comment-wrap li.comment-item::after,
.comment-wrap .comment-item::before,
.comment-wrap .comment-item::after {
	content: none !important;
	display: none !important;
}

ul.comment-wrap li.comment-item::marker,
ul.comment-wrap .comment-item::marker,
.comment-wrap li.comment-item::marker,
.comment-wrap .comment-item::marker {
	display: none !important;
	content: none !important;
}

/* Target all nested lists within comment-wrap */
ul.comment-wrap ul,
ul.comment-wrap ul ul,
.comment-wrap ul,
.comment-wrap ul ul,
.comment-wrap ul ul ul {
	list-style: none !important;
	list-style-type: none !important;
}

ul.comment-wrap ul li,
ul.comment-wrap ul ul li,
.comment-wrap ul li,
.comment-wrap ul ul li,
.comment-wrap ul ul ul li {
	list-style: none !important;
	list-style-type: none !important;
}

ul.comment-wrap ul li::marker,
ul.comment-wrap ul ul li::marker,
.comment-wrap ul li::marker,
.comment-wrap ul ul li::marker,
.comment-wrap ul ul ul li::marker {
	display: none !important;
	content: none !important;
}

/* Saved Question Bookmark - Blue/Purple Color */
.save-question-btn.saved,
.save-question-btn.saved i,
.save-question-btn.saved:hover,
.save-question-btn.saved:hover i {
	color: #6f42c1 !important;
}

/* ============================================
   Poll Options - YouTube Style
   ============================================ */


/* ============================================
   User Search Styles
   ============================================ */

#userSearchContainer {
	position: relative;
}

#userSearchForm {
	position: relative;
}

#userSearchInput {
	background-color: var(--bs-tertiary-bg);
	border: 1px solid var(--bs-border-color);
	font-size: 0.875rem;
	width: 100%;
	padding: 0.5rem 2.5rem 0.5rem 1rem;
}

#userSearchInput:focus {
	background-color: var(--bs-body-bg);
	border-color: var(--bs-primary);
	box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.15);
	outline: none;
}

#userSearchInput::placeholder {
	color: var(--bs-secondary-color);
	font-size: 0.8125rem;
}

#questionSearchResults {
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 0;
	z-index: 1050;
	width: 100%;
	max-width: 400px;
	max-height: 400px;
	overflow-y: auto;
	border-radius: 0.5rem;
	border: 1px solid var(--bs-border-color);
	background: var(--bs-body-bg);
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#questionSearchResults .list-group-item {
	border-left: 0;
	border-right: 0;
	transition: background-color 0.15s ease;
	cursor: pointer;
}

#questionSearchResults .list-group-item:hover {
	background-color: var(--bs-tertiary-bg);
}

#questionSearchResults .list-group-item:first-child {
	border-top: 0;
}

#questionSearchLoading,
#questionSearchNoResults {
	display: none;
}

/* ============================================
   Notification Styles
   ============================================ */

.delete-notification-btn {
	opacity: 0;
	font-size: 0.5rem !important;
	width: 0.75rem;
	height: 0.75rem;
	padding: 0;
	background-size: 0.5rem;
	transition: opacity 0.3s ease, transform 0.2s ease;
	top: 0.5rem !important;
	right: 0.5rem !important;
}

.delete-notification-btn:hover {
	opacity: 0.9 !important;
	transform: scale(1.15);
}

.list-group-item:hover .delete-notification-btn,
.list-group-item-action:hover .delete-notification-btn {
	opacity: 0.5;
}

.delete-notification-btn:focus {
	opacity: 1 !important;
	box-shadow: none;
}

.list-group-item.position-relative {
	padding-right: 2rem !important;
}

.mark-all-read-btn {
	font-size: 0.75rem;
	text-decoration: none;
}

.notification-card-body {
	max-height: 400px;
	overflow-y: auto;
}

/* ============================================
   Dark Mode Fixes
   ============================================ */

/* Fix searchbar text visibility in dark mode */
[data-bs-theme="dark"] .bg-white.form-control,
[data-bs-theme="dark"] .bg-white.input-group,
[data-bs-theme="dark"] .input-group.bg-white {
	background-color: var(--bs-mode) !important;
}

[data-bs-theme="dark"] .bg-white.form-control {
	color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .bg-white.form-control::placeholder {
	color: var(--bs-gray-500) !important;
}

/* Fix disabled email field text visibility in dark mode */
[data-bs-theme="dark"] .form-control:disabled,
[data-bs-theme="dark"] .form-control[readonly] {
	background-color: var(--bs-gray-200) !important;
	color: var(--bs-body-color) !important;
	opacity: 1 !important;
}

/* Avatar placeholder icon sizing for avatar-xl */
.avatar-xl .avatar-img i.bi-person-fill {
	font-size: 2.5rem !important;
}