/* style.css */

/* Reset dan Variabel Warna Joymart */
:root {
    --main-bg-color: #fcefe4; /* Background Orange Sangat Muda */
    --link-bg-color: #ffffff; /* Latar Belakang Tautan Putih */
    --primary-orange: #ff6600; /* Orange Primer / orange Cerah */
    --secondary-orange: #da5801; /* Orange Lebih Gelap untuk Hover */
    --text-color: #333333;
    --border-radius-large: 3rem; /* Radius Sudut Besar untuk Kontainer dan Tautan */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--main-bg-color); 
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 30px 10px;
    background: linear-gradient(180deg, var(--main-bg-color) 0%, #ffaf80 100%); /* Efek Gradient */
}

.container {
    width: 100%;
    max-width: 650px; 
    text-align: center;
    background-color: white; /* Card putih utama (untuk memberikan batas nyata) */
    border-radius: var(--border-radius-large);
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Ikon Atas (Bintang dan Share) */
.top-icons {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    font-size: 1.2rem;
    color: var(--primary-orange); /* Warna Orange */
}

/* Header Profil */
.profile-header {
    margin-bottom: 10px;
}

.profile-img {
    width: 160px;
    height: 90px;
    border-radius: 80%; /* Membuat gambar lingkaran */
    object-fit: cover;
    margin-bottom: 20px;
    ;
}

.profile-header h1 {
    font-size: 1.5em;
    color: var(--text-color);
    font-weight: 700;
}

/* Daftar Tautan */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 15px; 
}

 .link-item {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    width: 100%; 
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--link-bg-color);
    padding: 15px 23px;
    border-radius: var(--border-radius-large);
    border: 1px solid #f0f0f0; 
    transition: background-color 0.3s, transform 0.1s;
    font-weight: 600;
    font-size: 0.9em;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); 
}

.link-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.link-item:hover {
    background-color: var(--secondary-orange);
    color: white;
    transform: translateY(-2px);
}
/* .link-content {
    display: flex;
    align-items: center; 
    gap: 20px;
} */
.link-icon img {
    width: 70%;    
    height: 70%;
    object-fit: contain;
    display: block;
    margin: auto;
}
.link-icon {
  width: 40px;
  height: 40px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-orange);
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  overflow: hidden;
}

.link-icon i {
    font-size: 1.4rem;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-dots {
    color: #cccccc; 
    font-size: 1.2em;
}

.link-item:hover .link-dots {
    color: white; 
}

.shopee-color {
    background-color: #ff5722; /* Warna Shopee */
}
/* .instagram-color {
    background: radial-gradient(circle at 50% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d67424 60%, #eb2828 90%);
    color: white;
} */

/* Saat di-hover, semua ikon dan teks di dalam tautan harus putih */
.link-item:hover .link-icon {
    background-color: white;
    color: var(--secondary-orange);
}

.link-item:hover .shopee-color, 
.link-item:hover .instagram-color {
    /* Mencegah warna brand khusus saat di-hover, kembali ke skema putih-orange */
    background-color: white;
    color: var(--secondary-orange); 
}

.joymart-icon {
  background-color: var(--primary-orange);
}

.joymartpelita-icon {
  background-color: var(--primary-orange);
}
.joymartbungtomo-icon {
  background-color: var(--primary-orange);
}

.joymart-icon img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  display: block;
  margin: auto;
}


.link-item:hover .joymart-icon {
  background-color: white;
}

.link-item:hover .joymartbiasa-icon img {
  content: url("img/joyorangenobg.webp");
}

.link-item:hover .joymartpelita-icon img {
  content: url("img/Pelitaorange.webp");
}

.link-item:hover .joymartbungtomo-icon img {
  content: url("img/Bungtomoorange.webp");
}

/* Styling untuk Footer */
.profile-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 4px solid #f0f0f0; /* Garis pemisah tipis */
    font-size: 0.85em;
    color: #585858; /* Warna abu-abu yang lebih lembut */
    line-height: 1.6;
}

.profile-footer p {
    margin-bottom: 5px;
}

.profile-footer a {
    color: var(--primary-orange); /* Menjaga konsistensi warna oranye */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.profile-footer a:hover {
    color: var(--secondary-orange);
    text-decoration: underline;
}

.profile-header h2 {
    font-size: 1.1em;
    font-weight: 600;
    color: #666666;
    margin-top: 10px;
    margin-bottom: 15px; 
}

/* --- Styling Modal Pop-up Share --- */

/* Latar belakang modal (gelap dan menutupi seluruh layar) */
.modal {
    display: none; /* Sembunyikan secara default */
    position: fixed; 
    z-index: 100; /* Pastikan di atas semua konten lain */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparan hitam */
}

/* Kotak konten modal */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% dari atas dan diposisikan di tengah */
    padding: 25px;
    border-radius: 20px;
    width: 90%; 
    max-width: 350px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* Animasi untuk memunculkan modal dari atas */
@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

/* Tombol Tutup (X) */
.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--primary-orange);
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    color: var(--primary-orange);
    margin-bottom: 10px;
    font-size: 1.4em;
}

.modal-content p {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.95em;
}

/* Opsi Berbagi */
.share-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-decoration: none;
    color: white;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1em;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.share-btn i {
    margin-right: 10px;
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.whatsapp-bg { background-color: #25d366; }
.copy-bg { background-color: #555555; }

.share-link-btn {
    background: none;
    border: none;
    color: #cccccc; 
    font-size: 1.2em;
    cursor: pointer;
    margin-left: 10px; 
    transition: color 0.3s;
    flex-shrink: 0; 
}

.link-item:hover .share-link-btn {
    color: white;
}

.share-link-btn:hover {
    color: var(--link-bg-color) !important; 
}

.share-link-btn:active {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}