/* Main Styles for SuperProfile */

:root {
    /* Default Theme */
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --primary-color: #4f46e5;
    --secondary-color: #818cf8;
    --accent-color: #c7d2fe;
    --link-bg: #ffffff;
    --link-border: #e5e7eb;
    --link-hover: #f3f4f6;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Dark Theme */
body.theme-dark {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --primary-color: #bb86fc;
    --secondary-color: #03dac6;
    --accent-color: #3700b3;
    --link-bg: #2d2d2d;
    --link-border: #333333;
    --link-hover: #3a3a3a;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Gradient Theme */
body.theme-gradient {
    --bg-color: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-color: #333333;
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #c4b5fd;
    --link-bg: rgba(255, 255, 255, 0.8);
    --link-border: rgba(229, 231, 235, 0.5);
    --link-hover: rgba(243, 244, 246, 0.9);
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Minimal Theme */
body.theme-minimal {
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --text-color: #111827;
    --primary-color: #000000;
    --secondary-color: #4b5563;
    --accent-color: #e5e7eb;
    --link-bg: #ffffff;
    --link-border: #e5e7eb;
    --link-hover: #f9fafb;
    --shadow: none;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
}

.profile-container {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.profile-pic-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    position: relative;
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.profile-bio {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.link-item {
    background: var(--link-bg);
    border: 1px solid var(--link-border);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.link-item:hover {
    background: var(--link-hover);
    transform: translateY(-2px);
}

.link-item i {
    margin-right: 12px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.link-item .link-title {
    flex-grow: 1;
}

.link-item .link-arrow {
    font-size: 0.8rem;
    opacity: 0.7;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    color: white;
}

footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-top: 20px;
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Theme Selector Styles */
.theme-selector {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow);
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    display: none;
}

.theme-selector.active {
    display: block;
}

.theme-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.theme-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.theme-option:hover {
    transform: scale(1.1);
}

.theme-option[data-theme="default"] {
    background: linear-gradient(to bottom right, #4f46e5, #818cf8);
    border: 2px solid #e5e7eb;
}

.theme-option[data-theme="dark"] {
    background: linear-gradient(to bottom right, #1e1e1e, #3a3a3a);
    border: 2px solid #333333;
}

.theme-option[data-theme="gradient"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid #e5e7eb;
}

.theme-option[data-theme="minimal"] {
    background: #ffffff;
    border: 2px solid #000000;
}

/* Edit Mode Toggle */
.edit-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.edit-toggle button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: all 0.2s;
}

.edit-toggle button:hover {
    background: var(--secondary-color);
}

/* Edit Mode Styles */
.edit-mode .profile-pic-container::after {
    content: '\f030';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
}

.edit-mode .profile-name,
.edit-mode .profile-bio {
    position: relative;
    cursor: pointer;
}

.edit-mode .profile-name::after,
.edit-mode .profile-bio::after {
    content: '\f304';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
    font-size: 0.8em;
    color: var(--primary-color);
    opacity: 0.7;
}

.edit-mode .link-item {
    cursor: move;
}

.edit-mode .link-item::after {
    content: '\f304';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    color: var(--primary-color);
    opacity: 0.7;
}

.edit-mode .links-container::after {
    content: '+ Add New Link';
    display: block;
    text-align: center;
    padding: 12px;
    margin-top: 10px;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    border: 2px dashed var(--primary-color);
    opacity: 0.8;
    transition: all 0.2s;
}

.edit-mode .links-container::after:hover {
    opacity: 1;
    background: var(--link-hover);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .profile-container {
        padding: 20px;
    }
    
    .profile-pic-container {
        width: 100px;
        height: 100px;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .theme-selector {
        bottom: 10px;
        right: 10px;
        padding: 15px;
    }
    
    .edit-toggle {
        top: 10px;
        right: 10px;
    }
}

/* Animation Effects */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-container {
    animation: fadeIn 0.5s ease-out;
}

.link-item {
    animation: fadeIn 0.3s ease-out;
    animation-fill-mode: both;
}

.link-item:nth-child(1) { animation-delay: 0.1s; }
.link-item:nth-child(2) { animation-delay: 0.2s; }
.link-item:nth-child(3) { animation-delay: 0.3s; }
.link-item:nth-child(4) { animation-delay: 0.4s; }
.link-item:nth-child(5) { animation-delay: 0.5s; }
.link-item:nth-child(6) { animation-delay: 0.6s; }
.link-item:nth-child(7) { animation-delay: 0.7s; }
.link-item:nth-child(8) { animation-delay: 0.8s; }
.link-item:nth-child(9) { animation-delay: 0.9s; }
.link-item:nth-child(10) { animation-delay: 1s; }