/* AttendScan Guide Premium Styling */
:root {
    --primary-color: #673ab7;
    --primary-light: #9575cd;
    --primary-dark: #512da8;
    --bg-color: #f8f9fa;
    --text-main: #333;
    --text-sub: #666;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(103, 58, 183, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
    clip-path: ellipse(150% 100% at 50% 0%);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Guide Container */
.guide-container {
    max-width: 1000px;
    margin: -50px auto 100px;
    padding: 0 20px;
}

/* Step Card */
.step-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.step-card.active {
    opacity: 1;
    transform: translateY(0);
}

.step-card:nth-child(even) {
    flex-direction: row-reverse;
}

.step-image {
    flex: 1;
    max-width: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.step-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s;
}

.step-card:hover .step-image img {
    transform: scale(1.05);
}

.step-info {
    flex: 1.5;
}

.step-number {
    display: inline-block;
    background: var(--primary-light);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.step-info h2 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.step-info p {
    color: var(--text-sub);
    font-size: 1.05rem;
}

/* Footer Section */
.guide-footer {
    text-align: center;
    padding: 60px 20px;
    background: #eeeeee;
}

.btn-home {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-home:hover {
    background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .step-card, .step-card:nth-child(even) {
        flex-direction: column;
        padding: 30px;
        text-align: center;
    }
    
    .step-image {
        max-width: 250px;
        margin: 0 auto;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0a0b0e;
        --text-main: #f0f1f3;
        --text-sub: #8b8f99;
        --white: #111318;
        --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    }

    .step-card {
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .step-info h2 {
        color: #9575cd;
    }

    .guide-footer {
        background: #181b22;
    }
}
