/* Free Course Membership System - Frontend Styles */

/* Course Grid */
.fcms-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.fcms-course-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.fcms-course-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.fcms-course-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.fcms-course-content {
    padding: 20px;
}

.fcms-course-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.fcms-course-content h3 a {
    color: #333;
    text-decoration: none;
}

.fcms-course-duration,
.fcms-course-level {
    display: inline-block;
    padding: 5px 10px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 0.85em;
    margin-right: 5px;
    margin-bottom: 10px;
}

.fcms-course-excerpt {
    color: #666;
    font-size: 0.95em;
    margin: 15px 0;
}

.fcms-course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.fcms-course-price {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c5282;
}

.fcms-course-price.fcms-free {
    color: #48bb78;
}

/* Membership Plans */
.fcms-membership-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.fcms-membership-plan {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.fcms-membership-plan:hover {
    border-color: #3182ce;
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.fcms-membership-plan h3 {
    font-size: 1.5em;
    margin: 0 0 20px 0;
    color: #2d3748;
}

.fcms-membership-price {
    margin: 20px 0;
}

.fcms-price-amount {
    display: block;
    font-size: 3em;
    font-weight: bold;
    color: #3182ce;
    line-height: 1;
}

.fcms-price-period {
    display: block;
    color: #718096;
    margin-top: 5px;
}

.fcms-membership-description {
    color: #4a5568;
    margin: 20px 0;
}

.fcms-membership-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    text-align: left;
}

.fcms-membership-features li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: #4a5568;
}

.fcms-membership-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
    font-size: 1.2em;
}

.fcms-membership-plan button {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1em;
    margin-top: 20px;
}

/* Dashboard */
.fcms-dashboard {
    max-width: 1200px;
    margin: 0 auto;
}

.fcms-dashboard-section {
    background: #fff;
    padding: 30px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fcms-dashboard-section h3 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #3182ce;
}

/* Progress Bar */
.fcms-progress-bar {
    width: 100%;
    height: 20px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.fcms-progress {
    height: 100%;
    background: linear-gradient(90deg, #4299e1, #3182ce);
    transition: width 0.5s ease;
}

/* Course Card in Dashboard */
.fcms-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.fcms-course-card {
    background: #f7fafc;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.fcms-course-card h4 {
    margin: 0 0 15px 0;
    color: #2d3748;
}

.fcms-course-thumbnail {
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
}

.fcms-course-thumbnail img {
    width: 100%;
    height: auto;
}

/* Restriction Notices */
.fcms-restriction-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
}

.fcms-restriction-notice h3 {
    color: #856404;
    margin-top: 0;
}

.fcms-login-required {
    background: #e3f2fd;
    border-color: #2196f3;
}

.fcms-login-required h3 {
    color: #0d47a1;
}

.fcms-purchase-required {
    background: #f3e5f5;
    border-color: #9c27b0;
}

.fcms-purchase-required h3 {
    color: #4a148c;
}

.fcms-membership-required {
    background: #e8f5e9;
    border-color: #4caf50;
}

.fcms-membership-required h3 {
    color: #1b5e20;
}

/* Membership Info */
.fcms-membership-info {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3182ce;
}

.fcms-membership-info h4 {
    margin-top: 0;
    color: #2d3748;
}

.fcms-membership-info p {
    margin: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .fcms-courses-grid,
    .fcms-membership-plans {
        grid-template-columns: 1fr;
    }
    
    .fcms-course-grid {
        grid-template-columns: 1fr;
    }
}

/* Buttons */
.button,
button[type="submit"] {
    background: #3182ce;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.button:hover,
button[type="submit"]:hover {
    background: #2c5282;
    color: #fff;
}

.button-primary {
    background: #48bb78;
}

.button-primary:hover {
    background: #38a169;
}

.button-large {
    padding: 15px 30px;
    font-size: 1.1em;
}
