body {
    background-color: #f4f4f9;
    color: #333;
}

.profile-container {
    max-width: 680px;
    margin-top: 50px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.avatar {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-name {
    font-weight: 700;
    color: #343a40;
}

.profile-bio {
    color: #6c757d;
}

/* Collection Title */
.collection-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    text-align: center;
}

/* Normal Link Styles */
.normal-link {
    background-color: #f8f9fa; /* Daha belirgin arkaplan */
    border: 2px solid #dee2e6; /* Daha belirgin kenarlık */
    border-radius: 20px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #333;
    margin-bottom: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.normal-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.normal-link .normal-link-content {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.normal-link .link-image {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 15px;
}

.normal-link .link-title {
    font-weight: 500;
}

/* Featured Link Styles */
.featured-link {
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    min-height: 250px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.featured-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.featured-link .card-img-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
    border-radius: 12px;
}

.featured-link .card-title {
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* Discount Badge Styles */
.badges-container-featured {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.end-date-badge-featured, .discount-badge-featured {
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.4em 0.7em;
    color: white;
    border-radius: 0.25rem;
}

.badge-icon {
    display: inline-flex;
    align-items: center;
    padding: 0.3em 0.6em;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 50px; /* Tamamen yuvarlak kenarlar */
}

.badge-icon .fa-calendar-alt {
    margin-right: 5px;
}

.end-date-badge-featured {
    background-color: #17a2b8; /* Info color */
}

.discount-badge-featured {
    background-color: #dc3545; /* Danger color */
}

.badges-container-normal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    margin-left: 10px;
    flex-shrink: 0;
}

.end-date-info-normal, .discount-badge-normal {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4em 0.7em;
    border-radius: 0.25rem;
    color: white;
}

.end-date-info-normal {
    background-color: #2f82cb; /* Secondary color */
    text-align: center;
}

.discount-badge-normal {
    background-color: #dc3545; /* Danger color */
}

.date {
    display: block;
}

@media (max-width: 768px) {
    .discount-label {
        display: block;
    }
}

/* Social Icons */
.social-icons a {
    color: #343a40;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: #007bff;
}

/* Footer */
.footer {
    background-color: transparent;
    border-top: 1px solid transparent;
    padding: 20px 0;
    margin-top: 40px;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Default for mobile */
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#popup-modal.popup-overlay {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: #fff;
    width: 100%;
    max-width: 480px;
    height: 83vh; /* Mobile height */
    border-radius: 20px 20px 0 0; /* Mobile border radius */
    box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
    transform: translateY(100%); /* Mobile animation */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent content overflow */
}

#popup-modal .popup-content {
    transform: translateY(0);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #e9ecef;
}

.popup-header-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
}

#popup-url-display {
    font-weight: 500;
    color: #343a40;
}

.popup-body {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto; /* Allow scrolling if content overflows */
}

.popup-image {
    max-width: 55%; /* Limit width to a percentage of the container */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
}

#popup-text {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 25px;
}

.popup-discount-container {
    width: 100%;
    margin-bottom: 20px;
}

.discount-box {
    border: 1px solid #ced4da;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#popup-discount-code {
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: #212529;
}

#popup-copy-code {
    background-color: #e9ecef;
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

#popup-copy-code:hover {
    background-color: #dee2e6;
}

#popup-go-to-store {
    background-color: #212529;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}

#popup-go-to-store:hover {
    background-color: #343a40;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .popup-overlay {
        align-items: center; /* Center on desktop */
    }

    .popup-content {
        height: auto; /* Auto height on desktop */
        max-height: 90vh;
        border-radius: 20px; /* All corners rounded on desktop */
        transform: scale(0.7); /* Desktop animation */
        opacity: 0;
        transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
    }

    #popup-modal .popup-content {
        transform: scale(1);
        opacity: 1;
    }
    
    .popup-body {
        min-height: auto; /* Remove min-height on desktop */
    }

    .popup-image {
        max-width: 50%; /* Limit width to a percentage of the container */
        height: auto; /* Maintain aspect ratio */
        /* max-width: 150px;  Fixed width for desktop */
        /* height: 150px;  Fixed height for desktop */
    }
}

@media (max-width: 576px) {
    .popup-content {
        border-radius: 15px 15px 0 0;
    }
    .popup-body {
        padding: 20px;
    }
}
