/* Base Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f8f9fa;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
max-width: 600px;
padding: 0 15px;
}

/* Header */
header {
margin-bottom: 30px;
}

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

/* Links Container */
.links-container {
display: grid;
gap: 15px;
}

.link-item {
position: relative;
background: white;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 4px 10px rgba(0,0,0,0.05);
transition: all 0.3s ease;
}

.link-item:hover {
transform: translateY(-3px);
box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.link-button {
display: flex;
align-items: center;
padding: 18px 20px;
text-decoration: none;
color: #333;
min-height: 70px;
}

.link-button:focus {
outline: 3px solid rgba(13, 110, 253, 0.5);
outline-offset: -2px;
}

.social-icon {
width: 36px;
height: 36px;
margin-right: 15px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.4rem;
}

.link-label {
font-weight: 500;
flex-grow: 1;
text-align: left;
font-size: 1.1rem;
}

.link-actions {
padding: 8px;
}

.action-btn {
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: #6c757d;
background: transparent;
border: none;
transition: all 0.2s;
}

.action-btn:hover {
background: #f0f0f0;
}

/* Modal Overlay */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 1050;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}

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

/* Modal Container */
.modal-container {
background: white;
border-radius: 16px;
width: 90%;
max-width: 400px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
transform: translateY(20px);
transition: transform 0.3s ease;
overflow: hidden;
}

.modal-overlay.show .modal-container {
transform: translateY(0);
}

/* Modal Header */
.modal-header {
position: relative;
padding: 20px;
display: flex;
justify-content: center;
align-items: center;
border-bottom: 1px solid #eee;
}

.modal-title {
font-weight: 600;
font-size: 1.2rem;
color: #333;
}

/* Close Button */
.close-button {
position: absolute;
top: 18px;
right: 20px;
background: none;
border: none;
font-size: 1.8rem;
cursor: pointer;
color: #666;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: background-color 0.2s;
line-height: 1;
}

.close-button:hover {
background-color: #f5f5f5;
}

/* Modal Body */
.modal-body {
padding: 20px;
}

/* Share Options */
.share-option {
display: flex;
align-items: center;
padding: 14px 16px;
border-radius: 10px;
margin-bottom: 10px;
text-decoration: none;
color: #333;
transition: background-color 0.2s;
}

.share-option:hover {
background-color: #f8f9fa;
}

.share-icon {
width: 36px;
height: 36px;
margin-right: 15px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.4rem;
}

.share-label {
flex-grow: 1;
font-size: 1.05rem;
}

/* Platform Colors */
.facebook {
color: #1877F2;
}

.instagram {
color: #E1306C;
}

.tiktok {
color: #000000;
}

.twitter {
color: #1DA1F2;
}

.youtube {
color: #FF0000;
}

/* Instagram Shake */
@keyframes shake {
0%, 100% { transform: translateX(0) rotate(0); }
20% { transform: translateX(-5px) rotate(-2deg); }
40% { transform: translateX(5px) rotate(2deg); }
60% { transform: translateX(-5px) rotate(-2deg); }
80% { transform: translateX(5px) rotate(2deg); }
}

.instagram-shake {
animation: shake 0.8s cubic-bezier(.36,.07,.19,.97) both;
}

/* Footer */
footer {
font-size: 0.9rem;
color: #6c757d;
margin-top: 30px;
}

/* Responsive Adjustments */
@media (max-width: 575px) {
.avatar {
width: 120px;
height: 120px;
}

.link-button {
padding: 15px;
}

.social-icon {
font-size: 1.2rem;
}

.link-label {
font-size: 1rem;
}
}