/**
 * Frontend Styles for UM Personalized Content
 */

.umpc-content-wrapper {
    margin: 20px 0;
}

.umpc-content-item {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.umpc-content-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.umpc-content-item:last-child {
    margin-bottom: 0;
}

.umpc-content-title {
    margin: 0 0 15px;
    padding: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c3338;
    line-height: 1.4;
}

.umpc-content-body {
    color: #50575e;
    font-size: 15px;
    line-height: 1.7;
}

.umpc-content-body p {
    margin: 0 0 15px;
}

.umpc-content-body p:last-child {
    margin-bottom: 0;
}

.umpc-content-body a {
    color: #2271b1;
    text-decoration: underline;
}

.umpc-content-body a:hover {
    color: #135e96;
}

.umpc-content-body ul,
.umpc-content-body ol {
    margin: 0 0 15px 20px;
    padding: 0;
}

.umpc-content-body li {
    margin-bottom: 8px;
}

.umpc-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Content Type Specific Styles */
.umpc-type-notice {
    background: #e5f5fa;
    border-left: 4px solid #2271b1;
}

.umpc-type-notice .umpc-content-title {
    color: #135e96;
}

.umpc-type-alert {
    background: #fcf0f1;
    border-left: 4px solid #d63638;
}

.umpc-type-alert .umpc-content-title {
    color: #b32d2e;
}

.umpc-type-info {
    background: #f0f6fc;
    border-left: 4px solid #72aee6;
}

.umpc-type-info .umpc-content-title {
    color: #0a4b78;
}

.umpc-type-text {
    background: #fff;
    border-left: 4px solid #50575e;
}

/* Dark Mode Support (if theme supports it) */
@media (prefers-color-scheme: dark) {
    .umpc-content-item {
        background: #1e1e1e;
        border-color: #3c3c3c;
        color: #e1e1e1;
    }

    .umpc-content-title {
        color: #f0f0f1;
    }

    .umpc-content-body {
        color: #d1d1d1;
    }

    .umpc-type-notice {
        background: #1a2e3d;
        border-left-color: #4a9ece;
    }

    .umpc-type-alert {
        background: #3d1a1b;
        border-left-color: #e65054;
    }

    .umpc-type-info {
        background: #1a2733;
        border-left-color: #5b9dd9;
    }
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .umpc-content-item {
        padding: 15px;
    }

    .umpc-content-title {
        font-size: 18px;
    }

    .umpc-content-body {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .umpc-content-wrapper {
        margin: 15px 0;
    }

    .umpc-content-item {
        margin-bottom: 15px;
        padding: 12px;
    }

    .umpc-content-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .umpc-content-body {
        font-size: 13px;
    }
}

/* Animation for new content */
@keyframes umpcFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.umpc-content-item {
    animation: umpcFadeIn 0.4s ease;
}
