/* Custom styles for Taskly GitHub Page */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-light {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-outline-primary {
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-outline-light {
    transition: all 0.2s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

section {
    background-color: #f8f9fa;
}

section:nth-child(odd) {
    background-color: #ffffff;
}

footer {
    background: linear-gradient(135deg, #343a40 0%, #1d2124 100%);
}

.list-group-item {
    border: none;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Apple Style CSS Variables */
:root {
    --primary: #0071e3;
    --primary-dark: #0056b3;
    --secondary: #6e6e73;
    --success: #34c759;
    --light: #f5f5f7;
    --light-alt: #f2f2f7;
    --white: #ffffff;
    --dark: #1d1d1f;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 3px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 8px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Apple Style Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 100;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    backdrop-filter: blur(15px);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

.lang-btn.active {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    font-weight: 600;
}

/* Enhanced Header */
header {
    position: relative;
    overflow: hidden;
    background: var(--primary);
    color: var(--white);
    padding: 4rem 0 3rem;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 50%);
    z-index: 0;
}

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

/* Enhanced Buttons */
.btn {
    transition: var(--transition);
    font-weight: 500;
    border-radius: 980px;
    box-shadow: var(--shadow-sm);
    border: none;
    padding: 8px 20px;
    font-size: 14px;
}

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

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
}

.btn-outline-white {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

/* Enhanced Cards */
.card {
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: var(--white);
    box-shadow: none;
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(0, 0, 0, 0.08);
}

/* Platform Cards */
.platform-card {
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: var(--white);
    border-radius: var(--border-radius-sm);
}

.platform-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
}

.platform-icon {
    color: var(--primary);
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.17;
    letter-spacing: -0.022em;
    color: var(--text-primary);
}

h1 {
    font-size: 2.25rem;
    margin-bottom: 0.875rem;
}

h2 {
    font-size: 1.875rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.125rem;
    margin-bottom: 0.875rem;
}

p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
}

/* Enhanced Section */
section {
    position: relative;
    padding: 2.5rem 0;
}

section:nth-child(odd) {
    background: var(--white);
}

section:nth-child(even) {
    background: var(--light);
}

/* Enhanced Footer */
footer {
    background: var(--dark);
    color: var(--text-secondary);
    padding: 3rem 0 1.5rem;
    font-size: 0.875rem;
}

footer a {
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
}

footer a:hover {
    color: var(--white);
}

/* Enhanced Grid */
.grid {
    display: grid;
    gap: 20px;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Enhanced Spacing */
.mt-10 {
    margin-top: 4rem;
}

.mb-12 {
    margin-bottom: 4rem;
}

/* Enhanced Inputs */
.form-control {
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.12);
    transition: var(--transition);
    padding: 10px 12px;
    font-size: 14px;
    background: var(--white);
    color: var(--text-primary);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
    outline: none;
}

/* Enhanced Badges */
.badge {
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 980px;
    font-size: 12px;
    background: var(--light-alt);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.badge.bg-success {
    background: var(--success);
    color: var(--white);
    border-color: var(--success);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.375rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .mt-10 {
        margin-top: 2rem;
    }
    
    .mb-12 {
        margin-bottom: 2rem;
    }
    
    .card-body {
        padding: 24px;
    }
    
    .language-switcher {
        top: 15px;
        right: 15px;
    }
    
    .lang-btn {
        padding: 5px 14px;
        font-size: 13px;
    }
    
    header {
        padding: 2.5rem 0 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Apply animations */
.card {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

/* Enhanced Button Group */
.d-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Enhanced Input Group */
.input-group {
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.input-group .form-control {
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.input-group .btn {
    border-radius: 0;
    box-shadow: none;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

/* Enhanced Alert */
.alert {
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-sm);
    padding: 12px 16px;
    font-size: 14px;
}

/* Custom Backgrounds */
.bg-gradient-to-br {
    background: var(--primary);
}

.bg-primary-dark {
    background-color: var(--primary-dark);
}

/* Text Enhancements */
.text-primary {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-white {
    color: var(--white) !important;
}

/* Enhanced Card Body */
.card-body {
    padding: 20px;
}

/* Enhanced Grid Gap */
.gap-2 {
    gap: 8px;
}

/* Enhanced Gap */
.gap-3 {
    gap: 12px;
}

/* Enhanced Gap */
.gap-4 {
    gap: 16px;
}

/* Enhanced Gap */
.gap-5 {
    gap: 20px;
}

/* Utility Classes */
.mt-8 {
    margin-top: 3rem;
}

.mb-10 {
    margin-bottom: 3.5rem;
}

.text-2xl {
    font-size: 1.5rem;
    font-weight: 600;
}

.text-xl {
    font-size: 1.25rem;
    font-weight: 600;
}

.text-base {
    font-size: 1rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.font-bold {
    font-weight: 600;
}

.font-semibold {
    font-weight: 500;
}

.font-medium {
    font-weight: 500;
}

.p-8 {
    padding: 2rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-4 {
    padding: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

/* Shortcut Buttons */
.shortcut-btn {
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--white);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 500;
}

.shortcut-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* Responsive Grid */
@media (min-width: 768px) {
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Centered Text */
.text-center {
    text-align: center;
}

/* Offsets */
.offset-lg-3 {
    margin-left: 25%;
}

.offset-lg-2 {
    margin-left: 16.666667%;
}

/* Column Widths */
.col-lg-6 {
    flex: 0 0 auto;
    width: 50%;
}

.col-lg-8 {
    flex: 0 0 auto;
    width: 66.666667%;
}

/* Flexbox */
.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Responsive Card Width */
@media (max-width: 991.98px) {
    .col-lg-6,
    .col-lg-8 {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
    
    .offset-lg-3,
    .offset-lg-2 {
        margin-left: 0;
    }
}



/* Responsive adjustments for language switcher */
@media (max-width: 768px) {
    .language-switcher {
        position: relative;
        top: 0;
        right: 0;
        justify-content: center;
        margin-bottom: 20px;
    }
}