/* Herding Dog Competitions - Site Styles
*/

/* Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --hdc-color-primary: #8b4513;
    --hdc-color-secondary: #a0522d;
    --hdc-color-accent: #d2691e;
    --hdc-color-text: #2d3748;
    --hdc-color-text-light: #4a5568;
    --hdc-color-bg: #ffffff;
    --hdc-color-bg-alt: #faf5f0;
    --hdc-color-border: #e2e8f0;
    --hdc-font-primary: 'Georgia', 'Times New Roman', serif;
    --hdc-font-secondary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --hdc-max-width: 1200px;
    --hdc-content-width: 800px;
}

.hdc-body {
    font-family: var(--hdc-font-primary);
    font-size: 18px;
    line-height: 1.7;
    color: var(--hdc-color-text);
    background-color: var(--hdc-color-bg);
}

/* Header */
.hdc-header {
    background-color: var(--hdc-color-primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.hdc-header-container {
    max-width: var(--hdc-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hdc-logo {
    text-decoration: none;
}

.hdc-logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.hdc-nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.hdc-nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-family: var(--hdc-font-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.hdc-nav-link:hover,
.hdc-nav-active {
    color: var(--hdc-color-accent);
}

.hdc-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hdc-mobile-bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
}

/* Main Content */
.hdc-main {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hdc-hero {
    background: linear-gradient(135deg, var(--hdc-color-primary) 0%, var(--hdc-color-secondary) 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: #ffffff;
}

.hdc-hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: normal;
}

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

/* Content Sections */
.hdc-content-section {
    max-width: var(--hdc-content-width);
    margin: 0 auto;
    padding: 3rem 2rem;
}

.hdc-content-section h2 {
    font-size: 1.8rem;
    color: var(--hdc-color-primary);
    margin: 2rem 0 1rem;
}

.hdc-content-section h3 {
    font-size: 1.4rem;
    color: var(--hdc-color-secondary);
    margin: 1.5rem 0 0.75rem;
}

.hdc-content-section p {
    margin-bottom: 1.25rem;
}

.hdc-content-section ul,
.hdc-content-section ol {
    margin: 1rem 0 1.5rem 2rem;
}

.hdc-content-section li {
    margin-bottom: 0.5rem;
}

/* Featured Section */
.hdc-featured-section {
    background-color: var(--hdc-color-bg-alt);
    padding: 3rem 2rem;
}

.hdc-section-title {
    font-size: 1.8rem;
    text-align: center;
    color: var(--hdc-color-primary);
    margin-bottom: 2rem;
}

.hdc-featured-grid {
    max-width: var(--hdc-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.hdc-featured-item {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--hdc-color-border);
}

.hdc-featured-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.hdc-featured-link {
    color: var(--hdc-color-primary);
    text-decoration: none;
}

.hdc-featured-link:hover {
    color: var(--hdc-color-secondary);
}

.hdc-featured-date {
    font-family: var(--hdc-font-secondary);
    font-size: 0.85rem;
    color: var(--hdc-color-text-light);
}

.hdc-featured-excerpt {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: var(--hdc-color-text-light);
}

.hdc-section-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Buttons */
.hdc-btn {
    display: inline-block;
    background-color: var(--hdc-color-primary);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-family: var(--hdc-font-secondary);
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.hdc-btn:hover {
    background-color: var(--hdc-color-secondary);
}

.hdc-btn-secondary {
    display: inline-block;
    border: 2px solid var(--hdc-color-primary);
    color: var(--hdc-color-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-family: var(--hdc-font-secondary);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.hdc-btn-secondary:hover {
    background-color: var(--hdc-color-primary);
    color: #ffffff;
}

/* About Preview */
.hdc-about-preview {
    max-width: var(--hdc-content-width);
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}

.hdc-about-content {
    margin-top: 1.5rem;
}

.hdc-about-content p {
    margin-bottom: 1.5rem;
}

/* Article Styles */
.hdc-article {
    max-width: var(--hdc-content-width);
    margin: 0 auto;
    padding: 3rem 2rem;
}

.hdc-article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--hdc-color-border);
}

.hdc-article-title {
    font-size: 2.2rem;
    color: var(--hdc-color-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.hdc-article-date {
    font-family: var(--hdc-font-secondary);
    font-size: 0.9rem;
    color: var(--hdc-color-text-light);
}

.hdc-article-author {
    font-family: var(--hdc-font-secondary);
    font-size: 0.9rem;
    color: var(--hdc-color-text-light);
    margin-left: 1rem;
}

.hdc-article-content h2 {
    font-size: 1.6rem;
    color: var(--hdc-color-primary);
    margin: 2.5rem 0 1rem;
}

.hdc-article-content h3 {
    font-size: 1.3rem;
    color: var(--hdc-color-secondary);
    margin: 2rem 0 0.75rem;
}

.hdc-article-content p {
    margin-bottom: 1.25rem;
}

.hdc-article-content ul,
.hdc-article-content ol {
    margin: 1rem 0 1.5rem 2rem;
}

.hdc-article-content li {
    margin-bottom: 0.5rem;
}

.hdc-article-content strong {
    color: var(--hdc-color-primary);
}

.hdc-article-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--hdc-color-border);
}

.hdc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.hdc-tags-label {
    font-family: var(--hdc-font-secondary);
    font-size: 0.9rem;
    color: var(--hdc-color-text-light);
    margin-right: 0.5rem;
}

.hdc-tag {
    background-color: var(--hdc-color-bg-alt);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-family: var(--hdc-font-secondary);
    font-size: 0.85rem;
    color: var(--hdc-color-text-light);
}

/* List Styles */
.hdc-list-section {
    max-width: var(--hdc-content-width);
    margin: 0 auto;
    padding: 3rem 2rem;
}

.hdc-list-header {
    margin-bottom: 2rem;
}

.hdc-list-title {
    font-size: 2.2rem;
    color: var(--hdc-color-primary);
    margin-bottom: 0.75rem;
}

.hdc-list-description {
    color: var(--hdc-color-text-light);
}

.hdc-list-items {
    margin-top: 2rem;
}

.hdc-list-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--hdc-color-border);
}

.hdc-list-item:first-child {
    border-top: 1px solid var(--hdc-color-border);
}

.hdc-list-item-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.hdc-list-item-link {
    color: var(--hdc-color-primary);
    text-decoration: none;
}

.hdc-list-item-link:hover {
    color: var(--hdc-color-secondary);
}

.hdc-list-item-date {
    font-family: var(--hdc-font-secondary);
    font-size: 0.85rem;
    color: var(--hdc-color-text-light);
}

.hdc-list-item-excerpt {
    margin-top: 0.75rem;
    color: var(--hdc-color-text-light);
}

.hdc-read-more {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--hdc-color-secondary);
    font-family: var(--hdc-font-secondary);
    font-size: 0.9rem;
    text-decoration: none;
}

.hdc-read-more:hover {
    color: var(--hdc-color-primary);
}

/* Breadcrumb */
.hdc-breadcrumb {
    max-width: var(--hdc-content-width);
    margin: 0 auto;
    padding: 1rem 2rem;
}

.hdc-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    font-family: var(--hdc-font-secondary);
    font-size: 0.9rem;
}

.hdc-breadcrumb li {
    display: flex;
    align-items: center;
}

.hdc-breadcrumb li:not(:last-child)::after {
    content: "/";
    margin: 0 0.5rem;
    color: var(--hdc-color-text-light);
}

.hdc-breadcrumb a {
    color: var(--hdc-color-secondary);
    text-decoration: none;
}

.hdc-breadcrumb a:hover {
    color: var(--hdc-color-primary);
}

.hdc-breadcrumb li[aria-current="page"] {
    color: var(--hdc-color-text-light);
}

/* Footer */
.hdc-footer {
    background-color: var(--hdc-color-primary);
    color: rgba(255, 255, 255, 0.9);
    padding: 3rem 0 1.5rem;
}

.hdc-footer-container {
    max-width: var(--hdc-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.hdc-footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hdc-footer-logo {
    font-size: 1.3rem;
    font-weight: bold;
}

.hdc-footer-tagline {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.hdc-footer-heading {
    font-family: var(--hdc-font-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.hdc-footer-links {
    list-style: none;
}

.hdc-footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 2;
}

.hdc-footer-link:hover {
    color: var(--hdc-color-accent);
}

.hdc-footer-author-name {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.hdc-footer-author-credentials {
    font-size: 0.85rem;
    opacity: 0.8;
}

.hdc-footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
}

.hdc-copyright {
    font-family: var(--hdc-font-secondary);
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .hdc-nav-list {
        display: none;
    }

    .hdc-mobile-toggle {
        display: flex;
    }

    .hdc-hero-title {
        font-size: 1.8rem;
    }

    .hdc-hero-subtitle {
        font-size: 1rem;
    }

    .hdc-footer-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hdc-article-title,
    .hdc-list-title {
        font-size: 1.8rem;
    }

    .hdc-content-section,
    .hdc-article,
    .hdc-list-section {
        padding: 2rem 1.5rem;
    }
}
