/* assets/css/style.css - Custom CSS untuk semua halaman */

:root {
    --primary-color: <?php echo getSetting('primary_color', '#667eea'); ?>;
    --secondary-color: <?php echo getSetting('secondary_color', '#764ba2'); ?>;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-bg: #1a1f36;
    --light-bg: #f8f9fa;
    --text-dark: #333;
    --text-light: #666;
    --text-muted: #999;
    --border-color: #e0e0e0;
    --shadow-sm: 0 5px 20px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --border-radius-sm: 10px;
    --border-radius-md: 15px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background: var(--light-bg);
    padding-top: 76px;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 80vh !important;
    min-height: 600px !important;
    max-height: 800px !important;
    overflow: hidden;
    margin-top: -76px; /* Menghilangkan gap dengan navbar */
}

.hero-slider .owl-stage-outer,
.hero-slider .owl-stage,
.hero-slider .owl-item {
    height: 100% !important;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    color: white !important;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    margin-top: 76px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .btn {
    animation: fadeInUp 1s ease-out 0.6s both;
    font-size: 1.1rem;
    padding: 15px 40px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.hero-slider .owl-dots {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    z-index: 10;
}

.hero-slider .owl-dot span {
    width: 12px !important;
    height: 12px !important;
    margin: 5px !important;
    background: rgba(255,255,255,0.5) !important;
    transition: all 0.3s ease;
}

.hero-slider .owl-dot.active span {
    background: white !important;
    width: 30px !important;
}

.owl-item.active .hero-slide {
    animation: zoomIn 5s ease-out forwards;
}

@keyframes zoomIn {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 0 30px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

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

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

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.page-header .breadcrumb {
    background: transparent;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.page-header .breadcrumb-item a:hover {
    color: white;
}

.page-header .breadcrumb-item.active {
    color: white;
}

/* ===== SECTION TITLE ===== */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 20px auto 0;
    font-size: 1.1rem;
}

/* ===== CARDS ===== */
.card-hover {
    background: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    border: none;
}

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

.news-image {
    height: 200px;
    overflow: hidden;
}

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

.card-hover:hover .news-image img {
    transform: scale(1.1);
}

.news-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.news-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-title a {
    color: var(--text-dark);
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* ===== BUTTONS ===== */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius-xl);
    padding: 12px 30px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transition: left 0.3s;
    z-index: -1;
}

.btn-gradient:hover::before {
    left: 0;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    color: white;
}

.btn-outline-gradient {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius-xl);
    padding: 10px 28px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: left 0.3s;
    z-index: -1;
}

.btn-outline-gradient:hover::before {
    left: 0;
}

.btn-outline-gradient:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* ===== ALERTS ===== */
.alert-custom {
    border-radius: var(--border-radius-sm);
    padding: 15px 20px;
    margin-bottom: 20px;
    border: none;
    border-left: 4px solid;
}

.alert-success-custom {
    background: #d4edda;
    color: #155724;
    border-left-color: var(--success-color);
}

.alert-danger-custom {
    background: #f8d7da;
    color: #721c24;
    border-left-color: var(--danger-color);
}

.alert-warning-custom {
    background: #fff3cd;
    color: #856404;
    border-left-color: var(--warning-color);
}

.alert-info-custom {
    background: #d1ecf1;
    color: #0c5460;
    border-left-color: var(--info-color);
}

/* ===== PAGINATION ===== */
.pagination-custom {
    justify-content: center;
    margin-top: 40px;
}

.pagination-custom .page-link {
    border: none;
    margin: 0 5px;
    border-radius: var(--border-radius-sm);
    color: var(--text-light);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-custom .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.pagination-custom .page-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ===== FORM CONTROLS ===== */
.form-control-custom {
    border-radius: var(--border-radius-sm);
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.form-control-custom:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
    opacity: 1;
}

/* ===== EVENTS ===== */
.event-item {
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.event-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.event-date {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.event-date .day {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== GALLERY ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102,126,234,0.9), rgba(118,75,162,0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 3rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* ===== POLLING ===== */
.poll-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius-lg);
    padding: 40px;
    color: white;
}

.poll-option label {
    background: rgba(255,255,255,0.1);
    border-radius: var(--border-radius-sm);
    padding: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.poll-option label:hover {
    background: rgba(255,255,255,0.2);
}

.poll-option input {
    margin-right: 10px;
}

.poll-result .progress {
    height: 30px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--border-radius-sm);
}

.poll-result .progress-bar {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    line-height: 30px;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ===== LOADING SPINNER ===== */
.spinner-custom {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== ANIMATIONS ===== */
.animate-fadeInUp {
    animation: fadeInUp 1s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 1s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 1s ease-out;
}

.animate-zoomIn {
    animation: zoomIn 0.5s ease-out;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.shadow-hover {
    transition: var(--transition);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 992px) {
    .hero-slider {
        height: 70vh !important;
        min-height: 500px !important;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 62px;
    }
    
    .hero-slider {
        height: 60vh !important;
        min-height: 450px !important;
        margin-top: -62px;
    }
    
    .hero-content {
        margin-top: 62px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .hero-content .btn {
        font-size: 1rem;
        padding: 12px 30px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .btn-gradient,
    .btn-outline-gradient {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .pagination-custom .page-link {
        width: 35px;
        height: 35px;
    }
    
    .event-date {
        min-width: 100px;
    }
    
    .event-date .day {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 50vh !important;
        min-height: 400px !important;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .event-item {
        flex-direction: column;
    }
    
    .event-date {
        flex-direction: row;
        min-width: 100%;
        padding: 10px !important;
    }
    
    .event-date .day {
        font-size: 1.5rem;
        margin-right: 5px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}