* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body { background-color: #0d1117; color: white; min-height: 100vh; padding: 20px; }

.container { max-width: 1000px; margin: auto; text-align: center; }

header h1 { font-size: 2.5rem; margin-bottom: 10px; color: #58a6ff; }
header span { color: white; }

.search-section { margin: 30px 0; display: flex; gap: 10px; justify-content: center; }

input { padding: 12px 20px; width: 60%; border-radius: 8px; border: 1px solid #30363d; background: #161b22; color: white; outline: none; }

button { padding: 12px 25px; border-radius: 8px; border: none; background: #238636; color: white; cursor: pointer; font-weight: bold; }
button:hover { background: #2ea043; }

/* Grid for search results */
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-top: 30px; }

.user-card { background: #161b22; border: 1px solid #30363d; padding: 20px; border-radius: 12px; transition: 0.3s; cursor: pointer; }
.user-card:hover { transform: translateY(-5px); border-color: #58a6ff; }
.user-card img { width: 80px; border-radius: 50%; border: 2px solid #58a6ff; }
.user-card h3 { margin-top: 10px; font-size: 1.1rem; }

/* Modal Styles */
.modal { display: none; position: fixed; z-index: 1; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); }
.modal-content { background: #161b22; margin: 5% auto; padding: 30px; width: 90%; max-width: 500px; border-radius: 15px; border: 1px solid #30363d; position: relative; }
.close-btn { position: absolute; right: 20px; top: 10px; font-size: 30px; cursor: pointer; }

/* Profile Detail UI */
.profile-header { text-align: center; }
.profile-header img { width: 120px; border-radius: 50%; margin-bottom: 15px; }
.stats { display: flex; justify-content: space-around; margin: 20px 0; background: #0d1117; padding: 15px; border-radius: 10px; }
.stat-item { text-align: center; }
.stat-item span { display: block; color: #8b949e; font-size: 0.8rem; }
.view-on-github { display: block; text-decoration: none; background: #30363d; color: white; padding: 10px; border-radius: 5px; text-align: center; }
