/* Common Styles for Tide Alert Expert Guides */

/* Global Reset & Typography */
* {
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	line-height: 1.7;
	color: #2d3748;
	background: linear-gradient(135deg, #1988a6 0%, #012c38 100%);
	margin: 0;
	padding: 20px;
}

/* Container Layout */
.container {
	max-width: 980px;
	margin: 0 auto;
	margin-top: 40px !important;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 40px rgba(0, 59, 76, 0.3);
	overflow: hidden;
}

.header-section {
	background: linear-gradient(135deg, #04495d 0%, #95bdd3 100%);
	color: white;
	padding: 20px;
	text-align: center;
}

.header-content {
	display: flex;
	flex-direction: column;
	align-items: start;
	justify-content: start;
	padding-left: 20px;
	gap: 0px;
}

.content-section {
	padding: 40px;
}

/* Typography Hierarchy */
h1 {
	font-size: 2.2rem;
	margin: 0 0 0 0;
	font-weight: 700;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
	color: #003b4c;
	font-size: 1.8rem;
	margin: 60px 0 10px 0;
	font-weight: 500;
	position: relative;
	padding-bottom: 10px;
}

h2::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 60px;
	height: 3px;
	background: linear-gradient(90deg, #003b4c, #52acec);
	border-radius: 2px;
}

h3 {
	color: #003b4c;
	font-size: 1.3rem;
	margin: 50px 0 15px 0;
	font-weight: 600;
}

h4 {
	color: #2d3748;
	font-size: 1.1rem;
	margin: 10px 0 10px 0;
	font-weight: 600;
}

p {
	margin-bottom: 16px;
	font-size: 1.05rem;
}

/* Navigation Elements */
.back-link {
	display: inline-flex;
	align-items: center;
	padding: 12px 20px;
	background: rgba(0, 59, 76, 0.1);
	color: #003b4c;
	text-decoration: none;
	border-radius: 25px;
	font-weight: 500;
	transition: all 0.3s ease;
	margin-bottom: 30px;
}

.back-link-light {
	display: inline-flex;
	align-items: center;
	background: rgba(0, 59, 76, 0.1);
	text-decoration: none;
	border-radius: 25px;
	font-weight: 500;
	transition: all 0.3s ease;
	margin-bottom: 10px;
	color: #eee;
}

.back-link:hover {
	background: rgba(0, 59, 76, 0.2);
	color: #198fd3;
	transform: translateX(-3px);
}

/* Content Boxes */
.intro {
	font-size: 1.2rem;
	background: linear-gradient(135deg, #f7fafc 0%, #c7effa 15%);
	padding: 25px;
	border-radius: 12px;
	margin: 20px 0;
	border-left: 5px solid #003b4c;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.science-box,
.planning-box {
	background: linear-gradient(135deg, #a4e4f6 20%, #cce7ff 100%);
	border-left: 5px solid #003b4c;
	padding: 20px;
	margin: 25px 0;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.fact-box,
.tip-box {
	background: linear-gradient(135deg, #fff7e0 0%, #ffe8a3 100%);
	border-left: 5px solid #ffb347;
	padding: 20px;
	margin: 25px 0;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(255, 179, 71, 0.2);
	color: #003b4c;
}

.comparison-box,
.activity-box {
	background: linear-gradient(135deg, #f8fdff 0%, #e8f6fc 100%);
	border: 2px solid #c7e9f7;
	border-radius: 12px;
	padding: 25px;
	margin: 25px 0;
	box-shadow: 0 4px 6px rgba(164, 228, 246, 0.2);
}

/* Grid Layouts */
.comparison-grid,
.activity-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	margin: 30px 0;
}

.comparison-card,
.activity-card {
	background: linear-gradient(135deg, #fefefe 0%, #f8fdff 100%);
	border-radius: 12px;
	padding: 20px;
	border-left: 5px solid #2c5aa0;
	border: 1px solid #e8f4fd;
	box-shadow: 0 4px 12px rgba(164, 228, 246, 0.2);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comparison-card:hover,
.activity-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(164, 228, 246, 0.4);
	border-left-color: #ffdd55;
	background: linear-gradient(135deg, #f8fdff 0%, #eef9fe 100%);
}

.comparison-card h4,
.activity-card h4 {
	color: #003b4c;
	margin-top: 0;
}

.comparison-card p,
.activity-card p {
	font-size: 0.9rem;
}

/* Tables */
table {
	width: 100%;
	border-collapse: collapse;
	margin: 25px 0;
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

th {
	background: linear-gradient(135deg, #5ba3c3 0%, #67bee3 100%);
	color: white;
	font-weight: 600;
	padding: 15px 12px;
	text-align: left;
}

td {
	padding: 12px;
	border-bottom: 1px solid #e2e8f0;
}

tr:nth-child(even) {
	background-color: #f8f9fa;
}

tr:hover {
	background-color: #e6f3ff;
}

/* Lists */
ul,
ol {
	margin: 16px 0;
	padding-left: 24px;
}

ul li,
ol li {
	margin-bottom: 8px;
	line-height: 1.6;
}

/* Special Text Elements */
.force-type,
.timing-type {
	font-weight: 700;
	color: #2c5aa0;
	background: rgba(44, 90, 160, 0.1);
	padding: 2px 6px;
	border-radius: 4px;
}

.wave-type,
.activity-type {
	font-weight: 700;
	color: #d63031;
	background: rgba(214, 48, 49, 0.1);
	padding: 2px 6px;
	border-radius: 4px;
}

/* App Store Section */
.app-store-section {
	text-align: center;
	padding: 40px;
	background: linear-gradient(135deg, #f8feff 0%, #e8f8fd 100%);
	border-radius: 16px;
	margin: 40px 0;
	border: 3px solid #a4e4f6;
	box-shadow: 0 4px 15px rgba(164, 228, 246, 0.3);
}

.app-store-button {
	display: inline-block;
	transition: transform 0.3s ease;
}

.app-store-button:hover {
	transform: scale(1.05);
}

/* Links */
a {
	color: #198fd3;
}

/* Responsive Design */
@media (max-width: 768px) {
	body {
		padding: 10px;
	}

	.header-section {
		padding: 30px 20px;
	}

	.content-section {
		padding: 20px;
	}

	.comparison-grid,
	.activity-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	table {
		font-size: 0.9rem;
	}

	th,
	td {
		padding: 10px 8px;
	}

	h1 {
		font-size: 1.8rem;
	}

	h2 {
		font-size: 1.5rem;
	}

	h3 {
		font-size: 1.2rem;
	}
}

/* Smooth Scrolling */
html {
	scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.back-link:focus,
.app-store-button:focus {
	outline: 3px solid rgba(44, 90, 160, 0.5);
	outline-offset: 2px;
}

/* Additional responsive adjustments for smaller screens */
@media (max-width: 480px) {
	.intro {
		font-size: 1.1rem;
		padding: 20px;
	}
	
	.comparison-card,
	.activity-card {
		padding: 15px;
	}
	
	.science-box,
	.planning-box,
	.fact-box,
	.tip-box,
	.comparison-box,
	.activity-box {
		padding: 15px;
	}
}