/* Writer Detail Page Styles */

/* Hero Section */
.writer-detail-hero {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, #EBF7FF 0%, #FDF5EB 100%);
    position: relative;
}

.writer-detail-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Writer Profile Card */
.writer-profile-card {
    position: relative;
    background: #ffffff;
    border-radius: 15px;
    padding: 30px 25px;
    box-shadow: 0 5px 24px 0 #00000014;
    border: 1px solid #e4f3ff;
    height: fit-content;
    position: sticky;
    top: 150px;
}

/* Verified Badge */
.writer-verified-badge {
    position: absolute;
    top: 15px;
    right: 20px;
    background: linear-gradient(46deg, #d7eefd 18%, #fdedd9 97%);
    color: #231f20;
    font-size: 12px;
    font-weight: 450;
    padding: 6px 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    line-height: 1;
}

.writer-verified-badge svg {
    color: #233F8C;
}

/* Profile Image */
.writer-profile-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: visible;
    border: 4px solid #e3f2fd;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
    position: relative;
}

.writer-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Verified Tick */
.writer-verified-tick {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.writer-verified-tick svg {
    display: block;
}

/* Profile Info */
.writer-profile-info {
    text-align: center;
    margin-bottom: 24px;
}

.writer-name {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.writer-degree {
    font-size: 14px;
    color: #545454;
    font-weight: 450;
    line-height: 1.5;
    margin: 0;
}

/* Stats Grid */
.writer-stats-grid {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    justify-content: space-between;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f9fcff;
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-item--green .stat-icon {
    background: #e8f5e9;
    color: #4caf50;
}

.stat-item--orange .stat-icon {
    background: #fff3e0;
    color: #ffa726;
}

.stat-item--blue .stat-icon {
    background: #e3f2fd;
    color: #2196f3;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: #757575;
    font-weight: 450;
}

/* CTA Button */
.writer-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    background: #233F8C;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.writer-cta-btn:hover {
    background: #3356B6;
    transform: scale(1.03);
}

.writer-cta-btn svg {
    transition: transform 0.3s ease;
}

.writer-cta-btn:hover svg {
    transform: translateX(4px);
}

/* Social Links */
.writer-social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #757575;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: #233F8C;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(35, 63, 140, 0.3);
}

/* Writer Details Content */
.writer-details-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Writer Section */
.writer-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.review-count {
    font-size: 16px;
    font-weight: 400;
    color: #757575;
}

.section-content {
    font-size: 15px;
    line-height: 1.7;
    color: #424242;
}

.writer-bio {
    margin: 0;
    white-space: pre-wrap;
    color: #7F8B99;
}

/* Expertise Tags */
.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.expertise-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #e8f3fc;
    color: #345883;
    border: 1px solid #d1e8f7;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 450;
    line-height: 20px;
    transition: all 0.2s ease;
}

.expertise-tag:hover {
    background: #d4e9f9;
    border-color: #b7d8f5;
    transform: translateY(-1px);
}

/* Reviews Section */
.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    background: #f9fcff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e3f2fd;
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.1);
    border-color: #2196f3;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 16px;
}

.review-client-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-client-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.review-work-type {
    font-size: 13px;
    color: #757575;
    font-weight: 450;
}

.review-rating {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.review-quote {
    position: relative;
}

.quote-icon {
    position: absolute;
    left: 0;
    top: 0;
}

.review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #424242;
    margin: 0;
    font-style: italic;
}

/* CTA Section */
.writer-cta-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #f8fbff 100%);
    border: 2px solid #233F8C;
}

.cta-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.cta-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: #ffffff;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cta-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.cta-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f5f5f5;
}

.cta-feature-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.cta-feature-content p {
    font-size: 14px;
    color: #616161;
    margin: 0;
    line-height: 1.5;
}

.cta-button-wrapper {
    text-align: center;
}

.writer-cta-btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 40px;
    background: #233F8C;
    color: #ffffff;
    border: none;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.writer-cta-btn-large::before {
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    border-radius: 100px;
    animation-name: pulse-animation;
    animation-duration: 2s;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0px #233F8C;
    }
    100% {
        box-shadow: 0 0 0 15px rgba(0, 0, 0, 0);
    }
}

.writer-cta-btn-large:hover {
    background: #3356B6;
    transform: scale(1.03);
}

.writer-cta-btn-large svg {
    transition: transform 0.3s ease;
}

.writer-cta-btn-large:hover svg {
    transform: translateX(6px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .writer-detail-container {
        grid-template-columns: 320px 1fr;
        gap: 32px;
    }

    .writer-profile-card {
        padding: 28px 20px;
    }
}

@media (max-width: 768px) {
    .writer-detail-hero {
        padding: 105px 0;
    }

    .writer-detail-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .writer-profile-card {
        position: relative;
        top: 0;
    }

    .writer-profile-image {
        width: 120px;
        height: 120px;
    }

    .writer-name {
        font-size: 22px;
    }

    .section-title {
        font-size: 20px;
    }

    .writer-section {
        padding: 24px 20px;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .cta-features {
        gap: 16px;
    }

    .cta-feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {


    .writer-profile-card {
        padding: 24px 16px;
    }

    .writer-section {
        padding: 20px 16px;
    }

    .writer-verified-badge {
        font-size: 11px;
        padding: 6px 10px;
        top: 16px;
        right: 16px;
    }

    .stat-value {
        font-size: 16px;
    }

    .writer-cta-btn {
        padding: 12px 20px;
        font-size: 15px;
    }

    .writer-cta-btn-large {
        padding: 14px 32px;
        font-size: 16px;
        width: 100%;
    }

    .expertise-tags {
        gap: 8px;
    }

    .expertise-tag {
        padding: 8px 14px;
        font-size: 13px;
    }
}
