Spaces:
Sleeping
Sleeping
| /* =================================================================== | |
| 1. GLOBAL VARIABLES & RESET | |
| ================================================================= */ | |
| :root { | |
| --bg-deep-dark: #0a192f; | |
| --bg-medium-dark: #172a46; | |
| --bg-light-dark: #2c3e50; | |
| --text-bright: #ccd6f6; | |
| --text-normal: #bdc3c7; | |
| --text-muted: #8892b0; | |
| --accent-primary: #64ffda; | |
| --accent-primary-darker: #52d3b4; | |
| --accent-primary-text: #0a192f; | |
| --border-color: #304a6e; | |
| --card-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7); | |
| } | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; | |
| background-color: var(--bg-deep-dark); | |
| color: var(--text-normal); | |
| line-height: 1.6; | |
| font-size: 16px; | |
| background-image: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.9)), | |
| url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><path fill="%23172a46" fill-opacity="0.3" d="M0 0 H40 V40 H0 Z M20 0 V40 M0 20 H40"></path></svg>'); | |
| background-size: 40px 40px; | |
| min-height: 100vh; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| a { | |
| text-decoration: none; | |
| color: inherit; | |
| transition: color 0.3s; | |
| } | |
| /* =================================================================== | |
| 2. HEADER & NAVIGATION (Responsive) | |
| ================================================================= */ | |
| header { | |
| background-color: rgba(10, 25, 47, 0.95); | |
| padding: 1rem 5%; | |
| border-bottom: 1px solid var(--border-color); | |
| position: sticky; | |
| top: 0; | |
| z-index: 1000; | |
| backdrop-filter: blur(10px); | |
| } | |
| nav { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| flex-wrap: wrap; | |
| } | |
| .logo { | |
| font-size: 1.5rem; | |
| font-weight: bold; | |
| color: var(--accent-primary); | |
| letter-spacing: 1px; | |
| } | |
| nav ul { | |
| list-style: none; | |
| display: flex; | |
| gap: 1.5rem; | |
| } | |
| nav a { | |
| color: var(--text-normal); | |
| font-weight: 500; | |
| padding: 0.5rem 0; | |
| font-size: 0.95rem; | |
| } | |
| nav a:hover, nav a.active { | |
| color: var(--accent-primary); | |
| border-bottom: 2px solid var(--accent-primary); | |
| } | |
| /* =================================================================== | |
| 3. MAIN CONTENT LAYOUT | |
| ================================================================= */ | |
| main { | |
| flex: 1; /* Pushes footer down */ | |
| width: 100%; | |
| max-width: 1100px; | |
| margin: 2rem auto; | |
| padding: 0 5%; | |
| } | |
| .profile-container { | |
| display: grid; | |
| /* Desktop: 1/3 width for Profile, 2/3 for History */ | |
| grid-template-columns: 1fr 2fr; | |
| gap: 2rem; | |
| align-items: start; | |
| } | |
| /* =================================================================== | |
| 4. PROFILE CARD | |
| ================================================================= */ | |
| .profile-card { | |
| background-color: var(--bg-medium-dark); | |
| padding: 2.5rem; | |
| border-radius: 12px; | |
| box-shadow: var(--card-shadow); | |
| border: 1px solid var(--border-color); | |
| text-align: center; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| } | |
| .avatar { | |
| width: 120px; | |
| height: 120px; | |
| border-radius: 50%; | |
| object-fit: cover; | |
| margin-bottom: 1.5rem; | |
| border: 3px solid var(--accent-primary); | |
| box-shadow: 0 0 20px rgba(100, 255, 218, 0.2); | |
| background-color: var(--bg-light-dark); | |
| } | |
| .profile-card h2 { | |
| color: var(--text-bright); | |
| font-size: 1.5rem; | |
| margin-bottom: 0.5rem; | |
| } | |
| .profile-card p { | |
| color: var(--text-muted); | |
| font-size: 1rem; | |
| margin-bottom: 0.5rem; | |
| width: 100%; | |
| word-break: break-word; /* Prevents long emails from breaking layout */ | |
| } | |
| .profile-card strong { | |
| color: var(--accent-primary); | |
| font-weight: 500; | |
| } | |
| /* =================================================================== | |
| 5. SEARCH HISTORY | |
| ================================================================= */ | |
| .search-history { | |
| background-color: var(--bg-medium-dark); | |
| padding: 2.5rem; | |
| border-radius: 12px; | |
| box-shadow: var(--card-shadow); | |
| border: 1px solid var(--border-color); | |
| min-height: 400px; /* Ensures visual balance */ | |
| } | |
| .search-history h3 { | |
| color: var(--text-bright); | |
| margin-bottom: 1.5rem; | |
| padding-bottom: 1rem; | |
| border-bottom: 1px solid var(--border-color); | |
| font-size: 1.25rem; | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| } | |
| .search-history ul { | |
| list-style: none; | |
| padding: 0; | |
| } | |
| .search-history li { | |
| background-color: var(--bg-light-dark); | |
| padding: 1rem 1.25rem; | |
| border-radius: 6px; | |
| margin-bottom: 0.75rem; | |
| color: var(--text-normal); | |
| border-left: 3px solid var(--accent-primary); | |
| transition: transform 0.2s, background-color 0.2s; | |
| font-size: 0.95rem; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .search-history li:hover { | |
| background-color: rgba(255, 255, 255, 0.05); | |
| transform: translateX(5px); | |
| } | |
| /* =================================================================== | |
| 6. RESPONSIVE MEDIA QUERIES | |
| ================================================================= */ | |
| /* Tablet (Portrait) & Mobile */ | |
| @media (max-width: 900px) { | |
| header { | |
| padding: 1rem; | |
| } | |
| nav { | |
| flex-direction: column; | |
| gap: 1rem; | |
| } | |
| nav ul { | |
| flex-wrap: wrap; | |
| justify-content: center; | |
| gap: 1rem; | |
| width: 100%; | |
| } | |
| /* Switch to single column stack */ | |
| .profile-container { | |
| grid-template-columns: 1fr; | |
| gap: 1.5rem; | |
| } | |
| .profile-card, .search-history { | |
| padding: 2rem; | |
| min-height: auto; | |
| } | |
| } | |
| /* Mobile Phones */ | |
| @media (max-width: 600px) { | |
| main { | |
| padding: 0 1rem; | |
| margin-top: 1.5rem; | |
| } | |
| .avatar { | |
| width: 100px; | |
| height: 100px; | |
| } | |
| .profile-card h2 { | |
| font-size: 1.25rem; | |
| } | |
| .search-history h3 { | |
| font-size: 1.1rem; | |
| } | |
| .search-history li { | |
| padding: 0.75rem 1rem; | |
| font-size: 0.9rem; | |
| } | |
| } | |
| /* =================================================================== | |
| 7. FOOTER | |
| ================================================================= */ | |
| footer { | |
| text-align: center; | |
| padding: 2rem 5%; | |
| margin-top: 3rem; | |
| background-color: var(--bg-medium-dark); | |
| color: var(--text-muted); | |
| font-size: 0.9rem; | |
| border-top: 1px solid var(--border-color); | |
| } |