/* Components */

/* Ad Slots */
.gp-ad-slot {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    text-align: center;
    margin: var(--gp-spacing-lg) auto;
    padding: var(--gp-spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gp-ad-728x90 { min-height: 90px; max-width: 728px; }
.gp-ad-970x250 { min-height: 250px; max-width: 970px; }
.gp-ad-responsive { min-height: 90px; }
.gp-ad-300x250 { min-height: 250px; max-width: 300px; }
.gp-ad-300x600 { min-height: 600px; max-width: 300px; }
.gp-ad-native { min-height: 120px; }
.gp-ad-336x280 { min-height: 280px; max-width: 336px; }
.gp-ad-320x50 { min-height: 50px; max-width: 320px; }

/* Sticky Mobile Anchor */
.gp-ad-sticky_mobile_anchor {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9998;
    display: none;
}

@media (max-width: 768px) {
    .gp-ad-sticky_mobile_anchor {
        display: block;
    }
}

/* Sidebar */
.gp-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.gp-sidebar .widget {
    margin-bottom: var(--gp-spacing-lg);
    padding: var(--gp-spacing-md);
    background: var(--gp-background);
    border: 1px solid var(--gp-border);
    border-radius: 8px;
}

.gp-sidebar .widget-title {
    font-size: 18px;
    margin-bottom: var(--gp-spacing-md);
    padding-bottom: var(--gp-spacing-sm);
    border-bottom: 2px solid var(--gp-primary);
}

/* Pagination */
.nav-links {
    display: flex;
    justify-content: center;
    gap: var(--gp-spacing-sm);
    margin: var(--gp-spacing-xl) 0;
}

.page-numbers {
    padding: var(--gp-spacing-sm) var(--gp-spacing-md);
    border: 1px solid var(--gp-border);
    border-radius: 4px;
    color: var(--gp-foreground);
}

.page-numbers.current {
    background: var(--gp-primary);
    color: #fff;
    border-color: var(--gp-primary);
}

/* 404 Page */
.gp-404-page {
    text-align: center;
    padding: var(--gp-spacing-2xl) 0;
}

.gp-404-title {
    font-size: 120px;
    color: var(--gp-primary);
    line-height: 1;
    margin-bottom: var(--gp-spacing-md);
}

.gp-404-content h2 {
    font-size: 32px;
    margin-bottom: var(--gp-spacing-md);
}

.gp-404-search {
    max-width: 500px;
    margin: var(--gp-spacing-xl) auto;
}

.gp-404-trending {
    margin-top: var(--gp-spacing-2xl);
    text-align: left;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="search"],
textarea {
    width: 100%;
    padding: var(--gp-spacing-sm) var(--gp-spacing-md);
    border: 1px solid var(--gp-border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
}

input[type="search"] {
    padding-right: 40px;
}

button,
input[type="submit"] {
    background: var(--gp-primary);
    color: #fff;
    border: none;
    padding: var(--gp-spacing-sm) var(--gp-spacing-lg);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

button:hover,
input[type="submit"]:hover {
    background: #1e40af;
}

/* Comments */
.comments-area {
    margin-top: var(--gp-spacing-2xl);
    padding-top: var(--gp-spacing-xl);
    border-top: 2px solid var(--gp-border);
}

.comment-list {
    list-style: none;
}

.comment {
    padding: var(--gp-spacing-md);
    border-bottom: 1px solid var(--gp-border);
}

.comment-author {
    font-weight: 600;
    margin-bottom: var(--gp-spacing-xs);
}

.comment-metadata {
    font-size: 14px;
    color: var(--gp-text-light);
    margin-bottom: var(--gp-spacing-sm);
}