/**
 * Catholic in Recovery - Journey LMS Styles
 * Primary Color: #475C64
 */

/* ==========================================================================
   Enroll Button
   ========================================================================== */

.cr-enroll-button {
	display: inline-block;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 6px;
	cursor: pointer;
	border: none;
	transition: all 0.2s ease;
}

.cr-enroll-button.cr-can-enroll {
	background: #475C64;
	color: #fff;
}

.cr-enroll-button.cr-can-enroll:hover {
	background: #3a4d54;
}

.cr-enroll-button.cr-enrolled {
	background: #475C64;
	color: #fff;
}

.cr-enroll-button.cr-login-to-enroll {
	background: #6b7280;
	color: #fff;
}

.cr-enroll-button.cr-login-to-enroll:hover {
	background: #4b5563;
}

.cr-enroll-button.cr-unavailable {
	background: #e5e7eb;
	color: #6b7280;
	cursor: not-allowed;
}

.cr-enroll-button:disabled {
	opacity: 0.7;
	cursor: wait;
}

/* ==========================================================================
   General Button
   ========================================================================== */

.cr-button {
	display: inline-block;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 6px;
	cursor: pointer;
	border: none;
	transition: all 0.2s ease;
	background: #475C64;
	color: #fff;
}

.cr-button:hover {
	background: #3a4d54;
	color: #fff;
}

.cr-button.cr-continue,
.cr-button.cr-begin {
	background: #475C64;
}

.cr-button.cr-continue:hover,
.cr-button.cr-begin:hover {
	background: #3a4d54;
}

/* ==========================================================================
   Journey Grid (Landing Page)
   ========================================================================== */

.cr-journey-grid {
	display: grid;
	gap: 24px;
}

.cr-journey-grid.cr-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.cr-journey-grid.cr-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.cr-journey-grid.cr-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
	.cr-journey-grid {
		grid-template-columns: 1fr !important;
	}
}

.cr-journey-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.cr-journey-image {
	height: 160px;
	background-size: cover;
	background-position: center;
}

.cr-journey-content {
	padding: 20px;
	flex: 1;
}

.cr-journey-title {
	margin: 0 0 8px;
	font-size: 1.25em;
}

.cr-journey-title a {
	color: inherit;
	text-decoration: none;
}

.cr-journey-title a:hover {
	text-decoration: underline;
}

.cr-journey-description {
	color: #666;
	font-size: 0.9em;
	margin: 0 0 12px;
}

.cr-journey-meta {
	display: flex;
	gap: 12px;
	font-size: 0.85em;
	color: #888;
	margin-bottom: 12px;
}

.cr-journey-type {
	background: #f0f0f0;
	padding: 2px 8px;
	border-radius: 4px;
}

.cr-journey-action {
	padding: 16px 20px;
	border-top: 1px solid #eee;
}

.cr-journey-action .cr-button {
	width: 100%;
	text-align: center;
}

/* ==========================================================================
   Progress Bar
   ========================================================================== */

.cr-progress-bar {
	height: 8px;
	background: #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
	margin: 8px 0;
}

.cr-progress-fill {
	height: 100%;
	background: #475C64;
	border-radius: 4px;
	transition: width 0.3s ease;
}

.cr-progress-text {
	font-size: 0.85em;
	color: #666;
}

.cr-journey-progress-wrapper {
	margin: 16px 0;
}

.cr-day-display {
	font-size: 1.1em;
	font-weight: 600;
	color: #475C64;
	margin-bottom: 8px;
}

/* ==========================================================================
   Module List
   ========================================================================== */

.cr-module-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cr-module-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: #fff;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
}

.cr-module-item.cr-locked {
	opacity: 0.6;
}

.cr-module-item.cr-completed {
	background: #f0f5f6;
	border-color: #a8bcc2;
}

.cr-module-item.cr-available {
	border-color: #475C64;
}

.cr-module-number {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f3f4f6;
	border-radius: 50%;
	font-weight: 600;
	flex-shrink: 0;
	font-size: 0.9em;
}

.cr-completed .cr-module-number {
	background: #475C64;
	color: #fff;
}

.cr-module-title {
	flex: 1;
	font-weight: 500;
}

a.cr-module-title {
	color: #475C64;
	text-decoration: none;
}

a.cr-module-title:hover {
	text-decoration: underline;
}

.cr-module-status {
	font-size: 0.85em;
	padding: 4px 8px;
	border-radius: 4px;
}

.cr-module-status.cr-completed {
	background: #e8f0f2;
	color: #3a4d54;
}

.cr-module-status.cr-locked {
	background: #f3f4f6;
	color: #6b7280;
}

/* ==========================================================================
   Module Content
   ========================================================================== */

.cr-module-content {
	max-width: 800px;
}

/* Module Header */
.cr-module-header {
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid #e5e7eb;
}

.cr-module-journey-link {
	display: inline-block;
	font-size: 1.25em;
	font-weight: 500;
	color: #475C64;
	text-decoration: none;
	margin-bottom: 12px;
}

.cr-module-journey-link:hover {
	text-decoration: underline;
}

.cr-module-journey-link::before {
	content: '\f053';
	font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', FontAwesome;
	font-weight: 900;
	margin-right: 6px;
	font-size: 0.8em;
}

.cr-module-main-title {
	margin: 0;
	font-size: 2em;
	color: #1f2937;
	line-height: 1.2;
}

.cr-module-intro {
	font-size: 1.1em;
	margin-bottom: 24px;
	line-height: 1.6;
}

.cr-module-media {
	margin: 24px 0;
}

.cr-media-embed iframe,
.cr-video-player,
.cr-audio-player {
	width: 100%;
	border-radius: 8px;
}

.cr-video-player {
	aspect-ratio: 16/9;
	background: #000;
}

.cr-media-description {
	font-size: 0.9em;
	color: #666;
	margin-top: 8px;
}

.cr-module-section {
	margin: 32px 0;
	padding: 24px;
	background: #f9fafb;
	border-radius: 12px;
}

.cr-module-section h3 {
	margin: 0 0 16px;
	font-size: 1.25em;
}

.cr-module-section p:last-child {
	margin-bottom: 0;
}

/* Section-specific colors - complementary to #475C64 */
.cr-read-section {
	background: #f0f5f6;
	border-left: 4px solid #475C64;
}

.cr-reflect-section {
	background: #f5f7f8;
	border-left: 4px solid #6b8a94;
}

.cr-pray-section {
	background: #eef3f5;
	border-left: 4px solid #5a7580;
}

.cr-act-section {
	background: #e8f0f2;
	border-left: 4px solid #3d4f56;
}

.cr-explore-section {
	background: #f2f6f7;
	border-left: 4px solid #7a9aa5;
}

.cr-share-section {
	background: #f0f5f6;
	border-left: 4px solid #475C64;
}

/* Resource list in Explore section */
.cr-resource-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.cr-resource-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cr-resource-item:last-child {
	border-bottom: none;
}

.cr-resource-item > i {
	flex-shrink: 0;
	width: 20px;
	text-align: center;
	color: #475C64;
	margin-top: 3px;
}

.cr-resource-item a {
	font-weight: 600;
	color: #475C64;
}

.cr-resource-item a:hover {
	text-decoration: underline;
}

.cr-resource-item p {
	font-size: 0.9em;
	color: #666;
	margin: 4px 0 0;
}

/* Section header icons */
.cr-module-section h3 i {
	margin-right: 8px;
	color: #475C64;
}

/* Status icons */
.cr-module-status i {
	margin-right: 4px;
}

/* ==========================================================================
   My Journeys Dashboard
   ========================================================================== */

.cr-my-journeys {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cr-my-journey-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cr-my-journey-card.cr-status-completed {
	background: #f0f5f6;
}

.cr-journey-thumb {
	width: 80px;
	height: 80px;
	border-radius: 8px;
	background-size: cover;
	background-position: center;
	background-color: #e5e7eb;
	flex-shrink: 0;
}

.cr-journey-info {
	flex: 1;
	min-width: 0;
}

.cr-journey-info h4 {
	margin: 0 0 4px;
}

.cr-journey-info h4 a {
	color: inherit;
	text-decoration: none;
}

.cr-journey-info h4 a:hover {
	text-decoration: underline;
}

.cr-day-indicator {
	font-size: 0.85em;
	color: #475C64;
	font-weight: 600;
}

@media (max-width: 480px) {
	.cr-my-journey-card {
		flex-direction: column;
		text-align: center;
	}
	
	.cr-journey-thumb {
		width: 100%;
		height: 120px;
	}
}

/* ==========================================================================
   Mark Complete Button
   ========================================================================== */

/* Module Navigation */
.cr-module-navigation {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid #e5e7eb;
}

.cr-nav-spacer {
	flex: 1;
}

.cr-nav-prev,
.cr-nav-next {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.cr-nav-prev {
	background: transparent;
	border: 2px solid #475C64;
	color: #475C64;
}

.cr-nav-prev:hover {
	background: #475C64;
	color: #fff;
}

.cr-mark-complete {
	flex-shrink: 0;
}

.cr-mark-complete.cr-completed {
	background: #475C64;
	cursor: default;
}

.cr-complete-status.cr-already-complete {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: #e8f0f2;
	color: #3a4d54;
	border-radius: 6px;
	font-weight: 600;
}

@media (max-width: 480px) {
	.cr-module-navigation {
		flex-wrap: wrap;
	}
	
	.cr-nav-prev,
	.cr-nav-next,
	.cr-mark-complete {
		flex: 1;
		text-align: center;
		justify-content: center;
	}
}

/* ==========================================================================
   Today's Content
   ========================================================================== */

.cr-todays-content {
	max-width: 800px;
}

.cr-day-header {
	font-size: 1.5em;
	color: #475C64;
	margin-bottom: 8px;
}

/* ==========================================================================
   No Content Day
   ========================================================================== */

.cr-no-content-message {
	padding: 24px;
	background: #f0f5f6;
	border-radius: 12px;
	margin-bottom: 24px;
	border-left: 4px solid #475C64;
}

.cr-daily-reflections {
	margin: 24px 0;
}

.cr-meetings-link {
	margin: 24px 0;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.cr-no-journeys,
.cr-no-modules,
.cr-no-enrollments,
.cr-login-required {
	padding: 24px;
	background: #f3f4f6;
	border-radius: 8px;
	text-align: center;
	color: #666;
}

.cr-module-locked {
	padding: 24px;
	background: #fef2f2;
	border-radius: 8px;
	border-left: 4px solid #ef4444;
}

.cr-not-enrolled {
	padding: 24px;
	background: #f0f5f6;
	border-radius: 8px;
	text-align: center;
}
