.resume-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.resume-buttons {
    margin-bottom: 20px;
    text-align: right;
}

.resume-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #e22d30;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.resume-button:hover {
    background-color: #c62828;
    text-decoration: none;
}

.resume-embed {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    padding-bottom: 20px;
}

.resume-embed iframe {
    height: 1100px;
}

@media (max-width: 1024px) {
    .resume-embed iframe {
        height: 900px;
    }
}

@media (max-width: 767px) {
    .resume-embed iframe {
        height: 700px;
    }
}

@media (max-width: 480px) {
    .resume-embed iframe {
        height: 600px;
    }
}

.widget-profile-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 20px;
    text-align: center;
}

.widget-profile {
    text-align: center;
    border: 10px solid #2a2a2a;
    padding: 0;
    display: inline-block;
}

.widget-profile > img {
    max-width: 250px;
    margin: 0 auto;
    display: inline-block;
    border: 5px solid #e22d30;
    text-align: center;
}

.readme {
    max-width: 1012px;
    margin-right: auto;
    margin-left: auto;
}

/* Link Preview Card Styles - iMessage style layout */
.link-preview-card {
    margin: 1.5rem 0;
    border: 2px solid #d1d5db;
    border-radius: 16px;
    overflow: hidden;
    /*transition: all 0.2s ease;*/
    background: #ffffff;
    max-width: 400px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.link-preview-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    /*transform: translateY(-2px) !important;*/
    border-color: #9ca3af;
}

.link-preview-card a {
    text-decoration: none;
    color: inherit;
}

.link-preview-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.link-preview-link:hover {
    text-decoration: none;
}

.link-preview-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f3f4f6;
}

.link-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-preview-content {
    padding: 16px;
}

.link-preview-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
    color: #1f2937;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.link-preview-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
    margin: 0 0 12px 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.link-preview-domain {
    margin-top: auto;
}

.link-preview-url {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.link-preview-error {
    font-size: 0.75rem;
    color: #f59e0b;
    font-weight: 500;
}

/* Dark mode styles - supports both class-based and media query approaches */
@media (prefers-color-scheme: dark) {
    .link-preview-card {
        background: #1f2937;
        border-color: #4b5563;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .link-preview-card:hover {
        border-color: #6b7280;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }
    
    .link-preview-title {
        color: #f9fafb;
    }
    
    .link-preview-description {
        color: #d1d5db;
    }
    
    .link-preview-url {
        color: #9ca3af;
    }
    
    .link-preview-image {
        background: #374151;
    }
}

/* Class-based dark mode (for theme toggle systems) */
.dark .link-preview-card {
    background: #1f2937;
    border-color: #4b5563;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dark .link-preview-card:hover {
    border-color: #6b7280;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.dark .link-preview-title {
    color: #f9fafb;
}

.dark .link-preview-description {
    color: #d1d5db;
}

.dark .link-preview-url {
    color: #9ca3af;
}

.dark .link-preview-image {
    background: #374151;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .link-preview-card {
        max-width: 100%;
    }
    
    .link-preview-image {
        height: 160px;
    }
    
    .link-preview-content {
        padding: 12px;
    }
    
    .link-preview-title {
        font-size: 1rem;
    }
}

/* Theme-aware image styles */
.theme-image-container {
    display: inline-block;
    position: relative;
}

.theme-image {
    max-width: 100%;
    height: auto;
}

/* Theme image size variants */
.theme-image-small {
    max-width: 200px;
}

.theme-image-medium {
    max-width: 400px;
}

.theme-image-large {
    max-width: 600px;
}

.theme-image-xlarge {
    max-width: 800px;
}

.theme-image-full {
    max-width: 100%;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .theme-image-small {
        max-width: 150px;
    }
    
    .theme-image-medium {
        max-width: 280px;
    }
    
    .theme-image-large {
        max-width: 100%;
    }
    
    .theme-image-xlarge {
        max-width: 100%;
    }
}

.float-right {
    float: right;
    shape-outside: margin-box;
    margin: 0 0 1em 1em;
}

.float-left {
    float: left;
    shape-outside: margin-box;
    margin: 0 1em 1em 0;
}

.center-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
