/* ----------------------------------------------------------------------
   Kurum teması (subdomain_settings.is_custom_theme = 1)
   _Layout.cshtml bu dosyayı yalnızca temalı subdomainlerde yükler ve
   :root üzerinde --brand / --brand-600 / --inst-hero-web / --inst-hero-mobil
   değişkenlerini kurumun DB kaydından inline olarak set eder.
   Normal hiperkitap build'i bu dosyayı hiç yüklemez.
---------------------------------------------------------------------- */

/* hk-home-style.css içinde --brand değişkenine bağlanmamış sabit kırmızılar */
body.inst-theme #hk-app .buton.primary:hover {
	background: var(--brand-600, var(--brand));
	border-color: var(--brand-600, var(--brand));
}

body.inst-theme #hk-app .buton:hover {
	background: #f5f5f5;
}

/* Ana sayfa açılış (intro): beyaz zemin + kurum fotoğrafı, sadece arama.
   Cihaz bazlı görseller: web (masaüstü) / tablet / mobil */
body.inst-theme #hk-app .intro {
	background: #fff var(--inst-hero-web, none) top center / cover no-repeat;
}

@media (max-width: 1024px) {
	body.inst-theme #hk-app .intro {
		background-image: var(--inst-hero-tablet, var(--inst-hero-web, none));
	}
}

@media (max-width: 768px) {
	body.inst-theme #hk-app .intro {
		background-image: var(--inst-hero-mobil, var(--inst-hero-tablet, var(--inst-hero-web, none)));
	}
}

/* Kurum görseli kendi markasını içerdiği için intro'da logo/slogan gizlenir;
   sadece arama kutusu kalır */
body.inst-theme #hk-app .intro h3.slogan,
body.inst-theme #hk-app .intro .company-card,
body.inst-theme #hk-app .intro a.intro-logo {
	display: none;
}

/* Fotoğraf üzerinde okunabilirlik için arama kutusu ve logoya hafif zemin */
body.inst-theme #hk-app .intro .search {
	background: rgba(255, 255, 255, 0.95);
	border-radius: var(--radius, 14px);
	box-shadow: var(--shadow, 0 6px 16px rgba(0, 0, 0, 0.15));
}

body.inst-theme #hk-app .intro .intro-actions {
	color: var(--brand);
}

body.inst-theme #hk-app .intro .intro-actions .btn-kesfet {
	border-color: var(--brand);
	color: var(--brand);
}

body.inst-theme #hk-app .intro .intro-actions:hover .btn-kesfet {
	background-color: rgba(255, 255, 255, 0.7);
}

/* Kurum ana sayfa panelleri (corporate_mainpage) */
body.inst-theme #hk-app .corporate-panel .section-head h2 {
	color: var(--brand);
}

/* Kurum sayfalarında sade footer (logo/çözümler/abone kurumlar yok) */
body.inst-theme .corp-footer {
	padding: 24px 16px;
	background: #fff;
	border-top: 1px solid var(--line, #e8e8e8);
	text-align: center;
	font-size: 14px;
	color: var(--muted, #666);
}

body.inst-theme .corp-footer .copyright {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px;
}

body.inst-theme .corp-footer .corp-footer-links a {
	color: var(--brand);
	text-decoration: none;
}

body.inst-theme .corp-footer .corp-footer-links a:hover {
	text-decoration: underline;
}

/* ==================================================================
   ASAGISI OTOMATIK URETILDI: style.css icindeki #d54e4e kirmizi paleti
   (kitap detay, login, profil, listeleme vb. eski tasarim sayfalari)
   kurum temasinda var(--brand) / var(--brand-600) ile ezilir.
   ================================================================== */
body.inst-theme .color-red { color: var(--brand); }
body.inst-theme .title--colored span.color-red { color: var(--brand); }
body.inst-theme .title--red { color: var(--brand); }
body.inst-theme .swiper-red-nav__btn:not(.swiper-button-disabled):hover, body.inst-theme .swiper-red-nav__btn:not(.swiper-button-disabled):focus { color: var(--brand); }
body.inst-theme .input-outer--w-btn .input-outer__add-btn:hover { color: var(--brand-600) !important; }
body.inst-theme .input-icon__right.active { color: var(--brand); }
body.inst-theme .switch__input:checked + span { background-color: var(--brand); }
body.inst-theme .tick-checkbox--radio .tick-checkbox__input:checked + span::after { background: var(--brand); }
body.inst-theme .tick-checkbox__input:checked + span { background-color: var(--brand); border-color: var(--brand); }
body.inst-theme .tick-checkbox__input:checked ~ .tick-checkbox__icon { color: var(--brand); }
body.inst-theme .btn--red { background-color: var(--brand); }
body.inst-theme .btn--red:hover { background-color: var(--brand-600); }
body.inst-theme .btn--white { color: var(--brand); }
body.inst-theme .btn--white:hover { background-color: var(--brand); }
body.inst-theme .btn--link.btn--red { color: var(--brand); }
body.inst-theme .btn--link.btn--red:hover { background: var(--brand); }
body.inst-theme .btn--outline-red { border: 1px solid var(--brand); color: var(--brand); }
body.inst-theme .btn--outline-red:hover { background-color: var(--brand); }
body.inst-theme .btn-group { background: var(--brand); }
body.inst-theme .btn-group__bg { background: var(--brand); }
body.inst-theme .modal--share .input-icon__right:hover { color: var(--brand); }
body.inst-theme .modal--add-library .add-library-options-item-wrapper input:checked + .add-library-options-item { border-color: var(--brand); }
body.inst-theme .modal--add-library
	.add-library-options-item-wrapper
	input:checked
	+ .add-library-options-item
	.add-library-options-item__icon { color: var(--brand); }
body.inst-theme .modal--select-corporation .select-corporation-form__text a:hover { color: var(--brand); }
body.inst-theme .modal-text--note::before { background: var(--brand); }
body.inst-theme .js-public-state.public { color: var(--brand); }
body.inst-theme .book-item--big:hover .book-item__title { color: var(--brand); }
body.inst-theme .book-item--horizontal .book-detail-info__title:hover { color: var(--brand); }
body.inst-theme .social__item:hover { color: var(--brand) !important; }
body.inst-theme .category-item--edebiyat { color: var(--brand); }
body.inst-theme .category-item--edebiyat:hover { background-color: var(--brand) !important; -webkit-box-shadow: 0 10px 20px -10px var(--brand); box-shadow: 0 10px 20px -10px var(--brand); }
body.inst-theme .category-item--fizik { color: var(--brand); }
body.inst-theme .category-item--fizik:hover { background-color: var(--brand) !important; -webkit-box-shadow: 0 10px 20px -10px var(--brand); box-shadow: 0 10px 20px -10px var(--brand); }
body.inst-theme .category-item--isletme { color: var(--brand); }
body.inst-theme .category-item--isletme:hover { background-color: var(--brand) !important; -webkit-box-shadow: 0 10px 20px -10px var(--brand); box-shadow: 0 10px 20px -10px var(--brand); }
body.inst-theme .category-item--sanat { color: var(--brand); }
body.inst-theme .category-item--sanat:hover { background-color: var(--brand) !important; -webkit-box-shadow: 0 10px 20px -10px var(--brand); box-shadow: 0 10px 20px -10px var(--brand); }
body.inst-theme .banner-author { background-color: var(--brand); }
body.inst-theme .pagination-page__item.active { background-color: var(--brand); }
body.inst-theme .blog-item__link::before { background: var(--brand); }
body.inst-theme .news-item:hover .news-item__title { color: var(--brand); }
body.inst-theme .news-item:hover .news-item__link { color: var(--brand); }
@media (min-width: 481px) {
	body.inst-theme .book-pages-item:hover .book-pages-item-btn { background: var(--brand); }
}
body.inst-theme .listing-sidebar-filters__title.active svg { color: var(--brand); }
body.inst-theme .animated-tabs-line { background: var(--brand); }
body.inst-theme .comment-item-content__reply { color: var(--brand); }
body.inst-theme .comment-item-content__reply:hover { color: var(--brand); }
body.inst-theme .action-item--list .action-item-list__name:hover { color: var(--brand); }
body.inst-theme .action-item--rosette .action-item-rosette:hover .action-item-rosette-btn { background: var(--brand); }
body.inst-theme .action-item--rosette .action-item-rosette-btn { color: var(--brand); }
body.inst-theme .action-item--rosette .action-item-rosette-btn:hover { background: var(--brand); }
body.inst-theme .action-item-profile-title a:hover { color: var(--brand); }
body.inst-theme .action-item-footer-btn--like.active .action-item-footer-btn-icon { color: var(--brand); }
body.inst-theme .action-item-footer-btn--like:not(.active):hover .action-item-footer-btn-icon { color: var(--brand); }
body.inst-theme .action-item-footer-btn--like:not(.active):hover .action-item-footer-btn__text { color: var(--brand); }
body.inst-theme .action-item-footer-btn--save.active .action-item-footer-btn-icon { color: var(--brand); }
body.inst-theme .action-item-footer-btn--save:not(.active):hover .action-item-footer-btn-icon { color: var(--brand); }
body.inst-theme .action-item-footer-btn--save:not(.active):hover .action-item-footer-btn__text { color: var(--brand); }
body.inst-theme .message-item.active .message-item__name { color: var(--brand); }
body.inst-theme .message-item-arrow { color: var(--brand); }
body.inst-theme .playlist-item__play-btn .pause-icon { color: var(--brand); }
body.inst-theme .player-volume-btn:hover { color: var(--brand) !important; }
body.inst-theme .player-bottom .playlist-item.active::after { background: var(--brand); }
body.inst-theme .player-bottom .create-list-books-item.active::after { background: var(--brand); }
body.inst-theme .player-duration-line span { background: var(--brand); }
body.inst-theme .player-thumbs-item:hover { color: var(--brand); }
body.inst-theme .faq-item.active .faq-item-header__title { color: var(--brand); }
body.inst-theme .faq-item.active .faq-item-header__icon { background: var(--brand); }
body.inst-theme .remote-access-item:hover .remote-access-item__title { color: var(--brand); }
body.inst-theme .read-target-lines-item__stick { background: -webkit-gradient(linear, left bottom, left top, from(var(--brand)), to(#ffb45d)); background: -o-linear-gradient(bottom, var(--brand), #ffb45d); background: linear-gradient(to top, var(--brand), #ffb45d); }
body.inst-theme .loadmore-btn:hover { background: var(--brand); }
body.inst-theme .more-item-content-link.active .more-item-content-link__icon, body.inst-theme .more-item-content-link:hover .more-item-content-link__icon { color: var(--brand); }
body.inst-theme .create-list-books-item__delete:hover { color: var(--brand); }
body.inst-theme .cookie-alert__text a { color: var(--brand); }
body.inst-theme .share-content-title__text a { color: var(--brand); }
body.inst-theme .share-content-title__text a:hover { color: var(--brand-600); }
@media (max-width: 992px) {
	body.inst-theme .header-menu a:focus, body.inst-theme .header-menu a:hover { color: var(--brand); }
}
body.inst-theme .header-menu a::after { background-color: var(--brand); }
body.inst-theme .header-mobile-login { color: var(--brand); }
body.inst-theme .header-mobile-menu-open.active span { background: var(--brand); }
body.inst-theme .header-mobile-account__arrow { color: var(--brand); }
body.inst-theme .header-account-item-button .has-new { background: var(--brand); }
body.inst-theme .footer-info-content-item__text:hover { color: var(--brand); }
body.inst-theme .footer-copyright::after { background: var(--brand); }
body.inst-theme .listing-filter-wrapper .filter-item.active { color: var(--brand); }
body.inst-theme .listing-filter-wrapper .listing-filter-left .filter-item.active::after { background-color: var(--brand); }
body.inst-theme .listing-filter-mobile__title { color: var(--brand); }
body.inst-theme .listing-filter-mobile__select { color: var(--brand); }
body.inst-theme .listing-filter-item.active .icon { color: var(--brand); }
body.inst-theme .listing--category-detail .listing-filter-item:hover svg { color: var(--brand); }
body.inst-theme .listing--blog .tick-checkbox__input:checked + span { border-color: var(--brand); background-color: var(--brand); }
body.inst-theme .book-detail-info-buttons .btn:hover .btn__icon { color: var(--brand); }
body.inst-theme .book-detail-info__title { color: var(--brand); }
body.inst-theme .book-detail-info-items .book-detail-info-item::before { background-color: var(--brand); }
body.inst-theme .book-detail-info-save-btn:hover { color: var(--brand); }
body.inst-theme .book-detail-info-more-btn:hover { background: var(--brand); }
body.inst-theme .book-detail-info-text a { color: var(--brand); }
body.inst-theme .book-detail-info-text a:hover { color: var(--brand-600); }
body.inst-theme .book-detail-info-actions-btn.btn--yellow .btn__icon { color: var(--brand); }
body.inst-theme .book-detail-info-stats-item__icon { color: var(--brand); }
body.inst-theme .book-detail-tab-bar-item.active .book-detail-tab-bar-item__icon { color: var(--brand) !important; }
body.inst-theme .reviews-card-chart-item-line span { background: var(--brand); }
body.inst-theme .article--blog .article-content-text-quote__icon { color: var(--brand); }
body.inst-theme .article--blog .article-content-text-quote__icon p { color: var(--brand); }
body.inst-theme .see-comment__count { color: var(--brand); }
body.inst-theme .profile-tab-bar-item.active .profile-tab-bar-item__icon { color: var(--brand); }
body.inst-theme .profile-post-enter-types-item.active .profile-post-enter-types-item__icon { color: var(--brand); }
body.inst-theme .profile-sidebar-mobile__show-more.active .btn__icon { background: var(--brand); }
body.inst-theme .profile-box__title { color: var(--brand); }
body.inst-theme .profile-menu-mobile-open .icon { color: var(--brand); }
@media (min-width: 993px) {
	body.inst-theme .profile-menu-item.active .profile-menu-item__icon { color: var(--brand); }
}
body.inst-theme .profile-message-content-header__title a:hover { color: var(--brand); }
body.inst-theme .contact-box__title { color: var(--brand); }
body.inst-theme .contact-info-item__title { color: var(--brand); }
body.inst-theme .contact-info-item-text a:hover { color: var(--brand); }
body.inst-theme .book-detail--listen .book-detail-info-buttons .btn__icon { color: var(--brand); }
body.inst-theme .book-detail--listen .book-detail-info-buttons .btn.btn--red:hover { background-color: var(--brand-600); }
@media (max-width: 767px) {
	body.inst-theme .book-detail--listen .book-detail-info-buttons .btn:first-child { background: var(--brand); }
}
body.inst-theme .book-detail--listen .book-detail-info-buttons .btn:hover { background: var(--brand); }
body.inst-theme .discover-mobile-tabs-item.active { color: var(--brand); }
body.inst-theme .discover-box-header__title { color: var(--brand); }
@media (max-width: 992px) {
	body.inst-theme .discover-content-bar-item.active { background: var(--brand); }
}
body.inst-theme .discover-agenda-item:hover .discover-agenda-item__title { color: var(--brand); }
body.inst-theme .default-page-header__title { color: var(--brand); }
body.inst-theme .login-page-form h4 { color: var(--brand); }
body.inst-theme .login-page-form .forgot-password-checkbox a, body.inst-theme .login-page-form .user-aggrement-checkbox a { color: var(--brand); }
body.inst-theme .login .register-link a, body.inst-theme .login .login-link a { color: var(--brand); }
body.inst-theme .login .register-link a::after, body.inst-theme .login .login-link a::after { background-color: var(--brand); }
body.inst-theme .login .register-link a:hover, body.inst-theme .login .login-link a:hover { color: var(--brand-600); }
body.inst-theme .login .tick-checkbox__input:checked + span { border-color: var(--brand); background-color: var(--brand); }
body.inst-theme .login .modal-close { background: var(--brand); }
body.inst-theme .login .modal-close:hover { background: var(--brand); }
body.inst-theme .login .login-page-detail-info__title { color: var(--brand); }
body.inst-theme .login .login-page-detail-info-items .login-page-detail-info-item::before { background-color: var(--brand); }
body.inst-theme .login .login-page-detail-info-save-btn:hover { color: var(--brand); }
body.inst-theme .login .login-page-detail-info-more-btn:hover { background: var(--brand); }
body.inst-theme .login .login-page-detail-info-text p a { color: var(--brand); }
body.inst-theme .login .login-page-detail-info-text p a:hover { color: var(--brand-600); }
body.inst-theme .login .login-page-detail-info-actions-btn.btn--yellow .btn__icon { color: var(--brand); }
body.inst-theme .login .login-page-detail-info-stats-item__icon { color: var(--brand); }
body.inst-theme .login .login-page-detail-tab-bar__item.active { background: var(--brand); }
body.inst-theme .loader-spinner { border-top: 5px solid var(--brand); }
