/* Anasayfa Arama Alani - Frontend | Tech Review - Erdal Kurt */

.tr-aaa-widget *, .tr-aaa-widget *::before, .tr-aaa-widget *::after {
    box-sizing: border-box;
}

.tr-aaa-widget {
    width: 100%;
    padding: 48px 0 40px;
    font-family: inherit;
}

/* Title */
.tr-aaa-title {
    font-size: 36px !important;
    font-weight: 700 !important;
    color: #D51212 !important;
    line-height: 1.2 !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
	text-align:center;
}

/* Subtitle */
.tr-aaa-subtitle {
    font-size: 32px !important;
    font-weight: 600 !important;
    color: #323232 !important;
    line-height: 1.25 !important;
    margin: 0 0 44px !important;
    padding: 0 !important;
	text-align:center;
}

/* Search wrap */
.tr-aaa-search-wrap {
    width: 100%;
    margin-bottom: 18px;
}

/* Form */
.tr-aaa-form {
    display: flex;
    align-items: stretch;
    position: relative;
	border-radius:100px;
	
		
}

/* Input wrap */
.tr-aaa-input-wrap {
    flex: 1;
    overflow: visible;
    min-width: 0;
}

/* Input */
input[type=text].tr-aaa-input {
    display: block;
    width: 100%;
    height: 76px;
    padding: 0 20px 0 30px;
    font-size: 16px;
    font-weight: 700;
    color: #323232;
    background: #fff;
    border: none;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
    border: 3px solid #E5E5E5;
    border-right: 0;
    border-radius: 100px 0 0 100px;
}

input[type=text].tr-aaa-input:focus {
    outline: none;
    box-shadow: none;
	border-color: #D51212;
}

.tr-aaa-input::placeholder         { color: transparent;}
.tr-aaa-input::-webkit-input-placeholder { color: transparent; }
.tr-aaa-input::-moz-placeholder    { color: transparent; }
.tr-aaa-input:-ms-input-placeholder { color: transparent; }

/* Custom placeholder */
.tr-aaa-ph {
    position: absolute;
    top: 50%;
    left: 32px;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.15s;
}
.tr-aaa-ph.hidden { opacity: 0; }
.tr-ph-b { font-weight: 700; color: #949494; }
.tr-ph-r { font-weight: 400; color: #949494; }

/* Button */
.tr-aaa-btn {
    flex-shrink: 0;
    width: 150px;
    height: 76px;
    background: #D51212;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    -webkit-appearance: none;
    appearance: none;
    letter-spacing: 0.5px;
    padding: 0;
    border-radius: 0 100px 100px 0;
}
.tr-aaa-btn:hover  { background: #b50f0f; }
.tr-aaa-btn:active { background: #9a0c0c; }
.tr-aaa-btn:focus  { outline: none; }

/* Results dropdown */
.tr-aaa-results {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: -3px;
    right: 0;
    background: #fff;
    border: 3px solid #E5E5E5;
    border-top: none;
    z-index: 99999;
    max-height: 420px;
    overflow-y: auto;
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}
.tr-aaa-results.open { display: block; }

.tr-res-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    text-decoration: none;
    border-bottom: 1px solid #F0F0F0;
    transition: background 0.12s;
    cursor: pointer;
}
.tr-res-item:last-child { border-bottom: none; }
.tr-res-item:hover, .tr-res-item.active {
    background: #fdf5f5;
    text-decoration: none;
}
.tr-res-item:hover .tr-res-title,
.tr-res-item.active .tr-res-title {
    color: #D51212 !important;
}

.tr-res-img {
    flex-shrink: 0;
    width: 60px;
    height: 48px;
    object-fit: cover;
    border-radius: 3px;
    background: #f0f0f0;
    display: block;
}
.tr-res-noimg {
    flex-shrink: 0;
    width: 60px;
    height: 48px;
    background: #f0f0f0;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ccc;
}

.tr-res-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #414141 !important;
    line-height: 1.4 !important;
    transition: color 0.12s;
    flex: 1;
    margin: 0 !important;
    padding: 0 !important;
}

.tr-res-msg {
    padding: 18px;
    text-align: center;
    color: #949494;
    font-size: 14px;
}

/* Quick links */
.tr-aaa-links {
    display: flex;
    flex-wrap: wrap;
	justify-content: center;
    gap: 2px 0;
    margin-top: 32px;

}
.tr-aaa-link {
    font-size: 18px;
    font-weight: 600;
    color: #949494;
    text-decoration: none;
    line-height: 1.7;
    transition: color 0.15s;
}
.tr-aaa-link:not(:last-child)::after {
    content: ',';
    margin-right: 8px;
    color: #949494;
}
.tr-aaa-link:hover { color: #D51212; text-decoration: none; }

/* Responsive */
@media (max-width: 768px) {
    .tr-aaa-widget  { padding: 28px 0 24px; }
    .tr-aaa-title   { font-size: 24px !important; }
    .tr-aaa-subtitle{ font-size: 20px !important; margin-bottom: 20px !important; }
    .tr-aaa-input   { height: 58px; font-size: 14px; }
    .tr-aaa-btn     { width: 84px; height: 58px; font-size: 15px; }
    .tr-aaa-ph      { font-size: 13px; }
    .tr-ph-b, .tr-ph-r { font-size: 13px; }
    .tr-aaa-link    { font-size: 15px; }
}
@media (max-width: 480px) {
    .tr-aaa-title    { font-size: 20px !important; }
    .tr-aaa-subtitle { font-size: 17px !important; }
    .tr-aaa-btn      { width: 68px; font-size: 13px; }
    .tr-aaa-link     { font-size: 13px; }
	input[type=text].tr-aaa-input {height: 58px;}
	.tr-res-title {font-size: 13px !important;}
	.tr-aaa-widget {padding: 0 0 24px;}
}



@media (max-width: 375px) {
   tr-aaa-title    { font-size: 20px !important; }
    .tr-aaa-subtitle { font-size: 17px !important; }
    .tr-aaa-btn      { width: 68px; font-size: 13px; }
    .tr-aaa-link     { font-size: 13px; }
	input[type=text].tr-aaa-input {height: 58px;}
	.tr-res-title {font-size: 13px !important;}
	.tr-aaa-widget {padding: 0 0 24px;}
}

@media (max-width: 360px) {
   tr-aaa-title    { font-size: 20px !important; }
    .tr-aaa-subtitle { font-size: 17px !important; }
    .tr-aaa-btn      { width: 68px; font-size: 13px; }
    .tr-aaa-link     { font-size: 13px; }
	input[type=text].tr-aaa-input {height: 58px;}
	.tr-res-title {font-size: 13px !important;}
	.tr-aaa-widget {padding: 0 0 24px;}
}

@media (max-width: 360px) {
     .tr-aaa-widget  { padding: 28px 0 24px; }
    .tr-aaa-title   { font-size: 24px !important; }
    .tr-aaa-subtitle{ font-size: 20px !important; margin-bottom: 20px !important; }
    .tr-aaa-input   { height: 58px; font-size: 14px; }
    .tr-aaa-btn     { width: 84px; height: 58px; font-size: 15px; }
    .tr-aaa-ph      { font-size: 13px; }
    .tr-ph-b, .tr-ph-r { font-size: 13px; }
    .tr-aaa-link    { font-size: 15px; }
}
