:root {
    --mag-bg: #f8fafc;
    --mag-surface: rgba(255, 255, 255, 0.8);
    --mag-surface-hover: rgba(255, 255, 255, 1);
    --mag-primary: #0ea5e9;
    --mag-secondary: #8b5cf6;
    --mag-text: #0f172a;
    --mag-text-muted: #64748b;
    --mag-glass: blur(12px);
    --mag-border: rgba(15, 23, 42, 0.08);
    --mag-font: 'Inter', system-ui, -apple-system, sans-serif;
}

.mag-page-wrapper {
    background-color: var(--mag-bg) !important;
    color: var(--mag-text) !important;
    font-family: var(--mag-font);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.mag-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Hero Section --- */
.mag-hero {
    position: relative;
    padding: 100px 0 80px;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.1), transparent),
                radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.05), transparent);
    overflow: hidden;
}

.mag-hero-glow {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
}

.mag-hero .mag-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.mag-hero-content {
    flex: 1;
    text-align: center;
}

.mag-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--mag-surface);
    border: 1px solid var(--mag-border);
    backdrop-filter: var(--mag-glass);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mag-primary);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mag-hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #0f172a 30%, var(--mag-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mag-hero-description {
    font-size: 1.1rem;
    color: var(--mag-text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.mag-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.mag-btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.mag-btn-primary {
    background: var(--mag-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}

.mag-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    filter: brightness(1.1);
}

.mag-btn-secondary {
    background: #fff;
    color: var(--mag-text);
    border: 1px solid var(--mag-border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.mag-btn-secondary:hover {
    background: var(--mag-surface-hover);
    border-color: var(--mag-primary);
}

.mag-hero-visual {
    flex: 1;
    perspective: 2000px;
}

.mag-floating-cover {
    width: 320px;
    height: auto;
    border-radius: 12px;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1),
                0 0 20px rgba(0, 0, 0, 0.05);
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.6s ease;
    border: 1px solid rgba(255,255,255,0.8);
}

.mag-hero-visual:hover .mag-floating-cover {
    transform: rotateY(-5deg) rotateX(2deg) scale(1.02);
}

.mag-placeholder-cover {
    width: 320px;
    height: 440px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: var(--mag-primary);
    font-weight: 700;
    border: 1px dashed var(--mag-border);
}

/* --- Gallery Section --- */
.mag-gallery-section {
    padding: 100px 0;
}

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

.mag-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.mag-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--mag-primary), var(--mag-secondary));
    margin: 0 auto;
    border-radius: 2px;
}

.mag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

/* --- Card Styles --- */
.mag-card {
    opacity: 0;
    transform: translateY(30px);
}

.mag-card-inner {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--mag-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.mag-card-inner:hover {
    transform: translateY(-12px);
    border-color: var(--mag-primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.mag-card-media {
    position: relative;
    padding-top: 140%;
    overflow: hidden;
    background: #f1f5f9;
}

.mag-card-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.mag-card-inner:hover .mag-card-media img {
    transform: scale(1.1);
}

.mag-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mag-card-inner:hover .mag-card-overlay {
    opacity: 1;
}

.mag-card-link {
    color: #fff;
    text-decoration: none;
    padding: 10px 24px;
    border: 1px solid #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.mag-card-link:hover {
    background: #fff;
    color: #000;
}

.mag-card-info {
    padding: 24px;
    text-align: left;
}

.mag-card-date {
    display: block;
    font-size: 0.8rem;
    color: var(--mag-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 8px;
}

.mag-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    line-height: 1.3;
}

.mag-placeholder-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(0,0,0,0.03);
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

/* --- Tablet & Desktop --- */
@media (min-width: 768px) {
    .mag-hero .mag-container {
        flex-direction: row;
        text-align: left;
    }
    
    .mag-hero-content {
        text-align: left;
    }
    
    .mag-hero-description {
        margin: 0 0 40px;
    }
    
    .mag-hero-actions {
        justify-content: flex-start;
    }
    
    .mag-hero-visual {
        display: block;
    }
}

/* --- Animations --- */
.mag-reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Empty State */
.mag-empty-state {
    padding: 100px 0;
    text-align: center;
    color: var(--mag-text-muted);
}
