/* ===================================
   GO4METIN SERVICES SHOWCASE WIDGET
   =================================== */

.g4ss-showcase {
    width: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.g4ss-section {
    padding: 40px 0;
}

.g4ss-section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 12px;
    letter-spacing: 0.02em;
}

.g4ss-section-subtitle {
    font-size: 16px;
    text-align: center;
    margin: 0 0 40px;
    opacity: 0.85;
}

/* GRID LAYOUTS */
.g4ss-grid {
    display: grid;
    gap: var(--g4ss-gap, 20px);
}

.g4ss-layout-grid.g4ss-cols-1 { grid-template-columns: repeat(1, 1fr); }
.g4ss-layout-grid.g4ss-cols-2 { grid-template-columns: repeat(2, 1fr); }
.g4ss-layout-grid.g4ss-cols-3 { grid-template-columns: repeat(3, 1fr); }
.g4ss-layout-grid.g4ss-cols-4 { grid-template-columns: repeat(4, 1fr); }
.g4ss-layout-grid.g4ss-cols-5 { grid-template-columns: repeat(5, 1fr); }
.g4ss-layout-grid.g4ss-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* MASONRY LAYOUT */
.g4ss-layout-masonry {
    column-count: 3;
    column-gap: var(--g4ss-gap, 20px);
}

.g4ss-layout-masonry.g4ss-cols-2 { column-count: 2; }
.g4ss-layout-masonry.g4ss-cols-3 { column-count: 3; }
.g4ss-layout-masonry.g4ss-cols-4 { column-count: 4; }
.g4ss-layout-masonry.g4ss-cols-5 { column-count: 5; }

.g4ss-layout-masonry .g4ss-item {
    break-inside: avoid;
    margin-bottom: var(--g4ss-gap, 20px);
}

/* SIDEBAR LAYOUT */
.g4ss-layout-sidebar {
    display: flex;
    gap: var(--g4ss-gap, 20px);
}

.g4ss-layout-sidebar .g4ss-item {
    flex: 0 0 280px;
}

/* LIST LAYOUT */
.g4ss-layout-list {
    display: flex;
    flex-direction: column;
    gap: var(--g4ss-gap, 20px);
}

.g4ss-layout-list .g4ss-item {
    display: flex;
    flex-direction: row;
}

.g4ss-layout-list .g4ss-item-image {
    flex: 0 0 200px;
    height: auto;
}

.g4ss-layout-list .g4ss-item-content {
    flex: 1;
}

/* CAROUSEL LAYOUT */
.g4ss-layout-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--g4ss-gap, 20px);
    padding-bottom: 20px;
}

.g4ss-layout-carousel .g4ss-item {
    flex: 0 0 320px;
    scroll-snap-align: start;
}

/* ITEM BASE */
.g4ss-item {
    position: relative;
    border-radius: var(--g4ss-radius, 16px);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.g4ss-item-image {
    position: relative;
    width: 100%;
    height: var(--g4ss-img-height, 200px);
    overflow: hidden;
}

.g4ss-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.g4ss-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.g4ss-item:hover .g4ss-item-overlay {
    opacity: 1;
}

.g4ss-item-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.g4ss-item-content {
    padding: 20px;
}

.g4ss-item-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
}

.g4ss-item-subtitle {
    font-size: 14px;
    margin: 0 0 12px;
    opacity: 0.8;
}

.g4ss-item-description {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px;
    opacity: 0.9;
}

.g4ss-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.g4ss-item-price {
    font-size: 24px;
    font-weight: 700;
}

.g4ss-item-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* CARD STYLES */
.g4ss-card-card .g4ss-item {
    display: flex;
    flex-direction: column;
}

.g4ss-card-overlay .g4ss-item {
    position: relative;
    min-height: var(--g4ss-card-height, 400px);
}

.g4ss-card-overlay .g4ss-item-image {
    position: absolute;
    inset: 0;
    height: 100%;
}

.g4ss-card-overlay .g4ss-item-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.9) 100%);
}

.g4ss-card-minimal .g4ss-item {
    border: none;
    box-shadow: none;
}

.g4ss-card-minimal .g4ss-item-image {
    border-radius: var(--g4ss-radius, 16px);
}

.g4ss-card-bordered .g4ss-item {
    border: 2px solid;
}

/* HOVER EFFECTS */
[data-hover="lift"] .g4ss-item:hover {
    transform: translateY(-8px);
}

[data-hover="zoom"] .g4ss-item:hover .g4ss-item-image img {
    transform: scale(1.1);
}

[data-hover="glow"] .g4ss-item:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

[data-hover="tilt"] .g4ss-item:hover {
    transform: perspective(1000px) rotateY(5deg);
}

/* ANIMATIONS */
[data-animation="fadeIn"] .g4ss-item {
    animation: g4ssFadeIn 0.6s ease-out;
}

[data-animation="fadeInUp"] .g4ss-item {
    animation: g4ssFadeInUp 0.6s ease-out;
}

[data-animation="fadeInDown"] .g4ss-item {
    animation: g4ssFadeInDown 0.6s ease-out;
}

[data-animation="slideInLeft"] .g4ss-item {
    animation: g4ssSlideInLeft 0.6s ease-out;
}

[data-animation="slideInRight"] .g4ss-item {
    animation: g4ssSlideInRight 0.6s ease-out;
}

[data-animation="zoomIn"] .g4ss-item {
    animation: g4ssZoomIn 0.6s ease-out;
}

@keyframes g4ssFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes g4ssFadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes g4ssFadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes g4ssSlideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes g4ssSlideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes g4ssZoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* ===================================
   THEME: DARK PREMIUM
   =================================== */

.g4ss-theme-dark {
    background: radial-gradient(circle at top, #141726 0%, #05070c 100%);
    color: #f5f7ff;
    padding: 40px 20px;
}

.g4ss-theme-dark .g4ss-section-title {
    color: #f5c453;
    text-shadow: 0 0 20px rgba(245, 196, 83, 0.5);
}

.g4ss-theme-dark .g4ss-section-subtitle {
    color: #c7cadb;
}

.g4ss-theme-dark .g4ss-item {
    background: rgba(5, 7, 12, 0.95);
    border: 1px solid rgba(245, 196, 83, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.g4ss-theme-dark .g4ss-item:hover {
    border-color: rgba(245, 196, 83, 0.6);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(245, 196, 83, 0.3);
}

.g4ss-theme-dark .g4ss-item-badge {
    background: linear-gradient(135deg, #f5c453, #b88a2e);
    color: #000;
}

.g4ss-theme-dark .g4ss-item-title {
    color: #fef7dd;
}

.g4ss-theme-dark .g4ss-item-subtitle {
    color: #c7cadb;
}

.g4ss-theme-dark .g4ss-item-description {
    color: #d8d9eb;
}

.g4ss-theme-dark .g4ss-item-price {
    color: #f5c453;
}

.g4ss-theme-dark .g4ss-item-button {
    background: linear-gradient(135deg, #f5c453, #ffe6a3);
    color: #221200;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.g4ss-theme-dark .g4ss-item-button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* ===================================
   THEME: LIGHT DELUXE
   =================================== */

.g4ss-theme-light {
    background: radial-gradient(circle at top, #fdfdfb 0%, #f7f3ea 100%);
    color: #1d1f27;
    padding: 40px 20px;
}

.g4ss-theme-light .g4ss-section-title {
    color: #b88a2e;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.g4ss-theme-light .g4ss-section-subtitle {
    color: #6f7284;
}

.g4ss-theme-light .g4ss-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 244, 233, 0.96));
    border: 1px solid rgba(184, 138, 46, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
}

.g4ss-theme-light .g4ss-item:hover {
    border-color: rgba(184, 138, 46, 0.7);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.g4ss-theme-light .g4ss-item-badge {
    background: linear-gradient(135deg, #d3b35d, #f2dfb7);
    color: #2d1f06;
    border: 1px solid rgba(184, 138, 46, 0.5);
}

.g4ss-theme-light .g4ss-item-title {
    color: #252733;
}

.g4ss-theme-light .g4ss-item-subtitle {
    color: #6f7284;
}

.g4ss-theme-light .g4ss-item-description {
    color: #676a7b;
}

.g4ss-theme-light .g4ss-item-price {
    color: #b88a2e;
}

.g4ss-theme-light .g4ss-item-button {
    background: linear-gradient(135deg, #d3b35d, #f2dfb7);
    color: #2d1f06;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.g4ss-theme-light .g4ss-item-button:hover {
    background: linear-gradient(135deg, #f2dfb7, #e2c27f);
    transform: translateY(-2px);
}

/* ===================================
   THEME: AQUA TURQUOISE
   =================================== */

.g4ss-theme-aqua {
    background: radial-gradient(circle at top, #072632 0%, #03151e 100%);
    color: #e6f9ff;
    padding: 40px 20px;
}

.g4ss-theme-aqua .g4ss-section-title {
    color: #47f1e2;
    text-shadow: 0 0 20px rgba(71, 241, 226, 0.6);
}

.g4ss-theme-aqua .g4ss-section-subtitle {
    color: #a7c7d4;
}

.g4ss-theme-aqua .g4ss-item {
    background: radial-gradient(circle at top left, rgba(22, 86, 105, 0.95), rgba(3, 25, 36, 0.98));
    border: 1px solid rgba(49, 219, 211, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(31, 228, 208, 0.4);
}

.g4ss-theme-aqua .g4ss-item:hover {
    border-color: rgba(79, 236, 220, 0.9);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 40px rgba(31, 228, 208, 0.6);
}

.g4ss-theme-aqua .g4ss-item-badge {
    background: linear-gradient(135deg, #26f1d7, #57e1ff);
    color: #021418;
}

.g4ss-theme-aqua .g4ss-item-title {
    color: #e8fbff;
}

.g4ss-theme-aqua .g4ss-item-subtitle {
    color: #a7c7d4;
}

.g4ss-theme-aqua .g4ss-item-description {
    color: #bcdde8;
}

.g4ss-theme-aqua .g4ss-item-price {
    color: #54f4e0;
}

.g4ss-theme-aqua .g4ss-item-button {
    background: linear-gradient(135deg, #26f1d7, #57e1ff);
    color: #021418;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.9), 0 0 15px rgba(69, 239, 227, 0.6);
}

.g4ss-theme-aqua .g4ss-item-button:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}

/* ===================================
   THEME: NEON CYBER
   =================================== */

.g4ss-theme-neon {
    background: radial-gradient(circle at top, #0a0015 0%, #1a0033 50%, #000000 100%);
    color: #e0e0ff;
    padding: 40px 20px;
}

.g4ss-theme-neon .g4ss-section-title {
    color: #ff00ff;
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.8), 0 0 40px rgba(0, 255, 255, 0.6);
    animation: g4ssNeonPulse 2s ease-in-out infinite;
}

@keyframes g4ssNeonPulse {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 0, 255, 0.8), 0 0 40px rgba(0, 255, 255, 0.6); }
    50% { text-shadow: 0 0 30px rgba(255, 0, 255, 1), 0 0 60px rgba(0, 255, 255, 0.8); }
}

.g4ss-theme-neon .g4ss-section-subtitle {
    color: #b0b0ff;
}

.g4ss-theme-neon .g4ss-item {
    background: rgba(10, 0, 30, 0.9);
    border: 2px solid #ff00ff;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5), 0 0 40px rgba(0, 255, 255, 0.3), inset 0 0 20px rgba(255, 0, 255, 0.1);
}

.g4ss-theme-neon .g4ss-item:hover {
    border-color: #00ffff;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.8), 0 0 60px rgba(0, 255, 255, 0.6), inset 0 0 30px rgba(0, 255, 255, 0.2);
    transform: translateY(-5px);
}

.g4ss-theme-neon .g4ss-item-badge {
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.8);
}

.g4ss-theme-neon .g4ss-item-title {
    color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.6);
}

.g4ss-theme-neon .g4ss-item-subtitle {
    color: #00ffff;
}

.g4ss-theme-neon .g4ss-item-description {
    color: #c0c0ff;
}

.g4ss-theme-neon .g4ss-item-price {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.g4ss-theme-neon .g4ss-item-button {
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.6), 0 0 40px rgba(0, 255, 255, 0.4);
    font-weight: 700;
}

.g4ss-theme-neon .g4ss-item-button:hover {
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.9), 0 0 60px rgba(0, 255, 255, 0.7);
    transform: translateY(-2px) scale(1.05);
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1200px) {
    .g4ss-layout-grid.g4ss-cols-5,
    .g4ss-layout-grid.g4ss-cols-6 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .g4ss-layout-masonry.g4ss-cols-5 {
        column-count: 4;
    }
}

@media (max-width: 992px) {
    .g4ss-layout-grid.g4ss-cols-3,
    .g4ss-layout-grid.g4ss-cols-4,
    .g4ss-layout-grid.g4ss-cols-5,
    .g4ss-layout-grid.g4ss-cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .g4ss-layout-masonry.g4ss-cols-3,
    .g4ss-layout-masonry.g4ss-cols-4,
    .g4ss-layout-masonry.g4ss-cols-5 {
        column-count: 3;
    }
    
    .g4ss-layout-sidebar {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .g4ss-section {
        padding: 30px 0;
    }
    
    .g4ss-section-title {
        font-size: 26px;
    }
    
    .g4ss-section-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .g4ss-layout-grid.g4ss-cols-2,
    .g4ss-layout-grid.g4ss-cols-3,
    .g4ss-layout-grid.g4ss-cols-4,
    .g4ss-layout-grid.g4ss-cols-5,
    .g4ss-layout-grid.g4ss-cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .g4ss-layout-masonry {
        column-count: 2;
    }
    
    .g4ss-layout-list .g4ss-item {
        flex-direction: column;
    }
    
    .g4ss-layout-list .g4ss-item-image {
        flex: 1;
        height: 200px;
    }
    
    .g4ss-layout-carousel .g4ss-item {
        flex: 0 0 280px;
    }
}

@media (max-width: 576px) {
    .g4ss-showcase {
        padding: 20px 10px;
    }
    
    .g4ss-section {
        padding: 20px 0;
    }
    
    .g4ss-section-title {
        font-size: 22px;
    }
    
    .g4ss-layout-grid {
        grid-template-columns: 1fr !important;
    }
    
    .g4ss-layout-masonry {
        column-count: 1;
    }
    
    .g4ss-item-content {
        padding: 16px;
    }
    
    .g4ss-item-title {
        font-size: 18px;
    }
    
    .g4ss-item-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .g4ss-item-button {
        width: 100%;
    }
}
