@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Source+Sans+3:wght@400;600&display=swap');

:root {
    --penn-red: #990000;
    --penn-blue: #011F5B;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-muted: #666666;
    --container-width: 1100px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    color: var(--penn-blue);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Global Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all var(--transition-speed);
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-penn-red {
    background-color: var(--penn-red);
    color: var(--white);
    border: 1px solid var(--penn-red);
}

.btn-penn-red:hover {
    background-color: var(--white);
    color: var(--penn-blue);
    border-color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--penn-blue);
}

/* Navigation */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--penn-blue);
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--penn-blue);
}

.nav-links a.active {
    color: var(--penn-red);
}

.nav-links a:hover {
    color: var(--penn-red);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--penn-blue);
    transition: var(--transition-speed);
}

/* Footer */
footer {
    background: var(--penn-blue);
    color: var(--white);
    padding: 80px 0 40px;
    font-size: 0.95rem;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-address {
    line-height: 1.8;
}

.footer-address a {
    color: var(--white);
    text-decoration: underline;
}

.footer-nav-col h2 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-family: 'Source Sans 3', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav-col ul li {
    margin-bottom: 12px;
}

.footer-nav-col ul li a {
    color: var(--white);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-nav-col ul li a:hover {
    opacity: 1;
}

.white-link-box {
    display: block;
    background: var(--penn-red);
    border: 1px solid var(--white);
    color: var(--white);
    padding: 10px 20px;
    margin-bottom: 10px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background 0.3s, color 0.3s;
}

.white-link-box:hover {
    background: var(--white);
    color: var(--penn-blue);
}

.footer-social-row {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social-row a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: background 0.3s;
}

.footer-social-row a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bottom-utility {
    text-align: right;
}

.bottom-utility p {
    margin-bottom: 10px;
}

.bottom-utility a {
    color: var(--white);
    opacity: 0.8;
}

.bottom-utility a:hover {
    opacity: 1;
}

.copyright-footer {
    margin-top: 30px;
    font-weight: 600;
    opacity: 1 !important;
}

/* Responsiveness */
@media (max-width: 992px) {
    .footer-cols {
        grid-template-columns: 1fr 1fr;
    }

    .bottom-utility {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .footer-cols {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 0;
    }
}

/* --- Prompt Library Specific Styles --- */

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    font-family: 'Playfair Display', serif;
}

.hero-stat-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Filter Bar */
.filter-bar {
    background: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    position: sticky;
    top: 80px;
    z-index: 900;
}

.filter-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.search-wrap {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-wrap svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    fill: var(--text-muted);
}

.search-wrap input {
    width: 100%;
    padding: 10px 10px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
}

.filter-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: var(--white);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
}

.filter-count {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: auto;
}

/* Active Filter Tags */
.active-filters {
    max-width: var(--container-width);
    margin: 15px auto 0;
    padding: 0 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.active-filter-tag {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--penn-blue);
    font-weight: 600;
}

.active-filter-tag button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--penn-red);
    padding: 0;
    line-height: 1;
}

/* Prompt Grid & Cards */
.prompts-section {
    padding: 40px 0 80px;
}

.prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.prompt-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
}

.prompt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.card-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--penn-red);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.card-title {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.card-tag {
    font-size: 0.75rem;
    background: #f8f8f8;
    padding: 4px 10px;
    border-radius: 4px;
    color: #666;
}

.card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-author {
    font-size: 0.8rem;
    color: #888;
}

.card-tools {
    display: flex;
    gap: 5px;
}

.tool-badge {
    font-size: 0.7rem;
    background: var(--penn-blue);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 3px;
}

.card-cta {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--penn-blue);
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-cta svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.2s;
}

.prompt-card:hover .card-cta svg {
    transform: translateX(3px);
}

/* Modal System */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(1, 31, 91, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 30px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 10;
}

.modal-category {
    color: var(--penn-red);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 30px;
}

.modal-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.modal-section-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--penn-blue);
    margin: 20px 0 10px;
    letter-spacing: 1px;
}

.prompt-text-box {
    background: #222;
    color: #eee;
    padding: 25px;
    border-radius: 6px;
    white-space: pre-wrap;
    word-break: break-all;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    max-height: 400px;
    overflow-y: auto;
}

.copy-btn {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--penn-blue);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #002d8a;
}

.copy-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.modal-analysis {
    background: #f0f7ff;
    padding: 20px;
    border-left: 4px solid var(--penn-blue);
    border-radius: 4px;
    font-style: italic;
    color: #444;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0;
    color: var(--text-muted);
}