/**
 * YourProfileHub - Custom Styles
 */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c3e50;
    background-color: #f8f9fa;
    padding-top: 80px;
}

h1, h2, h3, h4, h5, h6 {
    color: #2c3e50;
    font-weight: 600;
}

a {
    color: #1abc9c;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #16a085;
    text-decoration: none;
}

/* Header & Navigation */
.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #16a085 !important;
}

.navbar .navbar-nav .nav-link {
    transition: color 0.2s ease;
    color: #2c3e50 !important;
    font-weight: 500;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #1abc9c !important;
}

.navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2844, 62, 80, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar .navbar-nav .btn-outline-primary {
    border-color: #1abc9c;
    color: #1abc9c;
}

.navbar .navbar-nav .btn-outline-primary:hover {
    background-color: #1abc9c;
    color: #fff;
}

.navbar .navbar-nav .btn-primary {
    /* Use accent color for register button? */
    /* background-color: #f39c12; */
    /* border-color: #f39c12; */
    /* color: #fff; */
}

/* Forms */
.form-control {
    border-radius: 8px;
    padding: 0.8rem 1rem;
}

.form-control:focus {
    border-color: #1abc9c;
    box-shadow: 0 0 0 0.25rem rgba(26, 188, 156, 0.25);
}

.btn {
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #1abc9c;
    border-color: #1abc9c;
    color: #fff;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #16a085;
    border-color: #16a085;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(22, 160, 133, 0.3);
    color: #fff;
}

/* Global Outline Primary Button Style */
.btn-outline-primary {
    border-color: #1abc9c; /* Teal border */
    color: #1abc9c;      /* Teal text */
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #1abc9c; /* Teal background on hover/focus */
    border-color: #1abc9c;
    color: #fff;            /* White text on hover/focus */
    /* Inherit lift/shadow from general .btn:hover */
    /* box-shadow: 0 4px 10px rgba(22, 160, 133, 0.2); */ 
}

.btn:hover, .btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Add Accent Button Style */
.btn-accent {
    /* Use new Primary Accent */
    background-color: #f39c12;
    border-color: #f39c12;
    color: #fff;
}

.btn-accent:hover, .btn-accent:focus {
    /* Use new Secondary Accent */
    background-color: #e8920b;
    border-color: #e8920b;
    transform: translateY(-2px);
    /* Update shadow color */
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.3);
    color: #fff;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-text {
    color: #6c757d;
}

/* Cards */
.card {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: none;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #f1f1f1;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 12px 12px 0 0 !important;
}

.card-body {
    padding: 1.5rem;
}

/* Dashboard */
.dashboard-stats .card {
    transition: transform 0.2s;
}

.dashboard-stats .card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2rem;
    color: #1abc9c;
}

/* Enhanced Dashboard Styles */
.dashboard-welcome {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dashboard-welcome h1 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.dashboard-welcome p {
    opacity: 0.9;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.dashboard-card h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: #2c3e50;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 0.8rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: #e9ecef;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1abc9c;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.action-buttons .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-buttons .btn i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.action-buttons .btn-primary {
    background: linear-gradient(135deg, #1abc9c, #16a085);
    border: none;
}

.action-buttons .btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    border: none;
}

.action-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.completion-card .progress {
    height: 10px;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.completion-card .progress-bar {
    background: linear-gradient(135deg, #1abc9c, #16a085);
}

.completion-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.completion-step {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 8px;
}

.completion-step i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.completion-step.completed {
    color: #2ecc71;
}

.completion-step.incomplete {
    color: #95a5a6;
}

.visitors-card .visitor-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.3s ease;
}

.visitors-card .visitor-item:last-child {
    border-bottom: none;
}

.visitors-card .visitor-item:hover {
    background: #f8f9fa;
    border-radius: 8px;
}

.visitor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.visitor-info {
    flex: 1;
}

.visitor-name {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.visitor-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.visitor-actions {
    margin-left: 1rem;
}

/* Profile Page */
.profile-header {
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 2rem;
}

.profile-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Links Management */
.link-item {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s;
}

.link-item:hover {
    transform: translateY(-3px);
}

.link-handle {
    cursor: move;
    color: #6c757d;
}

.link-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* Analytics */
.analytics-chart {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 2rem;
}

/* Settings */
.settings-section {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 2rem;
}

/* Footer */
footer.bg-light {
    padding: 3rem 0;
    background-color: #ffffff !important;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

footer a {
    color: #5a6a7a;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #1abc9c;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #e9ecef;
    color: #6c757d;
    border-radius: 50%;
    text-align: center;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #1abc9c;
    color: #fff;
    text-decoration: none;
    transform: scale(1.1);
}

/* Style the newsletter form */
footer #newsletterForm .form-control {
    background-color: #f8f9fa;
    border-color: #e9ecef;
}
footer #newsletterForm .btn-primary {
    background-color: #1abc9c;
    border-color: #1abc9c;
}
footer #newsletterForm .btn-primary:hover {
    background-color: #16a085;
    border-color: #16a085;
}

/* Authentication Pages */
.auth-body {
    background-color: #e9ecef;
}

.auth-container {
    max-width: 450px;
    margin: 3rem auto;
    padding: 0 15px;
}

.auth-card {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: none;
    overflow: hidden;
}

.auth-card .card-header {
    background: #1abc9c;
    color: #fff;
    text-align: center;
    padding: 1.5rem;
    border-bottom: none;
    border-radius: 0;
}

.auth-card .card-header h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0;
}

.auth-card .card-body {
    padding: 2.5rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}

.auth-divider span {
    padding: 0 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-login-btn i {
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

.btn-google {
    background-color: #fff;
    color: #555;
    border: 1px solid #ced4da;
}

.btn-google:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: #333;
}

.btn-facebook {
    background-color: #3b5998;
    color: #fff;
    border: none;
}

.btn-facebook:hover {
    background-color: #304a80;
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .homepage-hero h1 {
        font-size: 2.4rem;
    }
    .homepage-hero .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .homepage-hero h1 {
        font-size: 2rem;
    }
    .homepage-hero .lead {
        font-size: 1rem;
    }
    .homepage-hero .btn-lg {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .auth-container {
        margin: 2rem auto;
    }
    
    .auth-card .card-body {
        padding: 1.5rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }

    footer {
        text-align: center;
    }
    .footer-about, .footer-links, .footer-contact {
        margin-bottom: 2rem;
    }
    .social-icons {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* Theme Variations */
.theme-dark {
    background-color: #2c3e50;
    color: #ecf0f1;
}

.theme-light {
    background-color: #ecf0f1;
    color: #2c3e50;
}

.theme-purple {
    background-color: #9b59b6;
    color: #ecf0f1;
}

.theme-orange {
    background-color: #e67e22;
    color: #ecf0f1;
}

.theme-red {
    background-color: #e74c3c;
    color: #ecf0f1;
}

/* Homepage Specific Styles */
.homepage-hero {
    padding: 6rem 0;
    text-align: center;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.homepage-hero .container {
    position: relative;
    z-index: 1;
}

.homepage-hero .hero-content {
    text-align: left;
}

.homepage-hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.homepage-hero .lead {
    font-size: 1.2rem;
    color: #5a6a7a;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.homepage-hero .btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.homepage-hero .hero-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.homepage-hero .hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Apply enhanced card style to homepage features */
#features .card, 
#blog .card, 
#case-studies .card, 
#resources .card, 
#pricing .card {
    /* Inherit general card styles */
}

#features .card-body,
#blog .card-body,
#resources .card-body {
    text-align: center;
}

#features .card i, 
#features .card svg {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1abc9c;
}

#pricing .card {
    transition: none;
}
#pricing .card:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

#pricing .card-popular {
    border: 2px solid #1abc9c;
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(26, 188, 156, 0.2);
}
#pricing .card-popular:hover {
     transform: scale(1.03);
     box-shadow: 0 8px 30px rgba(26, 188, 156, 0.2);
}

/* Add style for Teal background */
.bg-primary-teal {
    background-color: #1abc9c !important;
}

/* Customize FAQ Accordion */
#faq .accordion-item {
    background-color: #fff;
    border: none; /* Remove default border */
    border-radius: 8px; /* Consistent radius */
    /* Keep card shadow */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

#faq .accordion-button {
    font-weight: 600;
    color: #2c3e50;
    background-color: #fff;
    border-radius: 8px !important; /* Ensure radius applies */
    box-shadow: none; /* Remove focus shadow */
}

#faq .accordion-button:not(.collapsed) {
    color: #16a085; /* Darker Teal when open */
    background-color: #f8f9fa; /* Light background when open */
}

#faq .accordion-button::after {
    /* Customize the accordion icon (optional) */
    /* background-image: url("data:image/svg+xml,..."); */
}

#faq .accordion-body {
    padding: 1rem 1.5rem; /* Adjust padding */
    color: #5a6a7a;
    background-color: #fff;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Utility Classes */
.object-fit-cover {
    object-fit: cover;
}

/* Fix potential white-on-white in dropdown toggle if shown */
.navbar .navbar-nav .dropdown-toggle {
    color: #2c3e50 !important; 
}
.navbar .navbar-nav .dropdown-toggle:hover {
    color: #1abc9c !important; 
}


/* Override Bootstrap's default .bg-primary where needed */
.badge.bg-primary {
    background-color: #1abc9c !important; /* Use Teal for badges */
}

thead.bg-primary {
    background-color: #1abc9c !important; /* Use Teal for table headers */
    border-color: #1abc9c !important; /* Match border color */
}

thead.bg-primary th {
    color: #fff; /* Ensure text remains white */
}

/* Add slightly more padding between sections */
section {
    padding-top: 4rem;    /* Was py-5 (approx 3rem), increase slightly */
    padding-bottom: 4rem; 
}

.homepage-hero { /* Keep hero padding larger */
    padding: 6rem 0;
    /* ... other hero styles ... */
}

/* Ensure sections with bg-light also have enough padding */
section.bg-light {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* Override Bootstrap text-primary where needed */
.text-primary {
    color: #1abc9c !important; /* Use Teal */
}

/* Ensure active pagination uses Teal */
.pagination .page-item.active .page-link {
    background-color: #1abc9c;
    border-color: #1abc9c;
    color: #fff;
}

.pagination .page-link {
    color: #1abc9c; /* Teal for non-active links */
}

.pagination .page-link:hover {
    color: #16a085; /* Darker teal on hover */
}

/* Ensure active list group items use Teal */
.list-group-item.active {
    background-color: #1abc9c;
    border-color: #1abc9c;
}

/* Template Card Styles */
.template-card .template-preview-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.template-card .template-preview-link .template-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 188, 156, 0.7); /* Teal overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-card .template-preview-link:hover .template-overlay {
    opacity: 1;
}

.template-card .card-img-top {
    transition: transform 0.3s ease;
}

.template-card .template-preview-link:hover .card-img-top {
    transform: scale(1.05);
}

/* Showcase Card Styles (similar to template) */
.showcase-card .showcase-preview-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.showcase-card .showcase-preview-link .showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(44, 62, 80, 0.7); /* Darker overlay for showcase */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.showcase-card .showcase-preview-link:hover .showcase-overlay {
    opacity: 1;
}

.showcase-card .card-img-top {
    transition: transform 0.3s ease;
}

.showcase-card .showcase-preview-link:hover .card-img-top {
    transform: scale(1.05);
} 