/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* BASE */
body {
    background: #f7f8fc;
    color: #333;
    line-height: 1.5;
}

/* LINKS */
a {
    color: inherit;
}

/* =========================
   NAVBAR
========================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #667eea;
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
}

.nav-links a:hover {
    color: #667eea;
}

.btn {
    padding: 10px 16px;
    border-radius: 8px;
    background: #667eea;
    color: white !important;
}

/* =========================
   HERO
========================= */
.hero {
    text-align: center;
    padding: 100px 20px 60px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.primary {
    background: #667eea;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
}

.secondary {
    border: 2px solid #667eea;
    color: #667eea;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
}

/* =========================
   FEATURES
========================= */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 60px 40px;
    max-width: 1000px;
    margin: auto;
}

.feature {
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature h3 {
    margin-bottom: 10px;
    color: #667eea;
}

/* =========================
   SHOWCASE
========================= */
.showcase {
    text-align: center;
    padding: 80px 20px;
}

.mockup {
    margin-top: 30px;
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* =========================
   CTA
========================= */
.cta {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.cta a {
    margin-top: 20px;
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
}

/* =========================
   FOOTER
========================= */
.footer {
    text-align: center;
    padding: 30px;
    font-size: 0.9rem;
    color: #888;
}

/* =========================
   FORMS / CONTAINERS
========================= */
.container,
.login-container {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-width: 420px;
    margin: 80px auto;
    text-align: center;
}

.login-container h1 {
    margin-bottom: 30px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
}

input:focus {
    border-color: #667eea;
}

/* BUTTON */
button.primary {
    border: none;
    background: #667eea;
    color: white;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
}

/* =========================
   PASSWORD TOGGLE
========================= */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    flex: 1;
    padding-right: 60px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    color: #667eea;
    font-weight: bold;
}

/* =========================
   PROFILE PAGE
========================= */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 40px;
    max-width: 900px;
    margin: auto;
}

.profile-avatar {
    font-size: 3rem;
    background: #f2f2f2;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.profile-sub {
    color: #666;
    margin-top: 5px;
}

.profile-container {
    max-width: 900px;
    margin: auto;
    padding: 20px 40px 40px;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.book-card {
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.book-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.book-title {
    font-weight: 600;
}

/* EMPTY STATE */
.empty {
    color: #777;
    margin-top: 20px;
}
