/* Templates CSS */

/* Overrides for landing.css to support new pages */

.hero-small {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.hero-small h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.hero-small p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 5%;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Container */
.container {
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Grids */
.template-format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.format-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e5e7eb;
}

.format-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.format-card h2 {
    font-size: 2rem;
    color: #111827;
    margin-bottom: 5px;
}

.format-card .btn-text {
    display: inline-block;
    margin-top: 15px;
    color: #2563eb;
    font-weight: 600;
}

/* Playbook Collection Grid */
.playbook-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.playbook-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border-left: 5px solid #2563eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: #374151;
    display: block;
    transition: background 0.2s;
}

.playbook-card:hover {
    background: #f9fafb;
}

.pb-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.pb-card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #111827;
}

.badge {
    background: #e0e7ff;
    color: #3730a3;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Plays Masonry */
.plays-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.play-card-static {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.play-card-static:hover {
    transform: scale(1.02);
}

.play-preview {
    background: #f9fafb;
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.play-info {
    padding: 0.5rem;
    background: #64748b;
    color: white;
}

.play-info h3 {
    margin: 0;
    font-size: 1rem;
    color: inherit;
}

/* Detail Layout */
.detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

.large-preview-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.detail-sidebar h1 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.2;
}

.description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 30px;
}

.cta-box {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.btn-block {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
    box-sizing: border-box;
}

.small-text {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 20px;
}

.btn-outline-block {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
}

.btn-outline-block:hover {
    background: #f3f4f6;
}

/* SEO Content Section */
.seo-content {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 60px 5%;
}

.seo-content-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.seo-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
    line-height: 1.3;
}

.seo-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 32px;
    margin-bottom: 12px;
}

.seo-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 16px;
}

/* Collection Header */
.collection-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.collection-header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    font-weight: 800;
}

.collection-header p {
    opacity: 0.9;
}

/* Official/Branded Playbook Headers */
.collection-header.official {
    background: linear-gradient(180deg, #ffffff 0%, #f0f4f8 100%);
    padding: 50px 20px;
    color: #111827;
    border-bottom: 3px solid #013369;
}

.collection-header.official h1 {
    color: #013369;
}

.collection-header.official p {
    color: #374151;
    opacity: 1;
}

.collection-logo {
    max-height: 100px;
    margin-bottom: 24px;
}

/* Official Playbook Cards */
.playbook-card.official-card {
    position: relative;
    border: 2px solid #013369;
}

.card-logo-badge {
    height: 36px;
    width: auto;
    margin-bottom: 12px;
    display: block;
}

/* Collection Content Section */
.collection-content {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 60px 5%;
}

.official-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.official-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    margin-top: 0;
}

.official-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 32px;
    margin-bottom: 12px;
}

.official-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 16px;
}

.official-content ul {
    margin: 0 0 16px 0;
    padding-left: 20px;
}

.official-content ul li {
    font-size: 1rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 8px;
}

.formation-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.formation-list li {
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.source-note {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.source-note a {
    color: #2563eb;
    text-decoration: none;
}

.source-note a:hover {
    text-decoration: underline;
}