/* 
   Course Portal Styles 
   Look & Feel: https://wechselzeiten.jetzt/
*/

:root {
    --cp-primary: #d87093; /* Rosa */
    --cp-primary-dark: #c56384;
    --cp-bg: #fdfbf7;
    --cp-text: #333333;
    --cp-muted: #666666;
    --cp-accent: #5a7d7c; /* Muted Teal */
    --cp-white: #ffffff;
    --cp-border: #e5e1da;
    --cp-success: #4a7c44;
}

.cp-container {
    font-family: 'Inter', sans-serif;
    color: var(--cp-text);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Dashboard Grid */
.cp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.cp-card {
    background: var(--cp-white);
    border: 1px solid var(--cp-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.cp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.cp-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.cp-card-body {
    padding: 20px;
}

.cp-btn {
    display: inline-block;
    background: var(--cp-primary);
    color: white !important;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.cp-btn:hover {
    background: var(--cp-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(216, 112, 147, 0.2);
}

.cp-btn-small {
    background-color: var(--cp-primary);
    color: white !important;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

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

/* Course View Layout */
.cp-layout {
    display: flex;
    gap: 40px;
}

.cp-sidebar {
    flex: 0 0 300px;
    background: #f9f7f2;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
}

.cp-main {
    flex: 1;
}

/* Sidebar Navigation */
.cp-module-title {
    font-weight: 700;
    margin: 20px 0 10px;
    color: var(--cp-accent);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.cp-lesson-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    text-decoration: none;
    color: var(--cp-text);
}

.cp-lesson-item.active {
    color: var(--cp-primary);
    font-weight: 600;
}

.cp-check {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--cp-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.cp-check.completed {
    background: var(--cp-success);
    border-color: var(--cp-success);
    color: white;
}

.cp-check.completed::after {
    content: '✓';
}

/* Video Container */
.cp-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-bottom: 30px;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
}

.cp-video-wrapper iframe,
.cp-video-wrapper video,
.cp-video-wrapper .wp-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Responsive */
@media (max-width: 768px) {
    .cp-layout {
        flex-direction: column;
    }
    .cp-sidebar {
        flex: none;
        width: 100%;
    }
}

.cp-downloads-content a {
    color: var(--cp-primary);
    text-decoration: none;
    font-weight: 600;
}

.cp-downloads-content a:hover {
    text-decoration: underline;
}

/* Admin Editor Toolbar */
.cp-editor-toolbar {
    display: flex;
    gap: 5px;
    background: #f8f8f8;
    padding: 5px;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    margin-top: 5px;
}

.cp-format-btn {
    padding: 4px 10px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #444;
    transition: all 0.2s;
}

.cp-format-btn:hover {
    background: #eee;
    border-color: #999;
}

.cp-admin-portal textarea, 
.cp-admin-portal input[type="text"] {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}
