/* Taaruf CV Builder - Custom Styles */

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

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
}

.text-primary {
    color: #4e73df !important;
}

.bg-gradient {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-all);
}

a:hover {
    color: darken(var(--primary-color), 10%);
}

/* Buttons */
.btn {
    font-weight: var(--font-weight-medium);
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition-all);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--button-shadow);
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
}

.btn-success {
    background: var(--success-gradient);
    border: none;
}

.btn-info {
    background: var(--info-gradient);
    border: none;
}

.btn-warning {
    background: var(--warning-gradient);
    border: none;
}

.btn-danger {
    background: var(--danger-gradient);
    border: none;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition-all);
}

.card:hover {
    box-shadow: var(--hover-shadow);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
}

.card-body {
    padding: var(--card-spacing);
}

/* Forms */
.form-control {
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition-all);
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.form-label {
    font-weight: 600;
    color: #5a5c69;
}

/* Badges */
.badge {
    font-weight: var(--font-weight-medium);
    padding: 0.5em 0.75em;
    border-radius: var(--border-radius-sm);
}

/* Utilities */
.shadow-sm {
    box-shadow: var(--card-shadow) !important;
}

.shadow {
    box-shadow: var(--hover-shadow) !important;
}

/* Container max-width adjustments */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Responsive font sizes */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

/* Main content area */
.main-content {
    flex: 1;
    padding: var(--section-spacing) 0;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 2rem;
    margin: -1rem 0 0 -1rem;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    padding-bottom: 10px !important;
    padding-top: 10px !important;
}

.navbar-dark.bg-primary {
    background-color: #4e73df !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: -10px;
}

.nav-link {
    font-weight: 600;
    padding: 0.5rem 1rem !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    padding: 5rem 0;
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #4e73df;
}

/* Resume Templates */
.template-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.template-card img {
    transition: transform 0.5s ease;
    width: 100%;
}

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

.template-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(78, 115, 223, 0.9);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.template-card:hover .template-overlay {
    transform: translateY(0);
}

/* Pricing Tables */
.pricing-card {
    text-align: center;
    padding: 2rem;
}

.pricing-card.popular {
    transform: scale(1.05);
    z-index: 1;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 2px solid #4e73df;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin: 1.5rem 0;
}

.price-period {
    font-size: 0.875rem;
    color: #858796;
}

/* Dashboard */
.dashboard-stat-card {
    padding: 1.5rem;
    border-left: 0.25rem solid;
}

.dashboard-stat-card.primary {
    border-left-color: #4e73df;
}

.dashboard-stat-card.success {
    border-left-color: #1cc88a;
}

.dashboard-stat-card.info {
    border-left-color: #36b9cc;
}

.dashboard-stat-card.warning {
    border-left-color: #f6c23e;
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    text-align: center;
    line-height: 36px;
    margin-right: 0.5rem;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

/* Resume Builder Steps */
.resume-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.resume-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e3e6f0;
    z-index: 0;
}

.step {
    position: relative;
    background-color: #f8f9fa;
    z-index: 1;
    text-align: center;
}

.step-number {
    display: inline-flex;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e3e6f0;
    color: #5a5c69;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.step.active .step-number {
    background-color: #4e73df;
    color: white;
}

.step.completed .step-number {
    background-color: #1cc88a;
    color: white;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .pricing-card.popular {
        transform: none;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    
    .resume-steps {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .resume-steps::before {
        display: none;
    }
    
    .step {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
    }
    
    .step-number {
        margin-bottom: 0;
        margin-right: 1rem;
    }
} 

