/*
 * Modern Profile CSS
 * Desain modern untuk halaman profil
 */

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

/* Profile Header */
.profile-header {
    margin-bottom: 40px;
    position: relative;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Profile Header - Dark Mode */
[data-theme="dark"] .profile-header {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.profile-cover {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-header:hover .profile-cover img {
    transform: scale(1.05);
}

.profile-info-container {
    display: flex;
    align-items: flex-start;
    padding: 0 25px 25px;
    margin-top: -60px;
    position: relative;
    z-index: 2;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.02));
}

.profile-avatar-container {
    margin-right: 25px;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Profile Avatar - Dark Mode */
[data-theme="dark"] .profile-avatar {
    border: 5px solid var(--bg-secondary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Profile Avatar Hover - Dark Mode */
[data-theme="dark"] .profile-avatar:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.profile-info {
    padding-top: 70px;
    text-align: left;
}

.profile-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Profile Name - Dark Mode */
[data-theme="dark"] .profile-name {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.profile-title {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 500;
}

.profile-location {
    font-size: 16px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Social Icons - Dark Mode */
[data-theme="dark"] .social-icon {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.social-icon:hover {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Social Icons Hover - Dark Mode */
[data-theme="dark"] .social-icon:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Contact Button */
.contact-button {
    background: linear-gradient(45deg, var(--accent-primary), #009a4e);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 62, 0.3);
}

.contact-button:hover {
    background: linear-gradient(45deg, #009a4e, var(--accent-primary));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 62, 0.4);
}

/* Link Cards */
.link-card {
    background-color: white;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--accent-primary);
    position: relative;
    overflow: hidden;
}

/* Link Cards - Dark Mode */
[data-theme="dark"] .link-card {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 123, 62, 0.1), rgba(255, 215, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Link Cards Before - Dark Mode */
[data-theme="dark"] .link-card::before {
    background: linear-gradient(45deg, rgba(0, 168, 84, 0.15), rgba(255, 215, 0, 0.15));
}

.link-card:hover {
    transform: translateY(-5px) translateX(3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--accent-secondary);
}

/* Link Cards Hover - Dark Mode */
[data-theme="dark"] .link-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.link-card:hover::before {
    opacity: 1;
}

.link-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-right: 15px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.link-title {
    font-weight: 600;
    font-size: 18px;
    margin: 0;
}

/* Section Titles */
.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

/* Section Titles - Dark Mode */
[data-theme="dark"] .section-title {
    color: var(--text-primary);
}

/* Section Description */
.section-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 16px;
}

/* Section Description - Dark Mode */
[data-theme="dark"] .section-description {
    color: var(--text-secondary);
}

/* Content Sections */
.content-section {
    margin-bottom: 40px;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glass Morphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Glass Morphism Effect - Dark Mode */
[data-theme="dark"] .glass-card {
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(50, 50, 50, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Neumorphism Effect */
.neumorphic-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.05),
        -8px -8px 16px rgba(255, 255, 255, 0.8);
}

/* Neumorphism Effect - Dark Mode */
[data-theme="dark"] .neumorphic-card {
    background: var(--bg-secondary);
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.2),
        -8px -8px 16px rgba(40, 40, 40, 0.8);
}

/* Product Card Styles */
.product-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: white;
}

/* Product Card - Dark Mode */
[data-theme="dark"] .product-card {
    background-color: var(--bg-secondary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Product Card Hover - Dark Mode */
[data-theme="dark"] .product-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.product-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
}

/* Product Title and Description - Dark Mode */
[data-theme="dark"] .product-title {
    color: var(--text-primary);
}

[data-theme="dark"] .product-description {
    color: var(--text-secondary);
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 15px;
}

.product-price-old {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 16px;
    margin-right: 10px;
}

/* Swiper Customization */
.swiper-container {
    padding: 10px 0;
    margin: 0 -5px;
}

.swiper-slide {
    padding: 0 3px;
    height: auto;
}

.swiper-pagination-bullet-active {
    background-color: var(--accent-primary);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--accent-primary);
}

.swiper-wrapper {
    margin: 0 -2px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .profile-info-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-avatar-container {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .profile-info {
        padding-top: 0;
        text-align: center;
    }

    .profile-actions {
        position: static;
        justify-content: center;
        margin-top: 20px;
    }

    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}
