/**
 * GG Solutions - Style dla sekcji promocyjnej rabatów na stronie głównej
 * Plik: gg-homepage-discounts-style.css
 */

/* CSS Variables */
:root {
    --ggsolutions-primary: #000000;
    --ggsolutions-primary-dark: #2b2b2b;
    --ggsolutions-secondary: #ebe9eb;
    --ggsolutions-text: #43454b;
    --ggsolutions-text-light: #6d6d6d;
    --ggsolutions-green: #c5e833;
}

/* Główny kontener sekcji */
.gg-homepage-discounts {
    background: linear-gradient(135deg, #f8f9fa 0%, var(--ggsolutions-secondary) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.gg-homepage-discounts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c5e833' fill-opacity='0.03'%3E%3Cpath d='M50 50m-20 0a20 20 0 1 1 40 0a20 20 0 1 1-40 0'/%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.homepage-discounts-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Hero Header */
.discounts-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.hero-content {
    padding-right: 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ggsolutions-green);
    color: var(--ggsolutions-primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    animation: heroFloat 3s ease-in-out infinite;
}

.badge-icon {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-size: 3.2em;
    font-weight: 800;
    color: var(--ggsolutions-primary);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.3em;
    color: var(--ggsolutions-text-light);
    line-height: 1.5;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px 0;
    border-top: 2px solid var(--ggsolutions-green);
    border-bottom: 2px solid var(--ggsolutions-green);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: 800;
    color: var(--ggsolutions-primary);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--ggsolutions-text-light);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

.stat-divider {
    width: 2px;
    height: 40px;
    background: var(--ggsolutions-green);
    opacity: 0.5;
}

/* Hero Visual - Discount Wheel */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.discount-wheel {
    width: 300px;
    height: 300px;
    position: relative;
    border-radius: 50%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: wheelRotate 20s linear infinite;
}

.wheel-segments {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
}

.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: right bottom;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    color: #ffffff;
}

.wheel-segment span {
    position: absolute;
    top: 35%;
    left: 35%;
    transform: rotate(-18deg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.wheel-segment.segment-1 {
    background: #c5e833;
    transform: rotate(0deg);
}

.wheel-segment.segment-2 {
    background: #b8d42e;
    transform: rotate(72deg);
}

.wheel-segment.segment-3 {
    background: #a8c429;
    transform: rotate(144deg);
}

.wheel-segment.segment-4 {
    background: #98b424;
    transform: rotate(216deg);
}

.wheel-segment.segment-5 {
    background: #88a41f;
    transform: rotate(288deg);
}

.wheel-segment.segment-1 span {
    transform: rotate(0deg);
}

.wheel-segment.segment-2 span {
    transform: rotate(-72deg);
}

.wheel-segment.segment-3 span {
    transform: rotate(-144deg);
}

.wheel-segment.segment-4 span {
    transform: rotate(-216deg);
}

.wheel-segment.segment-5 span {
    transform: rotate(-288deg);
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.wheel-text {
    font-size: 14px;
    color: var(--ggsolutions-text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wheel-percent {
    font-size: 3.5em;
    font-weight: 900;
    color: var(--ggsolutions-green);
    line-height: 0.8;
    margin: 5px 0;
}

.wheel-subtext {
    font-size: 16px;
    color: var(--ggsolutions-primary);
    font-weight: 700;
}

/* Discount Tiers Preview */
.discount-tiers-preview {
    margin-bottom: 80px;
}

.tiers-title {
    text-align: center;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--ggsolutions-primary);
    margin-bottom: 50px;
    position: relative;
}

.tiers-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--ggsolutions-green);
    border-radius: 2px;
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.tier-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tier-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ggsolutions-green), #b8d42e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.tier-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--ggsolutions-green);
}

.tier-card:hover::before {
    transform: scaleX(1);
}

.tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tier-range {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--ggsolutions-text);
}

.tier-percentage {
    font-size: 2.5em;
    font-weight: 900;
    color: var(--ggsolutions-green);
    line-height: 1;
}

.tier-savings {
    margin-bottom: 20px;
}

.savings-amount,
.savings-text {
    font-size: 14px;
    color: var(--ggsolutions-text-light);
    font-weight: 600;
}

.tier-progress {
    height: 6px;
    background: var(--ggsolutions-secondary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--ggsolutions-green), #b8d42e);
    width: var(--progress);
    border-radius: 3px;
    transition: width 1s ease-out;
    animation: progressFill 2s ease-out;
}

.tier-card.tier-more {
    background: linear-gradient(135deg, var(--ggsolutions-green) 0%, #b8d42e 100%);
    color: var(--ggsolutions-primary);
    border: none;
}

.tier-card.tier-more:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(197, 232, 51, 0.3);
}

.tier-card.tier-more .tier-range {
    color: var(--ggsolutions-primary);
    font-size: 1em;
    text-align: center;
}

.tier-card.tier-more .tier-percentage {
    color: var(--ggsolutions-primary);
    font-size: 3em;
}

.tier-card.tier-more .savings-text {
    color: var(--ggsolutions-primary);
    font-weight: 700;
    text-align: center;
}

.tier-more-action {
    margin-top: 15px;
    text-align: center;
}

.view-all-btn-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.15);
    color: var(--ggsolutions-primary);
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-all-btn-small:hover {
    background: var(--ggsolutions-primary);
    color: var(--ggsolutions-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Call to Action */
.discount-cta {
    background: linear-gradient(135deg, var(--ggsolutions-primary) 0%, var(--ggsolutions-primary-dark) 100%);
    border-radius: 20px;
    padding: 60px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
}

.discount-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c5e833' fill-opacity='0.1'%3E%3Cpath d='M30 30m-10 0a10 10 0 1 1 20 0a10 10 0 1 1-20 0'/%3E%3C/g%3E%3C/svg%3E") repeat;
}

.cta-content {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.8em;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--ggsolutions-green);
}

.cta-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-primary {
    background: var(--ggsolutions-green);
    color: var(--ggsolutions-primary);
}

.cta-primary:hover {
    background: #b8d42e;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(197, 232, 51, 0.4);
}

.cta-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.cta-secondary:hover {
    background: #ffffff;
    color: var(--ggsolutions-primary);
    transform: translateY(-3px);
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.feature-icon {
    width: 32px;
    height: 32px;
    color: var(--ggsolutions-green);
    margin-bottom: 8px;
}

.feature-item span {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

/* Full Discounts Section */
.full-discounts-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.full-discounts-title {
    text-align: center;
    font-size: 2.2em;
    font-weight: 700;
    color: var(--ggsolutions-primary);
    margin-bottom: 40px;
    position: relative;
}

.full-discounts-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--ggsolutions-green);
    border-radius: 2px;
}

/* Animacje */
@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes wheelRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes progressFill {
    0% {
        width: 0;
    }

    100% {
        width: var(--progress);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .discounts-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero-stats {
        justify-content: center;
    }

    .discount-wheel {
        width: 250px;
        height: 250px;
    }

    .wheel-center {
        width: 150px;
        height: 150px;
    }

    .wheel-percent {
        font-size: 2.8em;
    }
}

@media (max-width: 768px) {
    .gg-homepage-discounts {
        padding: 60px 0;
    }

    .homepage-discounts-container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2.5em;
    }

    .hero-subtitle {
        font-size: 1.1em;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-divider {
        width: 40px;
        height: 2px;
    }

    .tiers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .discount-cta {
        padding: 40px 30px;
    }

    .cta-title {
        font-size: 2.2em;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 280px;
    }

    .cta-features {
        gap: 30px;
    }

    .full-discounts-section {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2em;
    }

    .discount-wheel {
        width: 200px;
        height: 200px;
    }

    .wheel-center {
        width: 120px;
        height: 120px;
    }

    .wheel-percent {
        font-size: 2.2em;
    }

    .tier-card {
        padding: 20px;
    }

    .tier-percentage {
        font-size: 2em;
    }
}

/* ==================================================
   COMPANY GALLERY SECTION ON HOMEPAGE
   ================================================== */

.homepage-company-gallery-section {
    margin: 80px 0;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.homepage-company-gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(197, 232, 51, 0.1) 0%, 
        transparent 30%, 
        transparent 70%, 
        rgba(197, 232, 51, 0.05) 100%);
    pointer-events: none;
}

/* Override company gallery styles for homepage integration */
.homepage-company-gallery-section .company-gallery-container {
    position: relative;
    z-index: 1;
    margin: 0;
}

.homepage-company-gallery-section .company-gallery-title {
    font-size: 2.8em;
    font-weight: 800;
    color: var(--ggsolutions-primary);
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.homepage-company-gallery-section .company-gallery-description {
    font-size: 1.2em;
    color: var(--ggsolutions-text-light);
    margin-bottom: 50px;
    max-width: 900px;
}

.homepage-company-gallery-section .company-gallery-grid {
    gap: 25px;
}

.homepage-company-gallery-section .company-gallery-item {
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.homepage-company-gallery-section .company-gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

.homepage-company-gallery-section .company-gallery-item img {
    height: 280px;
}

.homepage-company-gallery-section .company-gallery-overlay {
    background: rgba(197, 232, 51, 0.9);
}

.homepage-company-gallery-section .company-gallery-zoom-icon {
    color: var(--ggsolutions-primary);
    font-size: 36px;
    font-weight: bold;
}

/* Responsive adjustments for homepage company gallery */
@media (max-width: 1200px) {
    .homepage-company-gallery-section {
        margin: 60px 0;
        padding: 50px 30px;
    }
    
    .homepage-company-gallery-section .company-gallery-title {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .homepage-company-gallery-section {
        margin: 40px 0;
        padding: 40px 20px;
    }
    
    .homepage-company-gallery-section .company-gallery-title {
        font-size: 2em;
    }
    
    .homepage-company-gallery-section .company-gallery-description {
        font-size: 1.1em;
    }
    
    .homepage-company-gallery-section .company-gallery-grid {
        gap: 15px;
    }
    
    .homepage-company-gallery-section .company-gallery-item img {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .homepage-company-gallery-section {
        margin: 30px 0;
        padding: 30px 15px;
        border-radius: 15px;
    }
    
    .homepage-company-gallery-section .company-gallery-title {
        font-size: 1.8em;
    }
    
    .homepage-company-gallery-section .company-gallery-item img {
        height: 200px;
    }
}