@charset "UTF-8";
/* CSS Document */

body {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	background: #333; 
	color: #fff;
	margin: 0;
	padding: 0;
}

/* Eski tip tabloların mobilde ekrandan taşmasını önlemek için */
table {
	max-width: 100%;
	width: 100% !important;
	box-sizing: border-box;
}

td { 
	text-align: center; 
	padding: 10px;
}

a:link, a:visited, a:hover, a:active { 
	color: #00BFFF; 
	text-decoration: none;
}

/* Ana Grid Düzeni: Masaüstünde yan yana 3 tane */
.wallpaper-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px; /* Kartlar arasındaki boşluk dengelendi */
	max-width: 800px; /* İçeriğin daha dengeli durması için 800px yapıldı */
	margin: 20px auto;
	padding: 0 15px; /* Mobilde ekran kenarlarına yapışmaması için padding eklendi */
	justify-items: center;
}

/* Wallpaper Kart Yapısı */
.wallpaper-card {
	background: #000;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.3);
	overflow: hidden;
	text-align: center;
	padding: 6px;
	transition: transform 0.2s;
	width: 100%; /* Sabit 150px kaldırıldı, grid yapısına göre otomatik esneyecek */
	max-width: 220px; /* Kartların masaüstünde aşırı büyümesini engeller */
	box-sizing: border-box;
}

.wallpaper-card:hover {
	transform: translateY(-5px);
}

.wallpaper-card .img-container {
	position: relative;
	overflow: hidden;
	background: #f0f0f0;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
    margin-bottom: 6px;
	aspect-ratio: 9 / 16; /* Telefon duvar kağıdı formatı (Dikey oran) zorunlu kılındı */
}

.date-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	padding: 4px 8px;
	font-size: 10px;
	font-weight: bold;
	border-radius: 4px;
	pointer-events: none;
	letter-spacing: 0.5px;
	z-index: 10;
}

.wallpaper-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wallpaper-card h3 {
	margin: 10px 0 5px 0;
	font-size: 14px;
	color: #fff;
}

.wallpaper-card .meta-info {
	font-size: 12px;
	color: #ccc;
	margin-bottom: 8px;
}

.wallpaper-card .btn-view {
	display: inline-block;
	padding: 6px 0px;
	text-decoration: none;
	border-radius: 4px;
	font-weight: bold;
	width: 100%;
}

/* ==========================================================================
   MEDIA QUERIES (Mobil ve Tablet Uyumluluk Alanı)
   ========================================================================== */

/* Tabletler ve Küçük Ekranlar için: Yan yana 3 sütundan 2 sütuna düşür */
@media (max-width: 768px) {
	.wallpaper-grid { 
		grid-template-columns: repeat(3, 1fr); 
		gap: 15px;
	}
	.wallpaper-card {
		max-width: 100%; /* Mobilde sütunu tam kaplasın */
	}
}

/* Cep Telefonları için: Yan yana 2 sütun olarak kalması telefonlarda daha şık durur (İsteğe bağlı)
   Eğer tek sütun alt alta isterseniz repeat(2, 1fr) yerine 1fr yazabilirsiniz. */
@media (max-width: 480px) {
	.wallpaper-grid { 
		grid-template-columns: repeat(3, 1fr); 
		gap: 10px;
		padding: 0 10px;
	}
	.wallpaper-card h3 {
		font-size: 12px; /* Küçük ekranlarda yazının taşmaması için */
	}
}

/* ==========================================================================
   SEARCH BOX (Arama Kutusu Tasarımı)
   ========================================================================== */
.search-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 0 15px;
}
.search-form {
    display: flex;
    align-items: center;
    background: #222;
    border: 1px solid #444;
    border-radius: 30px;
    padding: 4px 4px 4px 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.search-form:focus-within {
    border-color: #00BFFF;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.4);
}
.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 15px;
    padding: 8px 0;
}
.search-input::placeholder {
    color: #888;
}
.search-button {
    background: #00BFFF;
    color: #000;
    border: none;
    outline: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.search-button:hover {
    background: #009ecc;
}
.search-button:active {
    transform: scale(0.96);
}
.search-results-info {
    max-width: 800px;
    margin: 15px auto 5px auto;
    padding: 0 15px;
    font-size: 14px;
    color: #ccc;
    text-align: center;
}
.search-results-info a {
    color: #00BFFF;
    text-decoration: underline;
    margin-left: 10px;
}
.search-results-info a:hover {
    color: #fff;
}