/**
 * MainPage Maker - 교회용 커뮤니티 홈페이지 스타일
 * Modern Minimal Design
 */

/* ========================================
   Global Styles
   ======================================== */

.mainpage-wrapper {
	width: 100%;
	min-height: 100vh;
	background: #ffffff;
}

.mainpage-container {
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	padding: 0 20px;
}

.mainpage-section {
	padding: 100px 20px;
	position: relative;
}

.mainpage-section-alt {
	background: #f8f9fa;
}

.mainpage-section-title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 500;
	color: #1a1a1a;
	text-align: center;
	margin: 0 0 60px 0;
	letter-spacing: -0.02em;
}

.mainpage-section-more {
	text-align: center;
	margin-top: 40px;
}

.mainpage-more-link {
	display: inline-block;
	font-size: 1rem;
	font-weight: 500;
	color: #1a1a1a;
	text-decoration: none;
	transition: all 0.3s ease;
}

.mainpage-more-link:hover {
	color: #666666;
	transform: translateX(4px);
}

/* ========================================
   Hero Section
   ======================================== */

.mainpage-hero {
	position: relative;
	width: 100%;
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	padding: 100px 20px;
}

.mainpage-hero-content {
	text-align: center;
	max-width: 800px;
	margin: 0 auto;
}

.mainpage-hero-title {
	font-size: clamp(2.5rem, 5vw, 4rem);
	font-weight: 300;
	line-height: 1.2;
	color: #1a1a1a;
	margin: 0 0 24px 0;
	letter-spacing: -0.02em;
}

.mainpage-hero-subtitle {
	font-size: clamp(1.125rem, 2vw, 1.5rem);
	font-weight: 400;
	line-height: 1.6;
	color: #666666;
	margin: 0 0 48px 0;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 48px;
}

.mainpage-hero-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
	align-items: center;
}

/* Buttons */
.mainpage-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 32px;
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
	border-radius: 8px;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	cursor: pointer;
	letter-spacing: 0.01em;
}

.mainpage-btn-primary {
	background: #1a1a1a;
	color: #ffffff;
	border-color: #1a1a1a;
}

.mainpage-btn-primary:hover {
	background: #333333;
	border-color: #333333;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mainpage-btn-secondary {
	background: #ffffff;
	color: #1a1a1a;
	border-color: #1a1a1a;
}

.mainpage-btn-secondary:hover {
	background: #f8f9fa;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mainpage-btn-outline {
	background: transparent;
	color: #1a1a1a;
	border-color: #d0d0d0;
}

.mainpage-btn-outline:hover {
	background: #f8f9fa;
	border-color: #1a1a1a;
	transform: translateY(-2px);
}

/* ========================================
   Notice Section
   ======================================== */

.mainpage-notice-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.mainpage-notice-item {
	border-bottom: 1px solid #e8e8e8;
	padding: 20px 0;
	transition: background 0.3s ease;
}

.mainpage-notice-item:first-child {
	border-top: 1px solid #e8e8e8;
}

.mainpage-notice-item:hover {
	background: #fafafa;
}

.mainpage-notice-link {
	display: flex;
	align-items: center;
	gap: 24px;
	text-decoration: none;
	color: #1a1a1a;
	transition: color 0.3s ease;
}

.mainpage-notice-link:hover {
	color: #666666;
}

.mainpage-notice-date {
	font-size: 0.875rem;
	color: #999999;
	min-width: 90px;
	flex-shrink: 0;
}

.mainpage-notice-title {
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.6;
	flex: 1;
}

/* ========================================
   Worship Section
   ======================================== */

.mainpage-worship-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 40px;
	max-width: 900px;
	margin: 0 auto;
}

.mainpage-worship-item {
	text-align: center;
	padding: 40px 20px;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mainpage-worship-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.mainpage-worship-day {
	font-size: 1.5rem;
	font-weight: 500;
	color: #1a1a1a;
	margin: 0 0 16px 0;
}

.mainpage-worship-time {
	font-size: 1.25rem;
	font-weight: 400;
	color: #333333;
	margin: 0 0 8px 0;
}

.mainpage-worship-place {
	font-size: 1rem;
	color: #666666;
	margin: 0;
}

/* ========================================
   Sermon Section
   ======================================== */

.mainpage-sermon-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 40px;
}

.mainpage-sermon-item {
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mainpage-sermon-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.mainpage-sermon-thumbnail {
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: #f0f0f0;
}

.mainpage-sermon-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.mainpage-sermon-item:hover .mainpage-sermon-thumbnail img {
	transform: scale(1.05);
}

.mainpage-sermon-content {
	padding: 24px;
}

.mainpage-sermon-title {
	font-size: 1.25rem;
	font-weight: 500;
	margin: 0 0 12px 0;
	line-height: 1.4;
}

.mainpage-sermon-title a {
	color: #1a1a1a;
	text-decoration: none;
	transition: color 0.3s ease;
}

.mainpage-sermon-title a:hover {
	color: #666666;
}

.mainpage-sermon-meta {
	display: flex;
	gap: 12px;
	font-size: 0.875rem;
	color: #999999;
	margin-bottom: 12px;
}

.mainpage-sermon-date,
.mainpage-sermon-category {
	font-size: 0.875rem;
}

.mainpage-sermon-excerpt {
	font-size: 0.9375rem;
	line-height: 1.7;
	color: #666666;
	margin: 0;
}

/* ========================================
   Broadcast Section
   ======================================== */

.mainpage-broadcast-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 30px;
}

.mainpage-broadcast-item {
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mainpage-broadcast-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.mainpage-broadcast-thumbnail {
	position: relative;
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: #f0f0f0;
}

.mainpage-broadcast-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.mainpage-broadcast-item:hover .mainpage-broadcast-thumbnail img {
	transform: scale(1.05);
}

.mainpage-broadcast-play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 64px;
	height: 64px;
	background: rgba(0, 0, 0, 0.7);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	transition: background 0.3s ease, transform 0.3s ease;
}

.mainpage-broadcast-item:hover .mainpage-broadcast-play-icon {
	background: rgba(0, 0, 0, 0.9);
	transform: translate(-50%, -50%) scale(1.1);
}

.mainpage-broadcast-content {
	padding: 20px;
}

.mainpage-broadcast-title {
	font-size: 1.125rem;
	font-weight: 500;
	margin: 0 0 12px 0;
	line-height: 1.4;
}

.mainpage-broadcast-title a {
	color: #1a1a1a;
	text-decoration: none;
	transition: color 0.3s ease;
}

.mainpage-broadcast-title a:hover {
	color: #666666;
}

.mainpage-broadcast-meta {
	display: flex;
	gap: 12px;
	font-size: 0.875rem;
	color: #999999;
}

.mainpage-broadcast-date,
.mainpage-broadcast-category {
	font-size: 0.875rem;
}

/* ========================================
   Lecture Section
   ======================================== */

.mainpage-lecture-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 40px;
}

.mainpage-lecture-item {
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mainpage-lecture-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.mainpage-lecture-thumbnail {
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: #f0f0f0;
}

.mainpage-lecture-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.mainpage-lecture-item:hover .mainpage-lecture-thumbnail img {
	transform: scale(1.05);
}

.mainpage-lecture-content {
	padding: 24px;
}

.mainpage-lecture-title {
	font-size: 1.25rem;
	font-weight: 500;
	margin: 0 0 12px 0;
	line-height: 1.4;
}

.mainpage-lecture-title a {
	color: #1a1a1a;
	text-decoration: none;
	transition: color 0.3s ease;
}

.mainpage-lecture-title a:hover {
	color: #666666;
}

.mainpage-lecture-meta {
	display: flex;
	gap: 12px;
	font-size: 0.875rem;
	color: #999999;
	margin-bottom: 12px;
}

.mainpage-lecture-date,
.mainpage-lecture-category {
	font-size: 0.875rem;
}

.mainpage-lecture-excerpt {
	font-size: 0.9375rem;
	line-height: 1.7;
	color: #666666;
	margin: 0;
}

/* ========================================
   Library Section
   ======================================== */

.mainpage-library-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 900px;
	margin: 0 auto;
}

.mainpage-library-item {
	display: flex;
	gap: 20px;
	align-items: center;
	background: #ffffff;
	padding: 20px;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mainpage-library-item:hover {
	transform: translateX(4px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.mainpage-library-icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8f9fa;
	border-radius: 8px;
	color: #1a1a1a;
}

.mainpage-library-content {
	flex: 1;
}

.mainpage-library-title {
	font-size: 1.125rem;
	font-weight: 500;
	margin: 0 0 8px 0;
}

.mainpage-library-title a {
	color: #1a1a1a;
	text-decoration: none;
	transition: color 0.3s ease;
}

.mainpage-library-title a:hover {
	color: #666666;
}

.mainpage-library-meta {
	display: flex;
	gap: 12px;
	font-size: 0.875rem;
	color: #999999;
}

.mainpage-library-date,
.mainpage-library-size,
.mainpage-library-category {
	font-size: 0.875rem;
}

/* ========================================
   Page & Shortcode Content
   ======================================== */

.mainpage-page-content,
.mainpage-shortcode-content {
	max-width: 900px;
	margin: 0 auto;
}

.mainpage-page-content p,
.mainpage-shortcode-content p {
	margin-bottom: 1.5em;
	line-height: 1.8;
}

.mainpage-page-content h2,
.mainpage-page-content h3,
.mainpage-shortcode-content h2,
.mainpage-shortcode-content h3 {
	margin-top: 2em;
	margin-bottom: 1em;
	font-weight: 500;
}

/* ========================================
   Event Section
   ======================================== */

.mainpage-event-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 800px;
	margin: 0 auto;
}

.mainpage-event-item {
	display: flex;
	gap: 24px;
	background: #ffffff;
	padding: 24px;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mainpage-event-item:hover {
	transform: translateX(4px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.mainpage-event-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 80px;
	padding: 12px;
	background: #f8f9fa;
	border-radius: 8px;
	flex-shrink: 0;
}

.mainpage-event-date-text {
	font-size: 1.25rem;
	font-weight: 500;
	color: #1a1a1a;
	line-height: 1.2;
}

.mainpage-event-time {
	font-size: 0.75rem;
	color: #666666;
	margin-top: 4px;
}

.mainpage-event-content {
	flex: 1;
}

.mainpage-event-title {
	font-size: 1.125rem;
	font-weight: 500;
	margin: 0 0 8px 0;
}

.mainpage-event-title a {
	color: #1a1a1a;
	text-decoration: none;
	transition: color 0.3s ease;
}

.mainpage-event-title a:hover {
	color: #666666;
}

.mainpage-event-excerpt {
	font-size: 0.9375rem;
	line-height: 1.7;
	color: #666666;
	margin: 0;
}

/* ========================================
   Gallery Section
   ======================================== */

.mainpage-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
}

.mainpage-gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	aspect-ratio: 4 / 3;
	background: #f0f0f0;
}

.mainpage-gallery-link {
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.mainpage-gallery-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.mainpage-gallery-item:hover .mainpage-gallery-link img {
	transform: scale(1.1);
}

/* ========================================
   Contact Section
   ======================================== */

.mainpage-contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 40px;
	max-width: 900px;
	margin: 0 auto;
}

.mainpage-contact-item {
	text-align: center;
}

.mainpage-contact-label {
	font-size: 1.125rem;
	font-weight: 500;
	color: #1a1a1a;
	margin: 0 0 12px 0;
}

.mainpage-contact-value {
	font-size: 1rem;
	color: #666666;
	margin: 0;
	line-height: 1.6;
}

.mainpage-contact-value a {
	color: #666666;
	text-decoration: none;
	transition: color 0.3s ease;
}

.mainpage-contact-value a:hover {
	color: #1a1a1a;
	text-decoration: underline;
}

/* ========================================
   Animation
   ======================================== */

.mainpage-section.fade-in {
	animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
	.mainpage-hero {
		min-height: 60vh;
		padding: 60px 20px;
	}

	.mainpage-hero-buttons {
		flex-direction: column;
		width: 100%;
	}

	.mainpage-btn {
		width: 100%;
		max-width: 300px;
	}

	.mainpage-section {
		padding: 60px 20px;
	}

	.mainpage-worship-grid,
	.mainpage-sermon-grid,
	.mainpage-broadcast-grid,
	.mainpage-lecture-grid,
	.mainpage-contact-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.mainpage-event-item {
		flex-direction: column;
		gap: 16px;
	}

	.mainpage-event-date {
		flex-direction: row;
		justify-content: flex-start;
		min-width: auto;
	}

	.mainpage-gallery-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 12px;
	}

	.mainpage-library-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.mainpage-library-icon {
		width: 40px;
		height: 40px;
	}

	.mainpage-notice-link {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.mainpage-notice-date {
		min-width: auto;
	}
}

@media (max-width: 480px) {
	.mainpage-hero-title {
		font-size: 2rem;
	}

	.mainpage-hero-subtitle {
		font-size: 1rem;
	}

	.mainpage-section-title {
		font-size: 1.75rem;
	}

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

/* ========================================
   App Download Section
   ======================================== */

.mainpage-app-download {
	padding: 60px 20px;
	text-align: center;
}

.mainpage-app-title {
	font-size: 2rem;
	font-weight: 600;
	margin-bottom: 12px;
	color: #1f2937;
}

.mainpage-app-subtitle {
	font-size: 1rem;
	color: #6b7280;
	margin-bottom: 32px;
}

.mainpage-app-download-buttons {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

.mainpage-app-download-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 16px 32px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	text-decoration: none;
	color: #1f2937;
	transition: all 0.2s ease;
	cursor: pointer;
	min-width: 160px;
}

.mainpage-app-download-btn:hover {
	border-color: #d1d5db;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mainpage-app-download-btn i {
	font-size: 32px;
}

.mainpage-app-btn-text {
	font-size: 1rem;
	font-weight: 500;
}

.mainpage-app-btn-desc {
	font-size: 0.875rem;
	color: #6b7280;
}

.mainpage-app-android i {
	color: #22c55e;
}

.mainpage-app-ios i {
	color: #1f2937;
}

.mainpage-app-guide {
	display: flex;
	justify-content: center;
	gap: 24px;
	flex-wrap: wrap;
	margin-top: 48px;
}

.mainpage-app-guide-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	min-width: 280px;
	max-width: 320px;
}

.mainpage-app-guide-icon {
	font-size: 24px;
	color: #6b7280;
	flex-shrink: 0;
}

.mainpage-app-guide-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-align: left;
}

.mainpage-app-guide-text strong {
	font-size: 0.875rem;
	font-weight: 600;
	color: #1f2937;
}

.mainpage-app-guide-text span {
	font-size: 0.8125rem;
	color: #6b7280;
	line-height: 1.4;
}

@media (max-width: 768px) {
	.mainpage-app-download {
		padding: 40px 20px;
	}

	.mainpage-app-download-buttons {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.mainpage-app-download-btn {
		width: 100%;
		min-width: auto;
	}

	.mainpage-app-guide {
		margin-top: 32px;
		gap: 12px;
	}

	.mainpage-app-guide-item {
		width: 100%;
		min-width: auto;
		max-width: 100%;
	}
}

