/* Shared Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f4f8;
    color: #333;
    line-height: 1.6;
}
header {
    background: url('/images/rink01.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 4rem 1rem;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}
header h1, header p {
    position: relative;
    z-index: 2;
    margin: 0.5rem 0;
}
header h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.resources {
    margin-bottom: 3rem;
}
.resources h2 {
    text-align: center;
    color: #003087;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    box-sizing: border-box;
}
.resource-card {
    background: white;
    border: none;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-sizing: border-box;
}
.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}
.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #003087, #c8102e);
}
.resource-card h3 {
    margin: 0.5rem 0;
    font-size: 1.3rem;
    color: #003087;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.resource-card h3 i {
    color: #ffcd00;
    font-size: 1.2rem;
}
.resource-card p {
    font-size: 0.95rem;
    color: #555;
}
.resource-card a {
    color: #c8102e;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    display: inline-block;
    margin-top: 0.5rem;
    transition: color 0.3s;
}
.resource-card a:hover {
    color: #a00;
}
footer {
    background: linear-gradient(to right, #003087, #c8102e);
    color: white;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* Index-specific styles */
#index main {
    min-height: calc(100vh - 200px);
}
#index .top-picks, #index .saves-section, #index .teams-section, #index .email-subscription {
    margin-bottom: 3rem;
}
#index .top-picks h2, #index .saves-section h2, #index .teams-section h2, #index .email-subscription h2 {
    text-align: center;
    color: #003087;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}
#index .top-picks-grid, #index .game-grid, #index .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    box-sizing: border-box;
}
#index .pick-card, #index .game-card, #index .team-card {
    background: white;
    border: none;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-sizing: border-box;
}
#index .pick-card:hover, #index .game-card:hover, #index .team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}
#index .pick-card::before, #index .game-card::before, #index .team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #003087, #c8102e);
}
#index .pick-card h3 {
    margin: 0.5rem 0;
    font-size: 1.3rem;
    color: #003087;
    display: block;
    text-align: center;
}
#index .pick-type {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #003087;
    margin-bottom: 0.3rem;
}
#index .game-card h3, #index .team-card h3 {
    margin: 0.5rem 0;
    font-size: 1.3rem;
    color: #003087;
}
#index .pick-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}
#index .pick-card img.player-photo {
    width: 70% !important;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    margin: 0.5rem auto;
    display: block;
}
#index .pick-card .teams {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    height: 60px;
    margin-bottom: 0.5rem;
}
#index .pick-card .teams img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}
#index .pick-card .teams span {
    font-size: 1.1rem;
    font-weight: bold;
    color: #003087;
}
#index .pick-card .time {
    min-height: 30px;
    font-size: 0.95rem;
    color: #555;
    margin: 0.5rem 0;
}
#index .pick-card .stats {
    font-size: 0.95rem;
    color: #555;
    margin: 0.3rem 0;
}
#index .pick-card .highlight {
    font-weight: bold;
    color: #c8102e;
    margin: 0.3rem 0;
    font-size: 0.95rem;
}
#index .pick-card .odds {
    font-weight: bold;
    color: #c8102e;
    margin: 0.3rem 0;
    font-size: 0.95rem;
}
#index .pick-card .links {
    min-height: 30px;
    margin-top: auto;
    font-size: 0.95rem;
}
#index .game-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}
#index .game-card .teams {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    height: 60px;
    margin-bottom: 0.5rem;
}
#index .game-card .teams img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}
#index .game-card img:not(.teams img) {
    width: 58px;
    height: 58px;
    object-fit: contain;
}
#index .game-card .teams span {
    font-size: 1.1rem;
    font-weight: bold;
    color: #003087;
}
#index .game-card .time {
    min-height: 30px;
    font-size: 0.95rem;
    color: #555;
    margin: 0.5rem 0;
}
#index .game-card .team-data {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0.5rem 0;
}
#index .game-card .team-name {
    font-weight: bold;
    color: #003087;
    margin: 0.3rem 0;
    font-size: 0.95rem;
}
#index .game-card .stats {
    font-size: 0.95rem;
    color: #555;
    margin: 0.3rem 0;
}
#index .game-card .highlight {
    font-weight: bold;
    color: #c8102e;
    margin: 0.3rem 0;
    font-size: 0.95rem;
}
#index .game-card .save-number {
    font-weight: bold;
    color: #c8102e;
    margin: 0.3rem 0;
    font-size: 1.8rem;
}
#index .game-card .links {
    min-height: 30px;
    margin-top: auto;
    font-size: 0.95rem;
}
#index .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
#index .team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
}
#index .team-card img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin: 0 auto;
}
#index .team-card h3 {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    text-align: center;
}
#index .team-card .links, #index .team-card .stats-links {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    white-space: nowrap;
    text-align: center;
}
#index .team-card .links a, #index .team-card .stats-links a {
    margin: 0 0.1rem;
}
#index .team-card .links span, #index .team-card .stats-links span {
    color: #333;
    margin: 0 0.1rem;
}
#index .email-subscription {
    background: white;
    border: none;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto 3rem;
}
#index .email-subscription::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #003087, #c8102e);
}
#index .email-subscription form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}
#index .email-subscription input[type="email"] {
    padding: 0.5rem;
    font-size: 1rem;
    border: 2px solid #003087;
    border-radius: 4px;
    width: 100%;
    max-width: 300px;
}
#index .email-subscription button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    color: white;
    background-color: #c8102e;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}
#index .email-subscription button:hover {
    background-color: #a00;
}
#index .email-subscription .thank-you {
    display: none;
    text-align: center;
    font-size: 1.2rem;
    color: #003087;
}
#index #loading-picks, #index #loading-saves, #index #loading-teams {
    text-align: center;
    margin: 1rem 0;
    font-style: italic;
    color: #666;
    display: none;
}

/* How-to-specific styles */
#how-to main {
    min-height: auto;
}
#how-to .how-to {
    margin-bottom: 3rem;
}
#how-to .how-to h2 {
    text-align: center;
    color: #003087;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}
#how-to .how-to h3 {
    font-size: 1.5rem;
    color: #003087;
    margin: 1.5rem 0 1rem;
}
#how-to .how-to p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1rem;
}
#how-to .how-to ul {
    list-style-type: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
}
#how-to .how-to ul li {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Media Queries */
@media only screen and (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    header p {
        font-size: 1rem;
    }
    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .resource-card {
        padding: 1rem;
        font-size: 0.9rem;
    }
    .resource-card h3 {
        font-size: 1.1rem;
    }
    .resource-card p {
        font-size: 0.85rem;
    }
    .resource-card a {
        font-size: 0.85rem;
    }
    #index .top-picks-grid, #index .game-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }
    #index .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }
    #index .resource-card, #index .pick-card, #index .game-card, #index .team-card {
        padding: 0.8rem;
    }
    #index .pick-card img.player-photo {
        width: 70% !important;
        max-width: 150px;
        height: auto;
        object-fit: contain;
    }
    #index .pick-card .teams img {
        width: 58px;
        height: 58px;
    }
    #index .game-card .teams img {
        width: 58px;
        height: 58px;
    }
    #index .game-card img:not(.teams img) {
        width: 40px;
        height: 40px;
    }
    #index .team-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }
    #index .team-card img {
        width: 58px;
        height: 58px;
        margin: 0 auto;
    }
    #index .team-card h3 {
        font-size: 0.9rem;
    }
    #index .team-card .links, #index .team-card .stats-links {
        font-size: 0.8rem;
    }
    #index .pick-card .teams, #index .game-card .teams {
        height: 60px;
    }
    #index .pick-card .teams span, #index .game-card .teams span {
        font-size: 0.9rem;
    }
    #index .pick-card .time, #index .game-card .time {
        min-height: 20px;
        font-size: 0.9rem;
    }
    #index .game-card .team-data {
        min-height: 80px;
    }
    #index .pick-card .stats, #index .game-card .stats {
        font-size: 0.85rem;
    }
    #index .pick-card .highlight, #index .game-card .highlight {
        font-size: 0.85rem;
    }
    #index .pick-card .odds, #index .game-card .odds {
        font-size: 0.85rem;
    }
    #index .pick-card .links, #index .game-card .links {
        min-height: 20px;
        font-size: 0.85rem;
    }
    #index .game-card .save-number {
        font-size: 1.8rem;
    }
    #index .email-subscription {
        padding: 1rem;
    }
    #index .email-subscription input[type="email"] {
        font-size: 0.9rem;
    }
    #index .email-subscription button {
        font-size: 0.9rem;
    }
}
@media only screen and (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    .resource-grid {
        grid-template-columns: 1fr;
    }
    #index .top-picks-grid, #index .game-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    #index .team-grid {
        grid-template-columns: 1fr;
    }
    #index .pick-card, #index .game-card {
        min-height: 280px;
    }
    #index .email-subscription input[type="email"] {
        max-width: 100%;
    }
	}#shots-grid {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
		gap: 1rem;
		margin-top: 1rem;
	}

	#shots-grid .pick-card {
		flex: 1 0 20%;
		min-width: 200px;
	}