/* Popup içindeki hiçbir metin seçilemesin */
#popups_container {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE10+/Edge */
    user-select: none;         /* Standart */
}

/* ÖNEMLİ: İletişim formundaki alanlara yazı yazılabilmesi için onları serbest bırakıyoruz */
#popups_container input,
#popups_container textarea,
#popups_container select {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}


/**************** sadece ilk açılışta kullanılan perde layerı *****************/

#curtain{
	position: fixed;
	top: 0;
	left: 0;
	height: 100% !important;
    width: 100% !important;
    background-color: var(--loading-screen-bg-color) !important;
    z-index: 99999;
	
}

/************** playcanvas loading screen **********************/

#scene-loading-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    width: 100% !important;
    background-color: var(--loading-screen-bg-color) !important;
    z-index: var(--z-loading-screen);
    pointer-events: none;

    /* --- GİDİŞ (KAPANMA) AYARI --- */
    /* Eleman her zaman blok kalsın ki opacity animasyonu çalışabilsin */
    display: block !important; 
    opacity: 0;
    visibility: hidden;
    /* Sınıf silindiğinde (kapanırken) bu geçiş çalışır */
    transition: opacity 1.5s ease-in-out, visibility 1.5s !important; 
}

#scene-loading-wrapper.is-loading {
    /* --- GELİŞ (AÇILMA) AYARI --- */
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all;
    
    /* Sınıf eklendiğinde (açılırken) transition'ı öldürür, ÇAAT diye getirir */
    transition: none !important; 
}

#scene-loading-splash {
    position: absolute !important; 
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    max-width: 540px !important;
    aspect-ratio: 600 / 125;
    display: flex;
    align-items: flex-end;
    margin-top: -44px !important; 
}

#scene-loading-progress-bar-container {
    width: 100% !important;
    height: 2vw !important;
    max-height: 10px !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    overflow: hidden;
    position: relative;
}

#scene-loading-progress-bar {
    height: 100%;
    background: linear-gradient(
        to right, 
        var(--blue) 0% 60%, 
        var(--light-blue) 60% 80%, 
        var(--green) 80% 100%
    );
    
    background-attachment: scroll !important;
    background-repeat: no-repeat !important;
    background-size: min(90vw, 540px) 100% !important; 
    background-position: left center !important;
}

/*************** Welcome screen ********************/

#wellcome_screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: var(--z-max);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
	min-height: var(--min-height);
	background-color: var(--popup-overlay-color);
}


#wellcome_screen .delta_logo{
	position: absolute;
	top: 25px;
	left: 25px;
}

#wellcome_screen #welcome_content > div{
	text-align: center;	
}

#wellcome_screen .line1{
	font-size: var(--fs-lg);
	color: var(--white);
	margin-bottom: 5px;
}

#wellcome_screen .line2 img{
	margin: auto;
	width: 90%;
	min-width: 300px;
	max-width: 600px;
}

#wellcome_screen .line3{
	font-size: var(--fs-lg);
	color: var(--white);
	margin-top: 70px;
}

#wellcome_screen .line3 a {
    font-size: 24px;
    padding: 18px 40px;
	border: 1px solid transparent;
}

#wellcome_screen .line3 a:hover{
	background-color: var(--blue);
}


/***************** contact form ******************/

#contact_form{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: var(--z-max);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: var(--min-height);
	/*background-color: var(--popup-overlay-color);*/
	display: none;
}

#contact_form #form{
	background-color: var(--white);
    width: 90%;
    max-width: 550px;
    border-radius: var(--radius-sm);
    padding: 30px;
	display: flex;
    flex-direction: column;
	position: relative;
	color: var(--dark-blue);
}

#contact_form #form form {
    display: flex;
    flex-direction: column;
}

#contact_form #form form input[type=text],
#contact_form #form form input[type=email]{
	border: 1px solid var(--blue);
}

#contact_form #form form textarea{
	border: 1px solid var(--blue);
	height: 100px;
	min-width: 100%;
	max-width: 100%;
}

#contact_form #form form button{
	padding-top: 20px;
	padding-bottom: 20px;
}



#contact_form #form form > *{
	margin-top: 20px;
	width: 100%;
	padding: var(--form-fields-padding);
}

#contact_form #form .close{
	position: absolute;
	top: 10px;
	right: 10px;
}

#contact_form #form .close span{
	display: none;
}

#contact_form #form .title{
	font-size: var(--fs-xl);
	color: var(--blue);
	margin-top: 35px;
	line-height: 1;
}

#contact_form #form .desc{
	margin-top: 20px;
}

#contact_form #form .consent{
	font-size: var(--fs-sm);
	padding: 0 !important;
	display: flex;
	gap: 10px;
}

#contact_form #form .consent input[type=checkbox]{
    appearance: auto;
    -webkit-appearance: auto;
    align-self: flex-start;
    margin-top: 3px;
    border: 1px solid var(--smoke);
}


#contact_form #form input[name=additional_info]{
	display: none;
}


@media only screen and (max-width: 700px) {

	#contact_form #form {
		padding: 20px;
	}
	
	#contact_form #form .desc {
    margin-top: 10px;
}
	
	#contact_form #form form > * {
		margin-top: 10px;
	}
	
}


/**************** content popup *******************/

div#content_popup {
    width: 100%;
    right: 0;
    left: auto;
    max-width: 600px;
}

/* --- Wrapper (Arka Plan ve Konteynır) --- */
.popup-wrapper { 
    display: flex;
    position: fixed; 
    z-index: var(--z-content); 
    top: 0; left: 0; width: 100%; height: 100%; 
    justify-content: flex-end; 
    /*pointer-events: none; */
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear var(--speed-fast), opacity var(--speed-fast) var(--ease-premium); 
}

.popup-wrapper.active { 
    visibility: visible;
    opacity: 1;
    /*pointer-events: auto; */
    transition: visibility 0s linear 0s, opacity var(--speed-fast) var(--ease-premium); 
}

#content_popup .popup-box { 
    position: relative;
    background: var(--white); 
    color: var(--dark-gray);
    width: 100%;
    padding: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transform: translateX(100%);
    transition: transform var(--speed-fast) var(--ease-premium);
    max-width: 600px;
	margin: 20px 20px 30px 20px;
    border-radius: var(--radius-sm);
}

#content_popup.active .popup-box {
    transform: translateX(0);
}

.popup-overlay { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    /*background: var(--popup-overlay-color); */
    z-index: -1;
}


/************ info ***********/

#info_popup {
	
	bottom: 20px;
    right: 20px;
    position: absolute;
    width: auto;
    top: auto;
    left: auto;
    min-width: 400px;
    height: auto;
	
}
#info_popup.active { animation: fadeIn 0.5s ease; }
#info_popup .popup-box { 
	background: white;
    padding: 10px 20px;
    border-radius: 8px;
    border: 0;
    align-self: flex-end;
    position: absolute;
    right: 15px;
    bottom: 15px;
    font-weight: 600;
}

@media (orientation: portrait) {
 
	#info_popup {
		bottom: 20px;
		right: 0;
		width: 95%;
		min-width: auto;
	}
	
}


/****** product popup ***********/

.media-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.media-wrapper img{
	width: 100%;
}

/* 16:9 Oranını Koru */
.youtube-box { padding-bottom: 56.25%; height: 0; }
.youtube-box iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Sketchfab için genelde 400-500px yükseklik idealdir */
.sketchfab-box iframe { width: 100%; height: 450px; display: block; }

#content_popup .popup-box .close-btn{
	position: absolute;
	right: 10px;
	top: 10px;
}

#content_popup .popup-html-body.html-body {
    height: 100%;
}

.product-content {
    line-height: 1;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-content .product_name {
    font-size: var(--fs-xl);
    color: var(--blue);
    margin-bottom: 10px;
    flex-shrink: 0;
	line-height: 1.2;
}

.product-content .product_category {
    font-size: var(--fs-lg);
    margin-bottom: 20px;
    flex-shrink: 0;
	line-height: 1.2;
}

.product-content .product_links {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-shrink: 0;
	flex-wrap: wrap;
}

.product-content .product_links i{
	width: 15px;
	height: 15px;
}

.product-content .product_headline,
.product-content .related-products .section-title{
	font-size: var(--fs-lg);	
	color: var(--blue);
	margin-bottom: 15px;
	margin-top: 30px;
	line-height: 1.2;
}

.product-content .product_description {
    line-height: 1.6;
    margin-bottom: 30px;
	white-space: pre-line;
}


.product-main-content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 10px; 
    margin-right: -10px; 
}

.product-main-content::-webkit-scrollbar {
    width: 6px;
}
.product-main-content::-webkit-scrollbar-track {
    background: transparent;
}
.product-main-content::-webkit-scrollbar-thumb {
    background-color: var(--smoke);
    border-radius: 10px;
}



/* 2 Kolonlu Izgara Yapısı */

.related-products {
    margin-top: 50px;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 eşit kolon */
    gap: 20px; /* Kartlar arası boşluk */
    width: 100%;
}

/* Kart Yapısı */
.related-item.hotspot-item {
    /* Global absolute değerlerini kesin olarak eziyoruz */
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    
    display: flex;
    flex-direction: column; /* İçerikleri (resim ve yazı) dikey diz */
    overflow: hidden;
    cursor: pointer;
    box-shadow: none !important;
}


/* Görsel Alanı (Üstte) */
.related-img {
    width: 100%;
    aspect-ratio: 16 / 9; /* Modern geniş ekran formatı */
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
	border-radius: var(--radius-sm);
	border: 1px solid #eee;
}

/* Yazı Alanı (Görselin Altında) */
.related-info {
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
}

.rel-name {
	font-size: var(--fs-md);
	color: var(--dark-blue);
	font-weight: 600;
	margin: 5px 0;
	line-height: 1.2;
}

.rel-cat {
	color: var(--blue);
	line-height: 1.3;
}



/*************** Downloads ********************/

/* Downloads Section Temel Ayarları */
.downloads-section {
    margin-top: 40px;
    padding-bottom: 20px;
}

.downloads-title {
	font-size: var(--fs-lg);
	color: var(--blue);
	margin-bottom: 15px;
	margin-top: 30px;
	line-height: 1.3;
}

.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Kart Tasarımı ve Dikey Ortalama (Flexbox) */
.download-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border: var(--border-st);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-card:hover {
    border-color: var(--blue);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Dosya İsmi */
.download-filename {
    color: var(--dark-gray);
    font-size: var(--fs-md);
    font-weight: 400;
    margin: 0;
    line-height: 1.2;
}


.icon-cart-download {
    width: 30px !important;
    height: 30px !important;
    background-image: url(../images/cart-download.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-color: transparent !important;
	 flex-shrink: 0; /* Uzun dosya isimlerinde ikonun ezilmesini (küçülmesini) engeller */
    margin-left: 15px; /* Metin ile ikon arasında minimum boşluk garantisi */
}






