* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-hover: #818cf8;
    --secondary-color: #8b5cf6;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --bg-primary: #0f172a;
    --bg-card: #1e293b;
    --border-color: #334155;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* CARD WIDTH SETTINGS */
    /* Domyślnie: PROSTOKĄTNA (szeroka, 1200px) */
    --container-max-width: 1200px;
    --card-max-width: 100%;
    --card-padding: 40px 50px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: var(--container-max-width, 1200px);
    margin: 0 auto;
}

.profile-card {
    background: var(--bg-card);
    border-radius: 24px;
    box-shadow: var(--shadow-hover);
    padding: var(--card-padding, 40px 50px);
    text-align: center;
    width: 100%;
    max-width: var(--card-max-width, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* 
    WERSJA KWADRATOWA (wąska, 420px)
    
    METODA 1 - Przez HTML (zalecane):
    Dodaj klasę 'card-compact' do tagu <body> w index.html:
    <body class="card-compact">
    
    METODA 2 - Przez CSS:
    Zmień wartości w :root powyżej:
    --container-max-width: 420px;
    --card-max-width: 420px;
    --card-padding: 40px 35px;
*/
body.card-compact {
    --container-max-width: 420px;
    --card-max-width: 420px;
    --card-padding: 40px 35px;
}

/* Avatar */
.avatar-container {
    margin-bottom: 24px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border-color);
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Profile Info */
.profile-info {
    margin-bottom: 32px;
}

.name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bio {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* CSGO-Skins Promo */
.csgo-promo {
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.35s backwards;
}

.csgo-promo-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 30px;
    padding: 30px;
    min-height: 120px;
    background: linear-gradient(135deg, #1e293b 0%, #2d3a52 100%);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.csgo-promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.1;
    transition: all 0.3s ease;
    z-index: 0;
}

.csgo-promo-card:hover::before {
    left: 0;
}

.csgo-promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    border-color: var(--primary-hover);
}

.csgo-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    position: relative;
    height: 100%;
}

.csgo-logo {
    height: 60px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.csgo-promo-card:hover .csgo-logo {
    transform: scale(1.05);
}

.csgo-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 1;
    position: relative;
    height: 100%;
}

.csgo-code-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.csgo-code {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
}

/* Wersja PROSTOKĄTNA (szeroka) - inny styl dla CSGO-Skins */
body:not(.card-compact) .csgo-promo-card {
    grid-template-columns: auto 1fr auto;
    justify-items: center;
    gap: 40px;
    padding: 28px 45px;
    min-height: 100px;
}

body:not(.card-compact) .csgo-logo-container {
    justify-content: flex-start;
}

body:not(.card-compact) .csgo-logo {
    height: 50px;
    max-width: 280px;
}

body:not(.card-compact) .csgo-code-container {
    align-items: flex-end;
    flex-grow: 1;
    justify-content: center;
}

body:not(.card-compact) .csgo-code-text {
    font-size: 12px;
}

body:not(.card-compact) .csgo-code {
    font-size: 24px;
    letter-spacing: 3px;
}

/* Wersja COMPACT (kwadratowa) - mniejsze rozmiary dla CSGO-Skins */
body.card-compact .csgo-promo-card {
    gap: 20px;
    padding: 20px;
    min-height: 90px;
}

body.card-compact .csgo-logo {
    height: 40px;
    max-width: 180px;
}

body.card-compact .csgo-code-text {
    font-size: 11px;
}

body.card-compact .csgo-code {
    font-size: 20px;
    letter-spacing: 2px;
}

/* Prize Header */
.prize-header {
    margin-bottom: 24px;
    text-align: center;
}

.prize-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    margin: 0;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Links Section */
.links-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-align: left;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #1e293b;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 0;
}

.link-card:hover::before {
    left: 0;
    opacity: 0.1;
}

.link-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.link-card:active {
    transform: translateY(0);
}

.link-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
    position: relative;
}

.link-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.link-text {
    flex: 1;
    text-align: left;
    z-index: 1;
    position: relative;
}

/* Social Media Specific Colors */
.link-card[data-platform="youtube"]:hover {
    border-color: #ff0000;
    color: #ff0000;
}

.link-card[data-platform="youtube"]:hover .link-icon svg {
    fill: #ff0000;
}

.link-card[data-platform="instagram"]:hover {
    border-color: #e4405f;
    color: #e4405f;
}

.link-card[data-platform="instagram"]:hover .link-icon svg {
    fill: #e4405f;
}

.link-card[data-platform="twitter"]:hover {
    border-color: #1da1f2;
    color: #1da1f2;
}

.link-card[data-platform="twitter"]:hover .link-icon svg {
    fill: #1da1f2;
}

.link-card[data-platform="tiktok"]:hover {
    border-color: #000000;
    color: #000000;
}

.link-card[data-platform="tiktok"]:hover .link-icon svg {
    fill: #000000;
}

.link-card[data-platform="discord"]:hover {
    border-color: #5865f2;
    color: #5865f2;
}

.link-card[data-platform="discord"]:hover .link-icon svg {
    fill: #5865f2;
}

/* Partner Links */
.link-card.partner:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* Partner Logo Styles */
.link-icon.partner-logo {
    width: auto;
    height: 32px;
    max-width: 140px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.link-icon.partner-logo img {
    height: 100%;
    width: auto;
    max-height: 32px;
    object-fit: contain;
}

.link-icon.partner-logo svg {
    width: auto;
    height: 100%;
    max-width: 140px;
    max-height: 32px;
}

/* Contests Section */
.contests-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contest-card {
    background: #1e293b;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out backwards;
    opacity: 0;
}

.contest-card.visible {
    opacity: 1;
}

.contest-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.contest-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.contest-image-container:hover {
    transform: scale(1.02);
}

.contest-image-container:hover .contest-image-overlay {
    opacity: 1;
}

.contest-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    max-height: 300px;
    display: block;
    transition: transform 0.3s ease;
}

.contest-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.contest-image-overlay::before {
    content: '🔍';
    font-size: 32px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.contest-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contest-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
    overflow: auto;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    animation: zoomIn 0.3s ease;
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.footer p {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        max-width: 95%;
    }

    .profile-card {
        padding: 35px 40px;
    }
}

@media (max-width: 640px) {
    .container {
        max-width: 95%;
    }

    .profile-card {
        padding: 30px 20px;
    }

    .name {
        font-size: 24px;
    }

    .prize-title {
        font-size: 18px;
        white-space: normal;
        padding: 0 10px;
    }

    .csgo-promo-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .csgo-logo-container {
        justify-content: center;
    }

    .csgo-code-container {
        align-items: center;
    }

    .csgo-logo {
        height: 40px;
        max-width: 200px;
    }

    .csgo-code {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .link-card {
        padding: 14px 16px;
        font-size: 15px;
    }

    .contest-card {
        padding: 16px;
    }

    .contest-title {
        font-size: 16px;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .lightbox-content {
        max-width: 95%;
        padding: 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.profile-card {
    animation: fadeInUp 0.8s ease-out;
}

.avatar {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.profile-info {
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.prize-header {
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.links-section {
    animation: fadeInUp 0.8s ease-out backwards;
}

.links-section:nth-of-type(1) {
    animation-delay: 0.5s;
}

.links-section:nth-of-type(2) {
    animation-delay: 0.6s;
}

.links-section:nth-of-type(3) {
    animation-delay: 0.7s;
}

.links-container .link-card {
    animation: slideInLeft 0.5s ease-out backwards;
}

.links-container .link-card:nth-child(1) { animation-delay: 0.1s; }
.links-container .link-card:nth-child(2) { animation-delay: 0.2s; }
.links-container .link-card:nth-child(3) { animation-delay: 0.3s; }
.links-container .link-card:nth-child(4) { animation-delay: 0.4s; }
.links-container .link-card:nth-child(5) { animation-delay: 0.5s; }

.contest-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.contest-card:nth-child(1) { animation-delay: 0.1s; }
.contest-card:nth-child(2) { animation-delay: 0.2s; }
.contest-card:nth-child(3) { animation-delay: 0.3s; }

