/* YK Graphics Store - Frontend Styles */

/* Gallery Grid */
.ykgs-gallery {
    display: grid;
    gap: 24px;
    margin: 30px 0;
}

.ykgs-columns-2 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.ykgs-columns-3 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.ykgs-columns-4 {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.ykgs-gallery-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ykgs-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.ykgs-gallery-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ykgs-gallery-image {
    position: relative;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
}

.ykgs-gallery-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ykgs-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ykgs-gallery-item:hover .ykgs-gallery-overlay {
    opacity: 1;
}

.ykgs-view-details {
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 4px;
}

.ykgs-gallery-info {
    padding: 16px;
}

.ykgs-gallery-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.ykgs-gallery-price {
    font-size: 18px;
    font-weight: bold;
    color: #2271b1;
}

/* Single Product */
.ykgs-single-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .ykgs-single-product {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.ykgs-preview-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.ykgs-preview-image img {
    width: 100%;
    height: auto;
    display: block;
}

.ykgs-product-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ykgs-price {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ykgs-price-label {
    font-size: 16px;
    color: #666;
}

.ykgs-price-amount {
    font-size: 32px;
    font-weight: bold;
    color: #2271b1;
}

.ykgs-product-meta {
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.ykgs-product-meta p {
    margin: 8px 0;
}

.ykgs-buy-button {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: bold;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.ykgs-buy-button:hover {
    background: #135e96;
}

.ykgs-license-info {
    padding: 20px;
    background: #e7f3ff;
    border-radius: 8px;
}

.ykgs-license-info h4 {
    margin-top: 0;
    color: #2271b1;
}

.ykgs-license-info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.ykgs-license-info li {
    margin: 8px 0;
    color: #333;
}

/* Modal */
.ykgs-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    overflow: auto;
}

.ykgs-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    position: relative;
}

.ykgs-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.ykgs-close:hover {
    color: #000;
}

.ykgs-form-field {
    margin: 20px 0;
}

.ykgs-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.ykgs-form-field input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.ykgs-field-description {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

.ykgs-proceed-payment {
    width: 100%;
    padding: 14px;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ykgs-proceed-payment:hover {
    background: #135e96;
}

/* Categories */
.ykgs-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.ykgs-category-item {
    display: inline-block;
    padding: 8px 16px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    transition: background 0.3s ease;
}

.ykgs-category-item:hover {
    background: #2271b1;
    color: white;
}

.ykgs-category-count {
    margin-left: 6px;
    opacity: 0.7;
}

/* No Graphics Message */
.ykgs-no-graphics {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .ykgs-gallery {
        gap: 16px;
    }
    
    .ykgs-columns-3, 
    .ykgs-columns-4 {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .ykgs-gallery-title {
        font-size: 14px;
    }
    
    .ykgs-gallery-price {
        font-size: 16px;
    }
    
    .ykgs-price-amount {
        font-size: 24px;
    }
}
