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

:root {
    --primary: #9B1C1C; /* IAI Red */
    --primary-light: #C81E1E;
    --dark: #111827;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text: #F3F4F6;
    --text-muted: #9CA3AF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--dark);
    color: var(--text);
    height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    overflow-y: scroll; /* Force scrollbar to prevent jumps */
}

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 480px;
    height: 70px;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.header-logo {
    height: 40px;
}

.header-logo img {
    height: 100%;
}

.profile-trigger {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--glass-border);
    cursor: pointer;
    background: var(--glass);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-nav {
    display: flex;
    gap: 1.25rem;
    flex: 1;
    justify-content: center;
}

.nav-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-btn.active {
    color: var(--primary);
}

.nav-btn svg {
    width: 20px;
    height: 20px;
}

.content-feed {
    padding: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    padding-top: 20px;
}

.content-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.card-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: #222;
}

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

.card-body {
    padding: 1.5rem;
}

.card-tag {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

.app-container {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background: url('assets/img/background.png') no-repeat center center fixed/cover;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.7) 100%);
    backdrop-filter: blur(5px);
}

.content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding-top: 70px; /* Header height */
    animation: fadeIn 1s ease-out;
    background: var(--dark);
    min-height: 100vh;
    box-shadow: 0 0 100px rgba(0,0,0,0.5);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-container {
    margin-bottom: 2.5rem;
}

.logo {
    width: 120px;
    height: 120px;
    transition: transform 0.3s ease;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(155, 28, 28, 0.3));
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

p.subtitle {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
    font-size: 1.1rem;
}

.login-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    padding-left: 0.5rem;
}

input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(155, 28, 28, 0.15);
}

.btn-login {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-login:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(155, 28, 28, 0.3);
}

.footer {
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
}

/* PWA Splash effect */
.splash {
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeOut 0.5s ease-out 2s forwards;
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

.splash-logo {
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}
