/* ============================================================
   Resume Profile Plugin - Frontend Styles
   ============================================================ */

.rp-resume-container {
    max-width: 960px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    line-height: 1.6;
}

/* --- Header Section --- */
.rp-resume-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.rp-resume-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    pointer-events: none;
}

.rp-header-main {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.rp-photo-wrapper {
    flex-shrink: 0;
}

.rp-profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.rp-header-info {
    flex: 1;
    min-width: 250px;
}

.rp-name {
    font-size: 2.2em;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #fff;
    line-height: 1.2;
}

.rp-title {
    font-size: 1.2em;
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: 6px;
}

.rp-tagline {
    font-size: 1em;
    opacity: 0.85;
    margin-bottom: 15px;
    font-style: italic;
}

.rp-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 10px;
}

.rp-contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
    opacity: 0.9;
}

.rp-contact-item .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.rp-contact-item a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.rp-contact-item a:hover {
    border-bottom-color: #fff;
}

/* --- Social Links --- */
.rp-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.rp-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.15);
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.rp-social-link:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    color: #fff;
}

.rp-social-link .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

/* --- Action Buttons --- */
.rp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
    position: relative;
    z-index: 1;
}

.rp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.rp-btn-primary {
    background: #fff;
    color: #667eea;
}

.rp-btn-primary:hover {
    background: #f0f0ff;
    color: #5a6fd6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.rp-btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.rp-btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
    transform: translateY(-2px);
}

.rp-btn .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

/* --- Section Styles --- */
.rp-section {
    margin-bottom: 35px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.rp-section-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #333;
    margin: 0 0 25px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #667eea;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rp-section-title .dashicons {
    color: #667eea;
    width: 28px;
    height: 28px;
    font-size: 28px;
}

.rp-section-content {
    color: #555;
}

/* --- Timeline (Experience / Education) --- */
.rp-timeline {
    position: relative;
    padding-left: 30px;
}

.rp-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.rp-timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 20px;
}

.rp-timeline-item:last-child {
    margin-bottom: 0;
}

.rp-timeline-marker {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #667eea;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #667eea;
    z-index: 1;
}

.rp-timeline-marker-alt {
    background: #764ba2;
    box-shadow: 0 0 0 2px #764ba2;
}

.rp-timeline-date {
    margin-bottom: 6px;
}

.rp-date {
    display: inline-block;
    background: #f0f0ff;
    color: #667eea;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

.rp-item-title {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #333;
}

.rp-item-org {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 8px;
}

.rp-item-org a {
    color: #667eea;
    text-decoration: none;
}

.rp-item-org a:hover {
    text-decoration: underline;
}

.rp-item-desc {
    color: #555;
    font-size: 0.95em;
}

.rp-item-desc p {
    margin: 8px 0;
}

/* --- Skills --- */
.rp-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.rp-skill-item {
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.rp-skill-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.rp-skill-icon {
    color: #667eea;
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.rp-skill-name {
    font-weight: 600;
    flex: 1;
    color: #333;
}

.rp-skill-percentage {
    font-size: 0.85em;
    color: #667eea;
    font-weight: 500;
}

.rp-skill-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.rp-skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 1s ease;
}

.rp-skill-desc {
    font-size: 0.85em;
    color: #777;
    margin-top: 5px;
}

/* --- Certifications --- */
.rp-cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.rp-cert-item {
    display: flex;
    gap: 15px;
    padding: 18px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    transition: transform 0.2s ease;
}

.rp-cert-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.rp-cert-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rp-cert-icon .dashicons {
    color: #fff;
    width: 22px;
    height: 22px;
    font-size: 22px;
}

.rp-cert-info {
    flex: 1;
}

.rp-cert-title {
    font-size: 1.05em;
    font-weight: 600;
    margin: 0 0 3px 0;
    color: #333;
}

.rp-cert-title a {
    color: #667eea;
    text-decoration: none;
}

.rp-cert-title a:hover {
    text-decoration: underline;
}

.rp-cert-org {
    font-size: 0.9em;
    color: #666;
}

.rp-cert-date {
    font-size: 0.85em;
    color: #999;
    margin-top: 3px;
}

.rp-cert-desc {
    font-size: 0.9em;
    color: #555;
    margin-top: 6px;
}

/* --- Projects --- */
.rp-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.rp-project-item {
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rp-project-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.rp-project-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.rp-project-info {
    padding: 18px;
}

.rp-project-title {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
}

.rp-project-title a {
    color: #667eea;
    text-decoration: none;
}

.rp-project-title a:hover {
    text-decoration: underline;
}

.rp-project-date {
    font-size: 0.85em;
    color: #999;
    margin-bottom: 8px;
}

.rp-project-desc {
    font-size: 0.9em;
    color: #555;
}

.rp-project-desc p {
    margin: 6px 0;
}

/* --- References --- */
.rp-refs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.rp-ref-item {
    display: flex;
    gap: 15px;
    padding: 18px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.rp-ref-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rp-ref-icon .dashicons {
    color: #fff;
    width: 24px;
    height: 24px;
    font-size: 24px;
}

.rp-ref-info {
    flex: 1;
}

.rp-ref-name {
    font-size: 1.05em;
    font-weight: 600;
    margin: 0 0 3px 0;
    color: #333;
}

.rp-ref-org {
    font-size: 0.9em;
    color: #666;
}

.rp-ref-email {
    margin-top: 3px;
}

.rp-ref-email a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9em;
}

.rp-ref-email a:hover {
    text-decoration: underline;
}

.rp-ref-desc {
    font-size: 0.9em;
    color: #555;
    margin-top: 6px;
    font-style: italic;
}

/* --- About Section --- */
.rp-bio {
    font-size: 1.05em;
    line-height: 1.8;
}

.rp-bio p:first-child {
    margin-top: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .rp-resume-header {
        padding: 25px;
    }
    
    .rp-header-main {
        flex-direction: column;
        text-align: center;
    }
    
    .rp-profile-photo {
        width: 120px;
        height: 120px;
    }
    
    .rp-name {
        font-size: 1.8em;
    }
    
    .rp-contact-info {
        justify-content: center;
    }
    
    .rp-social-links {
        justify-content: center;
    }
    
    .rp-actions {
        justify-content: center;
    }
    
    .rp-section {
        padding: 20px;
    }
    
    .rp-skills-grid,
    .rp-cert-grid,
    .rp-projects-grid,
    .rp-refs-grid {
        grid-template-columns: 1fr;
    }
    
    .rp-timeline {
        padding-left: 25px;
    }
    
    .rp-timeline-marker {
        left: -25px;
    }
}

@media (max-width: 480px) {
    .rp-resume-header {
        padding: 20px;
    }
    
    .rp-name {
        font-size: 1.5em;
    }
    
    .rp-actions {
        flex-direction: column;
    }
    
    .rp-btn {
        justify-content: center;
    }
}
