/* Reset dan dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #121212;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    flex: 1;
}

/* Header */
.header {
    padding: 24px 0;
    border-bottom: 1px solid #333;
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.header-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#site-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background-color: #1e1e1e;
    padding: 4px;
}

/* Main Content */
.main-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 60px;
}

.card-container {
    width: 100%;
    max-width: 800px;
}

/* Script Card */
.script-card {
    background-color: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.script-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.thumbnail-container {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.script-info {
    padding: 28px;
}

.script-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.script-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 28px;
}

.script-meta p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #b0b0b0;
}

.script-meta i {
    color: #6c63ff;
    font-size: 1.1rem;
}

.script-meta span {
    color: #fff;
    font-weight: 500;
}

/* Tombol */
.buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    flex: 1;
    min-width: 180px;
}

.download-btn {
    background-color: #6c63ff;
    color: white;
}

.download-btn:hover {
    background-color: #5a52d5;
    transform: translateY(-2px);
}

.description-btn {
    background-color: #333;
    color: #fff;
}

.description-btn:hover {
    background-color: #444;
    transform: translateY(-2px);
}

/* Deskripsi Expandable Section */
.description-content {
    background-color: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
    animation: fadeIn 0.3s ease;
}

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

.description-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    background-color: #252525;
    border-bottom: 1px solid #333;
}

.description-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
}

.close-btn {
    background: none;
    border: none;
    color: #b0b0b0;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #fff;
}

.description-body {
    padding: 28px;
}

.description-body p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #d0d0d0;
    white-space: pre-line;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.footer {
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid #333;
    margin-top: auto;
}

.footer-text {
    font-size: 0.95rem;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-text i {
    color: #6c63ff;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsif */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header {
        padding: 20px 0;
        margin-bottom: 30px;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .script-name {
        font-size: 1.5rem;
    }
    
    .thumbnail-container {
        height: 200px;
    }
    
    .script-info {
        padding: 22px;
    }
    
    .btn {
        min-width: 100%;
        padding: 16px 24px;
    }
    
    .buttons-container {
        gap: 12px;
    }
    
    .description-header, .description-body {
        padding: 18px 22px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.3rem;
    }
    
    .script-name {
        font-size: 1.3rem;
    }
    
    .script-meta {
        flex-direction: column;
        gap: 12px;
    }
    
    .thumbnail-container {
        height: 180px;
    }
}