/**
 * WPinterest Frontend Styles
 * Pinterest-style visual photo board for WordPress
 */

/* Grid Container */
.wpinterest-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.wpinterest-grid {
    opacity: 0;
    transition: opacity 0.3s;
}

.wpinterest-grid.loaded {
    opacity: 1;
}

/* Pin Cards */
.wpinterest-pin-card {
    width: calc(33.333% - 20px);
    margin-bottom: 30px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.wpinterest-pin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.wpinterest-pin-image {
    position: relative;
    overflow: hidden;
}

.wpinterest-pin-image img {
    width: 100%;
    height: auto;
    display: block;
}

.wpinterest-pin-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 20px 15px 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.wpinterest-pin-card:hover .wpinterest-pin-overlay {
    opacity: 1;
}

.wpinterest-pin-title {
    color: #fff;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.wpinterest-pin-content {
    padding: 15px;
}

.wpinterest-pin-excerpt {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.wpinterest-pin-boards {
    margin-bottom: 15px;
}

.wpinterest-board-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.wpinterest-board-tag:hover {
    background: #e60023;
    color: #fff;
}

.wpinterest-pin-credits {
    font-size: 12px;
    color: #777;
    margin-bottom: 15px;
}

.wpinterest-pin-credits span {
    display: block;
    margin-bottom: 5px;
}

.wpinterest-pin-actions {
    text-align: center;
}

.wpinterest-view-source {
    display: inline-block;
    background: #e60023;
    color: #fff;
    padding: 10px 20px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.wpinterest-view-source:hover {
    background: #c40018;
    color: #fff;
}

/* Load More Button */
.wpinterest-load-more-container {
    text-align: center;
    margin-top: 40px;
}

.wpinterest-load-more {
    background: #e60023;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.wpinterest-load-more:hover {
    background: #c40018;
}

.wpinterest-load-more:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Single Pin Page Styles */
.wpinterest-single-pin {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.wpinterest-single-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #111;
}

.wpinterest-single-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.wpinterest-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Notion-style colored tags for boards */
.wpinterest-single-boards {
    margin-bottom: 30px;
}

.wpinterest-single-boards h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.wpinterest-notion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wpinterest-notion-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
}

.wpinterest-notion-tag:hover {
    opacity: 0.8;
}

/* Notion color palette */
.wpinterest-notion-tag.notion-red {
    background: rgba(255, 226, 221, 0.8);
    color: #93271C;
}

.wpinterest-notion-tag.notion-blue {
    background: rgba(211, 229, 239, 0.8);
    color: #0B5F8C;
}

.wpinterest-notion-tag.notion-green {
    background: rgba(219, 237, 219, 0.8);
    color: #2B6E3E;
}

.wpinterest-notion-tag.notion-yellow {
    background: rgba(251, 236, 206, 0.8);
    color: #8D5B0B;
}

.wpinterest-notion-tag.notion-purple {
    background: rgba(232, 222, 238, 0.8);
    color: #5E3A81;
}

.wpinterest-notion-tag.notion-pink {
    background: rgba(245, 224, 233, 0.8);
    color: #93275C;
}

.wpinterest-notion-tag.notion-orange {
    background: rgba(250, 222, 201, 0.8);
    color: #93441C;
}

.wpinterest-notion-tag.notion-gray {
    background: rgba(227, 226, 224, 0.8);
    color: #5A5A5A;
}

/* Regular tags styling */
.wpinterest-single-tags {
    margin-bottom: 30px;
}

.wpinterest-single-tags h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.wpinterest-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wpinterest-tag {
    display: inline-block;
    padding: 5px 12px;
    background: #f5f5f5;
    color: #555;
    border-radius: 16px;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.wpinterest-tag:hover {
    background: #333;
    color: #fff;
}

.wpinterest-single-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.wpinterest-single-credits {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 30px;
}

.wpinterest-single-credits p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
}

.wpinterest-single-credits p:last-child {
    margin-bottom: 0;
}

.wpinterest-single-credits strong {
    color: #333;
}

.wpinterest-single-actions {
    text-align: center;
}

.wpinterest-view-source-btn {
    display: inline-block;
    background: #e60023;
    color: #fff;
    padding: 14px 32px;
    border-radius: 28px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s;
}

.wpinterest-view-source-btn:hover {
    background: #c40018;
    color: #fff;
}

/* Admin Bar Icon */
.ab-item .ab-icon.dashicons-location:before {
    padding-top: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wpinterest-pin-card {
        width: calc(50% - 15px);
    }
    
    .wpinterest-single-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .wpinterest-pin-card {
        width: 100%;
    }
    
    .wpinterest-single-title {
        font-size: 24px;
    }
}