/* =============================================================================
 * Imputation Server System - Public Pages CSS
 * Public page styles: hero section, news, service cards
 * ============================================================================= */

/* -----------------------------------------------------------------------------
 * CSS Variables (Theme) - Inherit from base.css
 * ----------------------------------------------------------------------------- */
:root {
    --iss-primary: #667eea;
    --iss-primary-dark: #5568d3;
    --iss-secondary: #764ba2;
    --iss-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* -----------------------------------------------------------------------------
 * Public Page Body Styles
 * ----------------------------------------------------------------------------- */
body.public-page {
    background: var(--iss-gradient);
    min-height: 100vh;
}

body.landing-page {
    background: white;
    min-height: 100vh;
}

body.landing-page .container-fluid {
    padding: 0;
}

/* -----------------------------------------------------------------------------
 * Custom Button Styles (for pages without base.css)
 * ----------------------------------------------------------------------------- */
.btn-iss-primary {
    background: var(--iss-primary);
    border-color: var(--iss-primary);
    color: white;
}

.btn-iss-primary:hover {
    background: var(--iss-primary-dark);
    border-color: var(--iss-primary-dark);
    color: white;
}

/* -----------------------------------------------------------------------------
 * Hero Section
 * ----------------------------------------------------------------------------- */
.hero-section {
    background: var(--iss-gradient);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.hero-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 250px;
}

/* -----------------------------------------------------------------------------
 * News Section
 * ----------------------------------------------------------------------------- */
.news-section {
    background: white;
    padding: 60px 0;
}

.news-section h2 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
}

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

.news-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-date {
    display: inline-block;
    background: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #666;
    margin-right: 0.75rem;
}

/* -----------------------------------------------------------------------------
 * Services Section
 * ----------------------------------------------------------------------------- */
.services-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.services-section h2 {
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
    text-align: center;
}

/* -----------------------------------------------------------------------------
 * Service Cards
 * ----------------------------------------------------------------------------- */
.service-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card-icon {
    font-size: 3rem;
    color: var(--iss-primary);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.service-card p {
    color: #666;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.service-card-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.service-card-buttons .btn {
    flex: 1;
    min-width: 100px;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.service-card-placeholder {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* -----------------------------------------------------------------------------
 * Landing Page User Info (Top Right)
 * ----------------------------------------------------------------------------- */
.landing-user-info {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: white;
    font-size: 0.9rem;
    z-index: 100;
}

.landing-user-info a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin-left: 1rem;
}

.landing-user-info a:hover {
    color: white;
    text-decoration: underline;
}

/* -----------------------------------------------------------------------------
 * Disabled Service Cards
 * ----------------------------------------------------------------------------- */
.service-card-disabled {
    background: #f5f5f5;
    opacity: 0.7;
}

.service-card-disabled h3 {
    color: #888;
}

.service-card-disabled .btn {
    background: #ccc;
    border-color: #ccc;
    color: #666;
    cursor: not-allowed;
    pointer-events: none;
}

/* -----------------------------------------------------------------------------
 * Mobile Responsive
 * ----------------------------------------------------------------------------- */
@media (max-width: 576px) {
    .hero-logo {
        max-width: 280px;
    }

    .hero-buttons .btn {
        min-width: 100%;
    }

    .hero-section {
        padding: 60px 0;
    }

    .landing-user-info {
        position: static;
        text-align: right;
        padding: 0.5rem 1rem;
        background: rgba(0, 0, 0, 0.1);
    }
}
