/* Custom styles for the Black and Pink site */

:root {
    --primary-color: #000000;
    --secondary-color: #e03997;
    --accent-color: #f59e0b;
    --text-dark: #1e293b;
    --text-light: #64748b;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

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

/* Override Bootstrap bg-primary color */
.bg-primary {
    background-color: var(--secondary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
}

.hero-icon {
    font-size: 8rem;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Card Animations */
.penpal-card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

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

.tip-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.penpal-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.penpal-meta-separator {
    opacity: 0.65;
}

.badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.badge-soft-info {
    background-color: rgba(224, 57, 151, 0.12);
    border: 1px solid rgba(224, 57, 151, 0.22);
    color: var(--secondary-color);
}

.mailing-address {
    white-space: pre-line;
}

/* Thought Items */
.thought-item {
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.thought-item:hover {
    transform: translateY(-5px);
}

.thought-icon {
    font-size: 2rem;
}

/* Thought Cards */
.thought-card {
    border-radius: 15px;
    transition: all 0.3s ease;
}

.thought-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Thought Sections */
.thought-section {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.thought-section:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.thought-section:last-child {
    margin-bottom: 0 !important;
}

/* Important Items */
.important-item {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.important-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.important-item i {
    font-size: 1.2rem;
}

/* Important Sections */
.important-section {
    padding: 1rem;
    background: #f8f9fa;
    border-left: 3px solid var(--secondary-color);
    border-radius: 6px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.important-section:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transform: translateX(2px);
}

.important-section:last-child {
    margin-bottom: 0 !important;
}

.important-icon {
    font-size: 1rem;
}

/* Writing Section Cards */
.writing-section-card {
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.writing-section-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.writing-step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto;
}

/* Form Styles */
.form-control {
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    padding: 12px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25);
}

.form-control[aria-invalid="true"],
.form-select[aria-invalid="true"] {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.12);
}

.input-group-text {
    border-radius: 8px 0 0 8px;
    border: 2px solid #e2e8f0;
    border-right: none;
}

/* Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Background Gradients */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-icon {
        font-size: 4rem;
        margin-top: 2rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .penpal-card {
        margin-bottom: 1rem;
    }
    
    .thought-item,
    .important-item {
        margin-bottom: 1rem;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-body {
        padding: 1.5rem 1rem;
    }
    
    .hero-section .container {
        padding: 2rem 15px;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
    }
    
    .d-flex.gap-3 .btn {
        margin-bottom: 0.5rem;
    }
}

/* Dashboard Specific Styles */
.dashboard-stat-card {
    transition: transform 0.3s ease;
}

.dashboard-stat-card:hover {
    transform: scale(1.05);
}

/* Navigation Enhancements */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar {
    position: relative;
    background-color: var(--primary-color) !important;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: white;
    z-index: 10;
}

/* Gradient bar below navbar */
.navbar-decoration {
    height: 30px;
    background: -webkit-linear-gradient(left, #e51968 0%, #e7b8c7 100%);
    background: linear-gradient(to right, #e51968 0%, #e7b8c7 100%);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar-decoration::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: white;
}

.navbar-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-size: 4rem;
    font-weight: 500;
    font-family: 'Raleway';
    line-height: 55px;
    letter-spacing: 3.5px;
    color: white;
}

.brand-subtitle {
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile responsiveness for navbar */
@media (max-width: 768px) {
    .navbar-logo {
        height: 70px;
    }
    
    .brand-title {
        font-size: 1.2rem;
    }
    
    .brand-subtitle {
        font-size: 0.65rem;
    }
}

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

/* Loading and Animation States */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Writing Section Styles */
.writing-section {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1rem;
    margin-bottom: 2rem;
}

.writing-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: -webkit-linear-gradient(left, #e51968 0%, #e7b8c7 100%);
    background: linear-gradient(to right, #e51968 0%, #e7b8c7 100%);
    border-radius: 50%;
    color: white !important;
}

.service-item {
    transition: all 0.3s ease;
}

.service-item h5 a,
.service-item h5 a:visited {
    color: var(--primary-color);
    text-decoration-color: var(--secondary-color);
    text-underline-offset: 0.15em;
}

.service-item h5 a:hover,
.service-item h5 a:focus {
    color: var(--secondary-color);
}

.service-item:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

/* Override border-primary for service items */
.service-item.border-primary {
    border-left-color: #000000 !important;
}

.subsection-item {
    padding-left: 1rem;
    border-left: 2px solid #e5e7eb;
}

.example-block {
    box-shadow: 0 0 0 1px rgba(34,36,38,.22) inset,0 0 0 0 transparent;
}

.example-block pre {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive adjustments for writing section */
@media (max-width: 768px) {
    .writing-section {
        padding-left: 0.5rem;
    }
    
    .writing-icon {
        width: 50px;
        height: 50px;
    }
    
    .ms-5 {
        margin-left: 1rem !important;
    }
    
    .ps-2 {
        padding-left: 0.5rem !important;
    }
}

/* Social Media Links */
.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    transition: all 0.3s ease;
    opacity: 0.8;
    text-decoration: none;
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
    color: var(--secondary-color) !important;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color) !important;
    border: none;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(224, 57, 151, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: var(--primary-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(224, 57, 151, 0.4);
}

.back-to-top.show {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

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

/* Find Penpals Page Styles */
.penpal-card {
    transition: all 0.3s ease;
    border: none;
}

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

.filter-select, .filter-checkbox {
    transition: all 0.2s ease;
}

.filter-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(224, 57, 151, 0.25);
}

.badge {
    font-size: 0.75rem;
}

/* Responsive adjustments for find penpals */
@media (max-width: 768px) {
    .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    .penpal-card {
        margin-bottom: 1.5rem;
    }
}

/* Dashboard request styles */
.border-bottom:last-child {
    border-bottom: none !important;
}

.request-item {
    transition: background-color 0.2s ease;
}

.request-item:hover {
    background-color: #f8f9fa;
}

/* Request status badges */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* Send request modal */
.modal-body textarea {
    resize: vertical;
    min-height: 100px;
}
