/*
 * Modern, Full-Screen & Tech-Inspired Styles for Steam ID Finder
 * Design by Cascade (v3 - Full Screen Layout)
 */

 @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

 :root {
     --bg-color: #f7f8fc;
     --card-bg-color: rgba(255, 255, 255, 0.75);
     --primary-text-color: #1e293b;
     --secondary-text-color: #64748b;
     --accent-gradient: linear-gradient(45deg, #3b82f6, #8b5cf6);
     --accent-color-start: #3b82f6;
     --accent-color-end: #8b5cf6;
     --border-color: #e2e8f0;
     --shadow-color: rgba(99, 102, 241, 0.1);
     --success-color: #10b981;
     --error-color: #ef4444;
     --font-family: 'Inter', sans-serif;
 }
 
 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }
 
 body {
     font-family: var(--font-family);
     background-color: var(--bg-color);
     color: var(--primary-text-color);
     line-height: 1.6;
     overflow-x: hidden;
     background-image: radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.05), transparent 35%),
                       radial-gradient(circle at 85% 75%, rgba(59, 130, 246, 0.05), transparent 35%);
     display: flex;
     flex-direction: column;
     min-height: 100vh;
 }
 
 /* --- Navbar --- */
 .navbar {
     background-color: rgba(255, 255, 255, 0.85);
     backdrop-filter: blur(12px);
     -webkit-backdrop-filter: blur(12px);
     border-bottom: 1px solid var(--border-color);
     padding: 1rem 0;
     position: sticky;
     top: 0;
     z-index: 1000;
     width: 100%;
 }
 
 .navbar-container {
     width: 100%;
     max-width: 1400px;
     margin: 0 auto;
     padding: 0 2rem;
     display: flex;
     justify-content: space-between;
     align-items: center;
 }
 
 .logo {
     font-size: 1.5rem;
     font-weight: 700;
     text-decoration: none;
     background: var(--accent-gradient);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     transition: filter 0.3s ease;
 }
 
 .logo:hover {
     filter: brightness(1.1);
 }
 
 .nav-links {
     display: flex;
     gap: 1.5rem;
 }
 
 .nav-links a {
     color: var(--secondary-text-color);
     text-decoration: none;
     font-size: 1rem;
     font-weight: 500;
     position: relative;
     transition: color 0.3s ease;
 }
 
 .nav-links a::after {
     content: '';
     position: absolute;
     width: 0;
     height: 2px;
     bottom: -5px;
     left: 50%;
     transform: translateX(-50%);
     background: var(--accent-gradient);
     transition: width 0.3s ease;
 }
 
 .nav-links a:hover {
     color: var(--primary-text-color);
 }
 
 .nav-links a:hover::after {
     width: 100%;
 }
 
 .hamburger {
     display: none;
     cursor: pointer;
     color: var(--primary-text-color);
 }
 
 /* --- Main Container (Full Screen) --- */
 .container {
     width: 100%;
     max-width: 1200px;
     margin: 2rem auto;
     padding: 0 2rem;
     animation: fadeIn 0.6s ease-out;
     flex-grow: 1;
     transition: all 0.5s ease;
 }
 
 .main-header {
     text-align: center;
     margin-bottom: 2.5rem;
 }
 
 .main-header h1 {
     font-size: 3rem;
     font-weight: 700;
     margin-bottom: 0.5rem;
     background: var(--accent-gradient);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
 }
 
 .main-header .subtitle {
     font-size: 1.2rem;
     color: var(--secondary-text-color);
 }
 
 /* --- Announcement (Visually Distinct) --- */
 .announcement {
     display: flex;
     align-items: center;
     gap: 1rem;
     background-color: transparent;
     border: 1px dashed var(--border-color);
     border-radius: 12px;
     padding: 1rem 1.5rem;
     margin-bottom: 2.5rem;
     color: var(--secondary-text-color);
 }
 
 /* --- Search Form --- */
 .search-form {
     display: flex;
     gap: 1rem;
     margin-bottom: 2.5rem;
     transition: transform 0.3s ease;
 }
 
 .search-form:focus-within {
     transform: translateY(-2px);
 }
 
 .input-group {
     flex-grow: 1;
     position: relative;
 }
 
 .input-group .feather-search {
     position: absolute;
     top: 50%;
     left: 1.25rem;
     transform: translateY(-50%);
     color: var(--secondary-text-color);
 }
 
 .input-group input[type="text"] {
     width: 100%;
     padding: 1rem 1.25rem 1rem 3.5rem;
     background-color: #fff;
     border: 1px solid var(--border-color);
     border-radius: 12px;
     color: var(--primary-text-color);
     font-size: 1rem;
     transition: all 0.3s ease;
     box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
 }
 
 .input-group input[type="text"]:focus {
     outline: none;
     border-color: var(--accent-color-start);
     box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2), 0 0 0 4px rgba(59, 130, 246, 0.3);
 }
 
 .search-button {
     padding: 1rem 2rem;
     background-image: var(--accent-gradient);
     color: #fff;
     border: none;
     border-radius: 12px;
     font-size: 1rem;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.3s ease;
     box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
 }
 
 .search-button:hover {
     transform: translateY(-3px);
     box-shadow: 0 7px 20px rgba(99, 102, 241, 0.3);
     filter: brightness(1.1);
 }
 
 /* --- Result Area --- */
 .error-box {
     display: flex;
     align-items: center;
     gap: 1rem;
     background-color: rgba(239, 68, 68, 0.1);
     border: 1px solid var(--error-color);
     border-radius: 12px;
     padding: 1rem 1.5rem;
     color: var(--error-color);
 }
 
 .player-card {
     background-color: var(--card-bg-color);
     border: 1px solid var(--border-color);
     border-radius: 16px;
     padding: 2rem;
     backdrop-filter: blur(10px);
     -webkit-backdrop-filter: blur(10px);
     box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
     animation: slideInUp 0.6s ease-out;
 }
 
 .player-header {
     display: flex;
     flex-wrap: wrap;
     align-items: center;
     gap: 1.5rem;
     margin-bottom: 2rem;
     padding-bottom: 2rem;
     border-bottom: 1px solid var(--border-color);
 }
 
 .avatar {
     width: 100px;
     height: 100px;
     border-radius: 50%;
     border: 3px solid #fff;
     box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
 }
 
 .player-summary h2 {
     font-size: 1.8rem;
     font-weight: 600;
     color: var(--primary-text-color);
     margin-bottom: 0.5rem;
 }
 
 .status {
     display: inline-block;
     padding: 0.3rem 0.8rem;
     border-radius: 99px;
     font-size: 0.9rem;
     font-weight: 500;
     color: #fff;
 }
 
 .status-offline, .status-unknown, .status-invisible { background-color: #9ca3af; }
 .status-online { background-color: var(--success-color); }
 .status-busy { background-color: #f59e0b; }
 .status-away { background-color: #fde047; color: #4b5563; }
 .status-snooze { background-color: #fb923c; }
 .status-looking { background-color: #a78bfa; }
 
 .profile-link {
     display: inline-flex;
     align-items: center;
     gap: 0.5rem;
     color: var(--accent-color-start);
     text-decoration: none;
     margin-top: 0.75rem;
     font-weight: 500;
     transition: color 0.3s ease;
 }
 
 .profile-link:hover {
     color: var(--accent-color-end);
 }
 
 /* --- Info Grid (NEW) --- */
 .info-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
     gap: 1.5rem;
 }
 
 .info-item {
    background-color: #f7f8fc;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    /* Stagger animation setup */
    opacity: 0;
    animation: staggerIn 0.5s ease-out forwards;
}

.info-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px var(--shadow-color);
    border-color: var(--accent-color-start);
}

/* Stagger delays */
.player-card .info-item:nth-child(1) {
    animation-delay: 0.2s;
}
.player-card .info-item:nth-child(2) {
    animation-delay: 0.3s;
}
.player-card .info-item:nth-child(3) {
    animation-delay: 0.4s;
}
 
 .info-item.highlight {
     background: linear-gradient(to right, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
     border-left: 4px solid;
     border-image-slice: 1;
     border-image-source: var(--accent-gradient);
 }
 
 .info-label {
     font-size: 0.9rem;
     color: var(--secondary-text-color);
     margin-bottom: 0.25rem;
 }
 
 .info-value {
     font-size: 1.1rem;
     font-weight: 500;
     color: var(--primary-text-color);
     word-break: break-all;
 }
 
 .info-item.highlight .info-value {
     font-weight: 600;
     background: var(--accent-gradient);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
 }
 
 /* --- Footer --- */
 .main-footer {
     text-align: center;
     margin-top: 4rem;
     padding: 2rem 2rem;
     border-top: 1px solid var(--border-color);
 }
 
 .footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
 }

 .footer-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-text-color);
 }

 .links-container {
     display: flex;
     justify-content: center;
     flex-wrap: wrap;
     gap: 1rem;
 }
 
 .links-container a {
     color: var(--secondary-text-color);
     text-decoration: none;
     font-size: 0.9rem;
     transition: all 0.3s ease;
 }
 
 .links-container a:hover {
     color: var(--accent-color-start);
     text-decoration: underline;
 }
 
 /* --- Responsive Design --- */
 @media (max-width: 768px) {
     .navbar-container, .container { padding: 0 1rem; }
     .nav-links {
         display: none;
         flex-direction: column;
         align-items: center;
         position: absolute;
         top: 100%;
         left: 0;
         width: 100%;
         background-color: rgba(255, 255, 255, 0.95);
         padding: 1rem 0;
         border-bottom: 1px solid var(--border-color);
     }
     .nav-links.active { display: flex; }
     .hamburger { display: block; }
     .container { margin-top: 1.5rem; }
     .main-header h1 { font-size: 2.2rem; }
     .search-form { flex-direction: column; }
     .player-header { flex-direction: column; text-align: center; }
 }
 
 /* --- Animations --- */
 @keyframes fadeIn {
     from { opacity: 0; }
     to { opacity: 1; }
 }
 
 @keyframes slideInUp {
     from { opacity: 0; transform: translateY(20px); }
     to { opacity: 1; transform: translateY(0); }
 }

 @keyframes staggerIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
 
 /* --- Initial Centered State (NEW) --- */
 body.initial-state .container {
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
 }
 
 body.initial-state .search-form,
 body.initial-state .announcement {
     max-width: 1200px;
     width: 100%;
 }
 
 /* Feather Icons */
 .feather {
     width: 1.2em;
     height: 1.2em;
     stroke: currentColor;
     stroke-width: 2;
     stroke-linecap: round;
     stroke-linejoin: round;
     fill: none;
 }
