@import url('https://fonts.googleapis.com/css2?family=Krona+One&display=swap');

.sgg-partnerzy-container {
    background: transparent;
    padding: 40px 20px;
    min-height: 100vh;
}

.sgg-partnerzy-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.sgg-main-title {
    font-family: 'Krona One', sans-serif;
    font-size: 56px;
    color: #fff;
    margin: 0 0 30px 0;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    letter-spacing: 2px;
}

.sgg-header-description {
    font-size: 18px;
    line-height: 1.8;
    color: #e5e7eb;
    margin: 0 0 30px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.sgg-header-cta {
    margin: 0;
}

.sgg-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    border: 2px solid transparent;
}

.sgg-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.6);
    border-color: #60a5fa;
    color: #fff;
    text-decoration: none;
}

.sgg-partnerzy-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    align-items: center;
}

.sgg-sort-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

.sgg-sort-wrapper label {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sgg-sort-wrapper label i {
    color: #60a5fa;
}

.sgg-sort-select {
    background: #2d2d2d;
    border: 2px solid #404040;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.sgg-sort-select:hover {
    border-color: #2563eb;
}

.sgg-sort-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.sgg-search-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

.sgg-search-wrapper label {
    color: #60a5fa;
    font-size: 18px;
}

.sgg-search-input {
    background: #2d2d2d;
    border: 2px solid #404040;
    color: #fff !important;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 220px;
    -webkit-text-fill-color: #fff !important;
}

.sgg-search-input::placeholder {
    color: #888;
}

.sgg-search-input:hover {
    border-color: #2563eb;
}

.sgg-search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.sgg-filter-dropdown {
    position: relative;
}

.sgg-filter-btn {
    background: #2d2d2d;
    border: 2px solid #404040;
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sgg-filter-btn:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.sgg-filter-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #2563eb;
}

.sgg-filter-btn i {
    font-size: 18px;
}

.sgg-dropdown-toggle .sgg-chevron {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.sgg-dropdown-toggle.open .sgg-chevron {
    transform: rotate(180deg);
}

.sgg-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background: #2d2d2d;
    border: 2px solid #404040;
    border-radius: 15px;
    padding: 8px;
    min-width: 250px;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.sgg-dropdown-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sgg-sub-filter {
    width: 100%;
    justify-content: flex-start;
    margin-bottom: 5px;
    border-radius: 12px;
    padding: 10px 16px;
}

.sgg-sub-filter:last-child {
    margin-bottom: 0;
}

.sgg-game-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.sgg-parent-title {
    color: #fff;
    font-size: 42px;
    font-weight: bold;
    text-align: left;
    margin: 60px 0 40px 0;
    padding-left: 20px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border-left: 4px solid #60a5fa;
}

.sgg-partnerzy-section {
    margin-bottom: 60px;
}

.sgg-partnerzy-section.hidden {
    display: none;
}

.sgg-section-title {
    color: #fff;
    font-size: 28px;
    margin-bottom: 30px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    padding-left: 20px;
}

.sgg-section-title i {
    color: #60a5fa;
    font-size: 36px;
    filter: drop-shadow(0 2px 6px rgba(96, 165, 250, 0.4));
}

.sgg-section-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(96, 165, 250, 0.4));
}

.sgg-partnerzy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 1400px) {
    .sgg-partnerzy-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }
}

@media (max-width: 1024px) {
    .sgg-partnerzy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .sgg-partnerzy-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

.sgg-partner-card {
    position: relative;
    min-height: 550px;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sgg-partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.sgg-partner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.75) 100%);
    padding: 40px 25px 25px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.sgg-partner-content-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.sgg-partner-content-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.sgg-partner-logo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 18px;
    border: 4px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.sgg-partner-card:hover .sgg-partner-logo {
    transform: scale(1.1);
    border-color: #2563eb;
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.6);
}

.sgg-partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* White filter for specific partners */
.sgg-partner-card[data-partner-id="14"] .sgg-partner-logo,
.sgg-partner-card[data-partner-id="18"] .sgg-partner-logo,
.sgg-partner-card[data-partner-id="17"] .sgg-partner-logo,
.sgg-partner-card[data-partner-id="15"] .sgg-partner-logo {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.sgg-partner-card[data-partner-id="14"] .sgg-partner-logo img,
.sgg-partner-card[data-partner-id="18"] .sgg-partner-logo img,
.sgg-partner-card[data-partner-id="17"] .sgg-partner-logo img,
.sgg-partner-card[data-partner-id="15"] .sgg-partner-logo img {
    filter: brightness(0) invert(1) !important;
    -webkit-filter: brightness(0) invert(1) !important;
}

.sgg-partnerzy-container img:not([data-partner-id="14"]):not([data-partner-id="18"]):not([data-partner-id="17"]):not([data-partner-id="15"]) {
    filter: none !important;
    -webkit-filter: none !important;
}

.sgg-partner-card:not([data-partner-id="14"]):not([data-partner-id="18"]):not([data-partner-id="17"]):not([data-partner-id="15"]) img:not(.sgg-game-icon) {
    filter: none !important;
    -webkit-filter: none !important;
}

.sgg-partner-name {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 10px 0;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.sgg-partner-name a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sgg-partner-name a:hover {
    color: #2563eb;
}

.sgg-partner-est {
    color: #aaa;
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.sgg-partner-faceit {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.sgg-faceit-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.sgg-faceit-link:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.9), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.sgg-faceit-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.sgg-faceit-elo {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sgg-partner-days {
    color: #2563eb;
    font-size: 13px;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin-left: auto;
    margin-right: auto;
}

.sgg-partner-days i {
    font-size: 14px;
}

.sgg-partner-profile-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 10;
}

.sgg-partner-profile-icon:hover {
    background: rgba(16, 185, 129, 0.9);
    border-color: #10b981;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.6);
}

.sgg-partner-articles-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.9);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    width: fit-content;
    transition: all 0.3s ease;
    border: 2px solid rgba(37, 99, 235, 0.5);
}

.sgg-partner-articles-btn:hover {
    background: rgba(37, 99, 235, 1);
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.5);
    color: #fff;
}

.sgg-partner-articles-btn i {
    font-size: 16px;
}

.sgg-articles-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.sgg-partner-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.sgg-partner-socials a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.sgg-partner-socials a:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.5);
}

@media (max-width: 768px) {
    .sgg-partnerzy-grid {
        grid-template-columns: 1fr;
    }
    
    .sgg-main-title {
        font-size: 32px;
    }
    
    .sgg-header-description {
        font-size: 16px;
    }
    
    .sgg-section-title {
        font-size: 24px;
    }
    
    .sgg-section-title i {
        font-size: 28px;
    }
    
    .sgg-filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .sgg-partner-card {
        height: 350px;
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    .sgg-main-title {
        font-size: 28px;
        letter-spacing: 1px;
    }
    
    .sgg-header-description {
        font-size: 14px;
    }
    
    .sgg-cta-button {
        font-size: 16px;
        padding: 12px 30px;
    }
}
