/* Modern Slide Interaktif Styles */
:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #a855f7;
    --light: #f5f3ff;
    --text: #4c1d95;
}

.modern-slide {
    padding: 1.5rem;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--light) 0%, #ffffff 100%);
    animation: slideIn 0.5s ease-out;
}

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

/* Hero Header */
.hero-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 24px;
    padding: 2rem 2rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 25px 70px rgba(99, 102, 241, 0.25);
    position: relative;
    overflow: hidden;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.hero-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.bagian-badge, .progress-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-content {
    position: relative;
    z-index: 1;
}

.slide-title {
    font-size: 2.75rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
    letter-spacing: -0.02em;
}

.title-number {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 0.35rem 0.9rem;
    border-radius: 14px;
    font-size: 1.5rem;
    margin-right: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.bagian-name {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 24px 24px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-card:hover::before {
    opacity: 1;
}

.content-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light);
}

.card-icon {
    font-size: 1.75rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    flex: 1;
}

.expand-btn {
    background: var(--light);
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.expand-btn:hover {
    background: var(--primary);
    color: white;
}

.expand-icon {
    display: inline-block;
    transition: transform 0.3s;
}

.expand-btn.active .expand-icon {
    transform: rotate(180deg);
}

.card-body {
    color: #374151;
    line-height: 1.7;
}

.card-body.expandable {
    max-height: 150px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.card-body.expandable.expanded {
    max-height: 1000px;
}

/* Tujuan Card */
.tujuan-card {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--light) 0%, white 100%);
}

.tujuan-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
}

/* Poin Section */
.poin-section {
    margin-bottom: 1.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    border-left: 5px solid var(--primary);
}

.section-icon {
    font-size: 2rem;
}

.poin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.poin-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(99, 102, 241, 0.15);
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.poin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

.poin-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.poin-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 70px rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.4);
}

.poin-number {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 2.8rem;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
    line-height: 1;
}

.poin-card:hover .poin-number {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.5);
}

.poin-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.3;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-height: 2.8rem;
}

.poin-content {
    font-size: 1.2rem;
    line-height: 1.75;
    color: #1e293b;
    letter-spacing: 0.01em;
    font-weight: 500;
    min-height: 6rem;
}

.poin-text {
    flex: 1;
    font-size: 1.15rem;
    line-height: 1.7;
    color: #1e293b;
    font-weight: 500;
}

/* Script Card */
.script-card {
    background: linear-gradient(135deg, #fffbeb 0%, white 100%);
}

.script-text {
    font-style: italic;
    color: #374151;
    line-height: 1.8;
}

/* Sidebar */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Info Cards Grid - untuk tips, mistakes, resources di bawah poin utama */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

/* Progress Card */
.progress-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
    padding: 2rem 1.5rem;
}

.progress-circle {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 1rem;
}

.progress-circle svg {
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 12;
}

.progress-bar {
    fill: none;
    stroke: white;
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 565;
    stroke-dashoffset: calc(565 - (565 * var(--progress) / 100));
    animation: progressAnim 1.5s ease-out;
}

@keyframes progressAnim {
    from { stroke-dashoffset: 565; }
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.progress-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.progress-label {
    font-size: 1.25rem;
    opacity: 0.9;
}

.progress-message {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Contoh Card */
.contoh-card {
    background: linear-gradient(135deg, #f0fdf4 0%, white 100%);
}

.contoh-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #064e3b;
}

/* Action Card */
.action-card {
    background: linear-gradient(135deg, #fef3c7 0%, white 100%);
}

.action-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 12px;
    transition: all 0.3s;
    cursor: pointer;
}

.action-item:hover {
    background: var(--light);
    transform: translateX(5px);
}

.action-checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    appearance: none;
    border: 2px solid var(--primary);
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
}

.action-checkbox input[type="checkbox"]:checked {
    background: var(--primary);
}

.action-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
}

.action-item span {
    flex: 1;
    font-size: 0.9rem;
    color: #1f2937;
}

/* Tips Card */
.tips-card {
    background: linear-gradient(135deg, #fae8ff 0%, white 100%);
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    padding: 0.85rem 0 0.85rem 2.5rem;
    position: relative;
    color: #581c87;
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 500;
}

.tips-list li::before {
    content: '💡';
    position: absolute;
    left: 0;
    font-size: 1.3rem;
}

.tips-list li:not(:last-child) {
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

/* Warning Card */
.warning-card {
    background: linear-gradient(135deg, #fef3c7 0%, white 100%);
}

.warning-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.warning-list li {
    padding: 0.85rem 0 0.85rem 2.5rem;
    position: relative;
    color: #92400e;
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 500;
}

.warning-list li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
    font-size: 1.3rem;
}

.warning-list li:not(:last-child) {
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}

/* Resource Card */
.resource-card {
    background: linear-gradient(135deg, #dbeafe 0%, white 100%);
}

.resource-item {
    margin-bottom: 1rem;
}

.resource-item:last-child {
    margin-bottom: 0;
}

.resource-item strong {
    color: #1e40af;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.4rem;
}

.resource-item p {
    color: #1e3a8a;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Info Card Headers */
.info-card h4 {
    font-size: 1.4rem;
    font-weight: 800;
}

/* Success Card */
.success-card {
    background: linear-gradient(135deg, #d1fae5 0%, white 100%);
}

.milestone-item {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 12px;
    border-left: 4px solid #10b981;
}

.milestone-item:last-child {
    margin-bottom: 0;
}

.milestone-item strong {
    color: #065f46;
    font-size: 1.15rem;
    display: inline-block;
    margin-right: 0.5rem;
}

.milestone-item {
    color: #047857;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-grid { grid-template-columns: 1fr; }
    .slide-title { font-size: 2rem; }
    .poin-grid { grid-template-columns: 1fr; }
    .info-cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .modern-slide { padding: 1rem; }
    .hero-header { padding: 1.5rem; }
    .slide-title { font-size: 1.5rem; }
    .header-top { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
    .progress-circle { width: 140px; height: 140px; }
    .progress-number { font-size: 2.5rem; }
}
