:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #e0e7ff;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Page Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1e293b 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.05em;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}




/* Premium Card Styles */
.magazine-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.8);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.magazine-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.card-img-container {
    position: relative;
    width: 100%;
    padding-top: 140%; /* Book/Magazine aspect ratio */
    overflow: hidden;
}

.card-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.magazine-card:hover .card-img-container img {
    transform: scale(1.1);
}

.card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1) 50%);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-color);
    letter-spacing: -0.025em;
}

.card-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: block;
}

.btn-read {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.btn-read:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

/* Demo Utils */
.demo-menu {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.demo-link {
    padding: 10px 20px;
    background: white;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.demo-link:hover, .demo-link.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.demo-section {
    display: none;
    padding: 60px 0;
}

.demo-section.active {
    display: block;
}

.log-container {
    margin-top: 30px;
    padding: 15px;
    background: #1e293b;
    color: #38bdf8;
    border-radius: 10px;
    font-family: monospace;
    font-size: 0.85rem;
    max-height: 150px;
    overflow-y: auto;
    text-align: left;
}

.log-entry {
    margin-bottom: 5px;
}

.log-entry span {
    color: #94a3b8;
}

.pos-btn {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.pos-btn:hover {
    background: #f1f5f9;
}

.pos-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}
