/*
Theme Name: PNGForest Theme
Theme URI: https://pngforest.com
Author: PNGForest
Description: Clean stock PNG gallery theme with transparent previews and direct downloads.
Version: 1.0
*/

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f8fafc; color: #1e293b; }

/* Header */
.site-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; background: #ffffff; border-bottom: 1px solid #e2e8f0; }
.site-logo { font-size: 1.5rem; font-weight: 800; color: #10b981; text-decoration: none; }

/* Hero & Search */
.hero-section { background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff; text-align: center; padding: 60px 20px; }
.hero-section h1 { font-size: 2.2rem; margin-bottom: 10px; font-weight: 700; }
.hero-section p { color: #94a3b8; margin-bottom: 25px; font-size: 1.1rem; }
.search-bar { max-width: 600px; margin: 0 auto; display: flex; box-shadow: 0 10px 25px rgba(0,0,0,0.2); border-radius: 8px; overflow: hidden; }
.search-bar input { flex: 1; padding: 15px 20px; border: none; outline: none; font-size: 1rem; }
.search-bar button { padding: 15px 25px; background: #10b981; color: white; border: none; font-weight: 600; cursor: pointer; }

/* PNG Gallery Grid */
.png-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; padding: 40px 5%; }
.png-card { background: #ffffff; border-radius: 12px; border: 1px solid #e2e8f0; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; position: relative; }
.png-card:hover { transform: translateY(-4px); box-shadow: 0 12px 20px rgba(0,0,0,0.08); }

/* Transparent Checkerboard */
.png-preview { width: 100%; height: 220px; display: flex; align-items: center; justify-content: center; padding: 15px; background-color: #f1f5f9; background-image: linear-gradient(45deg, #e2e8f0 25%, transparent 25%), linear-gradient(-45deg, #e2e8f0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e2e8f0 75%), linear-gradient(-45deg, transparent 75%, #e2e8f0 75%); background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0px; }
.png-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Card Info */
.png-info { padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; background: #fff; }
.png-title { font-size: 0.9rem; font-weight: 600; color: #334155; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.btn-download { background: #10b981; color: white; padding: 6px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; text-decoration: none; }
.btn-download:hover { background: #059669; }