/* AI Character Gallery - Professional Design Refinement */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.aicg-gallery-container, .aicg-single-container {
    background-color: #1a1c23;
    color: #ffffff;
    padding: 60px 20px;
    font-family: 'Inter', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

/* Gallery Header */
.aicg-gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.aicg-gallery-header h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    letter-spacing: -1px;
}

.aicg-gallery-header p {
    font-size: 20px;
    color: #9ca3af;
    font-weight: 400;
}

/* Search Bar - Matching the Image */
.aicg-search-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

/* Category Navigation - Small DP Style */
.aicg-categories-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.aicg-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s;
    width: 80px;
}

.aicg-cat-item:hover, .aicg-cat-item.active {
    transform: translateY(-5px);
}

.aicg-cat-thumb {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f59e0b; /* Golden border as in image */
    margin-bottom: 12px;
    background: #2a2d37;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
}

.aicg-cat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aicg-cat-item span {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
}

.aicg-cat-item:hover .aicg-cat-thumb, .aicg-cat-item.active .aicg-cat-thumb {
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.aicg-cat-item.active span {
    color: #f59e0b;
}

.aicg-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 650px;
}

.aicg-search-wrapper input {
    width: 100%;
    padding: 18px 30px 18px 30px;
    border-radius: 16px;
    border: 1px solid #374151;
    background: #f3f4f6; /* Light background for search as in image */
    color: #1f2937;
    font-size: 18px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.aicg-search-wrapper input::placeholder {
    color: #9ca3af;
}

.aicg-search-wrapper .dashicons-search {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Special Grid Layout - Exact Match */
.aicg-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.aicg-card {
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.aicg-card:hover {
    transform: scale(1.03);
}

.aicg-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.aicg-card-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.aicg-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Black Title Bar at the Bottom - Exact Match */
.aicg-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000000; /* Solid black as in image */
    padding: 12px 5px;
    text-align: center;
}

.aicg-card-title h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* View More Button - Exact Match */
.aicg-view-more {
    text-align: center;
    margin-top: 50px;
}

.aicg-view-more button {
    padding: 14px 35px;
    border-radius: 12px;
    background: #2a2d37;
    color: #ffffff;
    border: 1px solid #374151;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: background 0.3s;
}

.aicg-view-more button:hover {
    background: #374151;
}

/* Single View Layout Refinement */
.aicg-single-header {
    margin-bottom: 40px;
}

.aicg-single-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.aicg-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.aicg-tag {
    background: #374151;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 14px;
    color: #d1d5db;
    font-weight: 500;
}

.aicg-single-content {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 50px;
}

.aicg-main-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.aicg-character-description {
    background: #2a2d37;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    border: 1px solid #374151;
}

.aicg-character-description h3 {
    margin-top: 0;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.aicg-description-content {
    font-size: 16px;
    line-height: 1.8;
    color: #d1d5db;
}

/* Sidebar Refinement */
.aicg-prompt-box, .aicg-guide-box {
    background: #2a2d37;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid #374151;
}

.aicg-box-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.aicg-copy-btn {
    background: #374151;
    border: none;
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.aicg-copy-btn:hover {
    background: #4b5563;
}

.aicg-prompt-text {
    background: #111827;
    padding: 25px;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.7;
    margin: 25px 0;
    color: #e5e7eb;
    border: 1px solid #1f2937;
}

.aicg-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.aicg-copy-btn-full, .aicg-generate-btn, .aicg-download-btn {
    padding: 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.2s;
}

.aicg-copy-btn-full:active, .aicg-generate-btn:active, .aicg-download-btn:active {
    transform: scale(0.98);
}

.aicg-copy-btn-full { background: #374151; color: #fff; }
.aicg-generate-btn { background: #4b5563; color: #fff; }
.aicg-download-btn { background: #1f2937; color: #fff; border: 1px solid #374151; }

.aicg-guide-box h3 {
    margin-top: 0;
    font-size: 20px;
    margin-bottom: 25px;
}

.aicg-guide-content {
    font-size: 16px;
    line-height: 1.8;
    color: #9ca3af;
}

.aicg-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

/* Related Section Refinement */
.aicg-related-section {
    margin-top: 60px;
}

.aicg-related-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
}

.aicg-related-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.aicg-related-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.aicg-related-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s;
}

.aicg-related-card:hover img {
    transform: scale(1.05);
}

.aicg-related-card span {
    display: block;
    font-size: 13px;
    text-align: center;
    margin-top: 12px;
    color: #9ca3af;
    font-weight: 500;
}

/* Responsive Refinement */
@media (max-width: 1200px) {
    .aicg-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
    .aicg-grid { grid-template-columns: repeat(3, 1fr); }
    .aicg-single-content { grid-template-columns: 1fr; }
    .aicg-related-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .aicg-grid { grid-template-columns: repeat(2, 1fr); }
    .aicg-related-grid { grid-template-columns: repeat(3, 1fr); }
    .aicg-gallery-header h1 { font-size: 36px; }
    .aicg-gallery-header p { font-size: 16px; }
}
