/* Portfolio Page Specific Styles */

/* Portfolio Header */
.portfolio-header {
    padding: 120px 0 60px;
    background: var(--gradient-1);
    color: white;
    position: relative;
    overflow: hidden;
}

.portfolio-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

.portfolio-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.portfolio-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: white;
    color: #6366f1;
    border-color: white;
}

/* Portfolio Listing */
.portfolio-listing {
    padding: 4rem 0;
    background: var(--bg-secondary);
    min-height: 60vh;
}

.portfolio-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.domain-card {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.domain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.domain-card:hover::before {
    transform: scaleX(1);
}

.domain-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(79, 70, 229, 0.28);
}

.domain-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.domain-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.domain-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    display: inline-block;
}

.domain-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.domain-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.domain-tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.domain-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.uptime-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.uptime-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s infinite;
}

.uptime-indicator.offline {
    background: #ef4444;
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.uptime-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.uptime-percentage {
    font-weight: 700;
    color: var(--text-primary);
}

.domain-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.domain-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.btn-view-details {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), filter var(--dur-2) var(--ease-out);
}

.btn-view-details:hover {
    transform: translateY(-2px);
    filter: saturate(1.05);
    box-shadow: var(--shadow-lg);
}

.btn-submit-offer {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}

.btn-submit-offer:hover {
    transform: translateY(-2px);
    border-color: rgba(79, 70, 229, 0.35);
    box-shadow: var(--shadow-md);
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    margin: 2rem auto;
    box-shadow: var(--shadow-xl);
    z-index: 10001;
}

.modal-content-small {
    max-width: 600px;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-secondary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
    z-index: 10002;
}

.modal-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 3rem;
}

.modal-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* Domain Detail Styles */
.domain-detail-header {
    margin-bottom: 2rem;
}

.domain-detail-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.domain-detail-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gradient-1);
    color: white;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.domain-detail-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.domain-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-section {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
}

.detail-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.detail-section-content {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Color Scheme Display */
.color-scheme-display {
    margin-top: 1rem;
}

.color-palette {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.color-swatch {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch::after {
    content: attr(data-color);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.color-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Uptime Display */
.uptime-display {
    margin-top: 1rem;
}

.uptime-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.uptime-large-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s infinite;
}

.uptime-large-indicator.offline {
    background: #ef4444;
    animation: none;
}

.uptime-info {
    flex: 1;
}

.uptime-percentage-large {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.uptime-status-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.uptime-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.uptime-detail-item {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    text-align: center;
}

.uptime-detail-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.uptime-detail-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.uptime-history {
    margin-top: 1.5rem;
}

.uptime-history-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 100px;
    margin-top: 1rem;
}

.uptime-bar {
    flex: 1;
    background: var(--gradient-1);
    border-radius: 4px 4px 0 0;
    min-height: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.uptime-bar:hover {
    opacity: 0.8;
    transform: scaleY(1.1);
}

.uptime-bar::after {
    content: attr(data-uptime);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.uptime-bar:hover::after {
    opacity: 1;
}

/* Offer Form Styles */
.offer-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.offer-form .form-group {
    display: flex;
    flex-direction: column;
}

.offer-form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.offer-form input,
.offer-form textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.offer-form input:focus,
.offer-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.form-actions .btn {
    flex: 1;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-menu a.active::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-grid-detailed {
        grid-template-columns: 1fr;
    }
    
    .domain-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem auto;
    }
    
    .modal-body {
        padding: 2rem 1.5rem;
    }
    
    .domain-detail-name {
        font-size: 2rem;
    }
    
    .color-palette {
        justify-content: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
}
