/* 
 * Main Page Styles for GuruSinergi Guru Pengganti
 * CSS ini harus disimpan di: /wp-content/plugins/gurusinergi-guru-pengganti/public/css/main-page.css
 */

/* === Variables === */
:root {
    /* Brand Colors */
    --primary-color: #4a6bff;
    --primary-dark: #3a56cc;
    --primary-light: #eef1ff;
    --secondary-color: #ff6b6b;
    --secondary-dark: #e55c5c;
    --accent-color: #ffd166;
    
    /* Neutrals */
    --dark: #333333;
    --medium: #666666;
    --light: #f5f7fa;
    --white: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), #8f65ff);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #ff9a8b);
    
    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* Borders & Shadows */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* === Base Styles === */
.gs-main-page-container {
    font-family: var(--body-font);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
    color: var(--dark);
}

p {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
}

section {
    padding: var(--spacing-xl) var(--spacing-md);
}

.gs-section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.gs-section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.gs-section-header h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: var(--spacing-sm) auto 0;
    border-radius: 2px;
}

.gs-section-header p {
    font-size: 1.2rem;
    color: var(--medium);
    margin-bottom: 0;
}

.gs-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--heading-font);
    min-width: 160px;
}

.gs-button-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.gs-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.gs-button-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.gs-button-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    color: var(--primary-color);
}

/* === Hero Section === */
.gs-hero-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.gs-hero-content {
    flex: 1;
    padding-right: var(--spacing-lg);
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.gs-hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.gs-hero-image img {
    max-width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.gs-hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('path/to/pattern.svg');
    background-size: cover;
    opacity: 0.05;
    z-index: 1;
}

.gs-hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--white);
}

.gs-hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
}

.gs-hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.gs-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.gs-stat-item {
    text-align: center;
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(8px);
    min-width: 120px;
}

.gs-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.gs-stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === About Section === */
.gs-about-section {
    background-color: var(--white);
    padding: var(--spacing-xl) var(--spacing-md);
}

.gs-about-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.gs-about-text {
    flex: 1;
    min-width: 300px;
}

.gs-about-benefits {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.gs-benefit-card {
    background: var(--light);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.gs-benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.gs-benefit-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.gs-benefit-card h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-xs);
}

/* === How It Works Section === */
.gs-how-it-works-section {
    background-color: var(--light);
    padding: var(--spacing-xl) var(--spacing-md);
}

.gs-how-it-works-steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.gs-step-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all 0.3s ease;
}

.gs-step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.gs-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    position: absolute;
    top: -20px;
    left: 20px;
}

.gs-step-card h3 {
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

/* === Featured Assignments Section === */
.gs-featured-assignments-section {
    background-color: var(--white);
    padding: var(--spacing-xl) var(--spacing-md);
}

.gs-featured-assignments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto var(--spacing-lg);
}

.gs-assignment-card {
    background: var(--light);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.gs-assignment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.gs-assignment-header {
    padding: var(--spacing-md);
    background: var(--primary-light);
}

.gs-assignment-header h3 {
    margin: 0 0 var(--spacing-xs);
    font-size: 1.2rem;
}

.gs-school-name {
    color: var(--medium);
    font-size: 0.9rem;
}

.gs-assignment-details {
    padding: var(--spacing-md);
}

.gs-assignment-detail {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.gs-assignment-detail i {
    color: var(--primary-color);
    margin-right: var(--spacing-xs);
    width: 20px;
}

.gs-assignment-footer {
    padding: var(--spacing-md);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: right;
}

.gs-featured-assignments-footer {
    text-align: center;
}

/* === Testimonials Section === */
.gs-testimonials-section {
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--spacing-xl) var(--spacing-md);
}

.gs-testimonials-section .gs-section-header h2,
.gs-testimonials-section .gs-section-header p {
    color: var(--white);
}

.gs-testimonials-section .gs-section-header h2:after {
    background: var(--white);
}

.gs-testimonials-slider {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.gs-testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    width: 100%;
    max-width: 350px;
    box-shadow: var(--shadow-md);
}

.gs-testimonial-rating {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
}

.gs-testimonial-content {
    font-style: italic;
    margin-bottom: var(--spacing-md);
}

.gs-testimonial-author {
    display: flex;
    align-items: center;
}

.gs-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: var(--spacing-sm);
}

.gs-author-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    margin-right: var(--spacing-sm);
}

.gs-author-name {
    display: block;
    font-weight: 700;
}

.gs-author-school {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* === FAQ Section === */
.gs-faq-section {
    background-color: var(--white);
    padding: var(--spacing-xl) var(--spacing-md);
}

.gs-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.gs-faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: var(--spacing-sm);
}

.gs-faq-question {
    padding: var(--spacing-sm) 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gs-faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.gs-faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.gs-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.gs-faq-active .gs-faq-answer {
    max-height: 500px;
    padding-bottom: var(--spacing-md);
}

.gs-faq-active .gs-faq-question h3 {
    color: var(--primary-color);
}

.gs-faq-active .gs-faq-question i {
    transform: rotate(180deg);
}

/* === CTA Section === */
.gs-cta-section {
    background: var(--gradient-secondary);
    color: var(--white);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
}

.gs-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.gs-cta-section h2 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.gs-cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-lg);
}

/* === Responsive Styles === */
@media (max-width: 768px) {
    .gs-hero-section {
        flex-direction: column;
        text-align: center;
    }
    
    .gs-hero-content {
        padding-right: 0;
        margin-bottom: var(--spacing-lg);
    }
    
    .gs-hero-section h1 {
        font-size: 2.5rem;
    }
    
    .gs-hero-cta {
        justify-content: center;
    }
    
    .gs-hero-stats {
        justify-content: center;
    }
    
    .gs-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .gs-button {
        width: 100%;
        max-width: 300px;
    }
    
    .gs-section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .gs-hero-section h1 {
        font-size: 2rem;
    }
    
    .gs-hero-subtitle {
        font-size: 1.1rem;
    }
    
    section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
}