/* adrianpk.com - Static styles based on Clio SSG */

/* ============================================
   BASE STYLES
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #fdfdfd;
    color: #333;
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

h1 {
    font-weight: 700;
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
    padding: 1rem 2rem;
    border-bottom: 1px solid #eee;
}

nav .site-container {
    display: flex;
    align-items: center;
}

nav a {
    margin-right: 1rem;
    text-decoration: none;
    color: #333;
    font-weight: 700;
}

nav a:hover {
    color: #2563eb;
}

nav a.active {
    color: #2563eb;
}

/* ============================================
   HERO STYLES
   ============================================ */

.hero-wrapper {
    position: relative;
    width: 100%;
}

.hero-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Boxed Style - Frosted Glass */
.hero-wrapper.boxed .hero-title-box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1.5rem 0;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-wrapper.boxed .hero-title {
    color: #fff;
    margin: 0;
    text-align: center;
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-wrapper.boxed .hero-subtitle {
    color: #fff;
    margin: 0.5rem 0 0 0;
    text-align: center;
    font-size: 1.125rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ============================================
   PROSE/CONTENT STYLES
   ============================================ */

.prose h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1f2937;
}

.prose h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.prose h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #374151;
}

.prose h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #4b5563;
}

.prose p {
    font-size: 1.125rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.prose ul {
    list-style-type: disc;
    list-style-position: outside;
    margin: 1rem 0 1.5rem 1.5rem;
}

.prose ol {
    list-style-type: decimal;
    list-style-position: outside;
    margin: 1rem 0 1.5rem 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.prose blockquote {
    border-left: 4px solid #d1d5db;
    padding-left: 1.5rem;
    font-style: italic;
    color: #4b5563;
    margin: 1.5rem 0;
}

.prose hr {
    border: none;
    border-top: 2px solid #d1d5db;
    margin: 2rem 0;
}

.prose code {
    background-color: #e5e7eb;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

.prose pre {
    background-color: #1f2937;
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.prose pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

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

.prose a:hover {
    color: #1d4ed8;
}

.prose img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ============================================
   LIST/CARDS GRID (INDEX PAGE)
   ============================================ */

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
}

@media (min-width: 768px) {
    .list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .list-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.list-card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.list-card:hover {
    transform: translateY(-0.25rem);
}

.list-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.list-card-image {
    height: 10rem;
    width: 100%;
    object-fit: cover;
}

.list-card-image-placeholder {
    height: 10rem;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.list-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.list-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
}

.list-card-excerpt {
    font-size: 0.95rem;
    color: #4b5563;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.list-card-meta {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: auto;
}

.list-card-meta svg {
    height: 1rem;
    width: 1rem;
    margin-right: 0.25rem;
}

.list-card-section {
    margin-left: 1rem;
    background-color: #e5e7eb;
    color: #4b5563;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

/* ============================================
   ARTICLE META
   ============================================ */

.article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: #e5e7eb;
    color: #4b5563;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    margin-top: 4rem;
    padding: 2rem;
    border-top: 1px solid #eee;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

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

footer .generator {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

footer .generator a {
    color: #9ca3af;
    text-decoration: none;
}

footer .generator a:hover {
    color: #6b7280;
}

/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1f2937;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    flex: 1;
}

.cookie-banner a {
    color: #60a5fa;
}

.cookie-banner button {
    background-color: #2563eb;
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.cookie-banner button:hover {
    background-color: #1d4ed8;
}

@media (max-width: 640px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}
