/*
Theme Name: pintAffOB
Theme URI: https://yoursite.com
Author: Your Name
Author URI: https://yoursite.com
Description: A Pinterest-inspired WordPress theme that automatically imports pins from your Pinterest account
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pintaffob
*/

:root {
    --primary-color: #C17B3A;
    --secondary-color: #E8B88A;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* Header Styles */
.site-header {
    background: var(--white);
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-logo {
    width: 40px;
    height: 40px;
}

.main-nav {
    display: flex;
    gap: 10px;
    margin-right: auto;
}

.nav-button {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--text-dark);
    font-size: 16px;
    cursor: pointer;
    border-radius: 24px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.nav-button.active {
    background: var(--text-dark);
    color: var(--white);
}

.nav-button:hover {
    background: var(--bg-light);
}

.nav-button.active:hover {
    background: var(--text-dark);
}

.search-form {
    flex: 1;
    max-width: 600px;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: none;
    background: var(--bg-light);
    border-radius: 24px;
    font-size: 16px;
}

/* Main Content */
.site-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 30px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-date {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 10px;
}

.page-title {
    font-size: 36px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Board/Pin Grid */
.pin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.pin-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.pin-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.pin-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 40px 20px 20px;
    color: var(--white);
}

.pin-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.pin-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

/* Single Pin Page */
.single-pin {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pin-content {
    padding: 40px;
}

.pin-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.pin-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bg-light);
}

.pin-actions {
    display: flex;
    gap: 10px;
}

.action-button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: var(--white);
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.pin-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-dark);
}

/* Comments Section */
.comments-section {
    padding: 40px;
    border-top: 1px solid var(--bg-light);
}

.comments-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.no-comments {
    color: var(--text-light);
    font-style: italic;
}

.comment-form {
    margin-top: 20px;
}

.comment-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
}

/* Related Posts */
.related-posts {
    padding: 40px;
    background: var(--bg-light);
}

.related-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 60px 30px;
    background: var(--white);
    margin-top: 60px;
}

.footer-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    background: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-icon svg {
    fill: var(--white);
}

.footer-message {
    font-size: 14px;
    color: var(--text-light);
}

.footer-message strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.footer-navigation {
    background-color: var(--bg-light);
    text-align: center;
}

.footer-navigation .footer-nav .footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-navigation .footer-nav .footer-menu a {
    text-decoration: none;
    color: var(--text-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .pin-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .header-container {
        flex-wrap: wrap;
    }

    .search-form {
        order: 3;
        width: 100%;
    }

    .page-title {
        font-size: 28px;
    }
}