/* Hero Section */
.hero-section {
    padding: 5rem 0;
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.05) 0%,
        rgba(6, 182, 212, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.1) 0%,
        transparent 100%);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    min-width: 140px;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

.floating-cards {
    position: relative;
    height: 400px;
}

.floating-cards .card1,
.floating-cards .card2,
.floating-cards .card3 {
    position: absolute;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.floating-cards .card1 {
    top: 0;
    left: 0;
    width: 250px;
    animation: float 4s ease-in-out infinite;
}

.floating-cards .card2 {
    top: 120px;
    right: 0;
    width: 220px;
    animation: float 4s ease-in-out infinite 0.5s;
}

.floating-cards .card3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    animation: float 4s ease-in-out infinite 1s;
}

.floating-cards i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.floating-cards h4 {
    margin-bottom: 0.5rem;
}

.floating-cards p {
    color: var(--gray);
    font-size: 0.9rem;
}

.progress-bar {
    height: 8px;
    background: var(--gray-light);
    border-radius: 4px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-top: 25px;
    padding: 2rem 0;
}

.dashboard-left,
.dashboard-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Card Styles */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: var(--transition);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-light);
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
}

.section-header h2 i {
    color: var(--primary-color);
}

.btn-edit,
.btn-add {
    background: transparent;
    border: 1px solid var(--gray-light);
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-edit:hover,
.btn-add:hover {
    background: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
}

/* Portfolio Section */
.portfolio-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.portfolio-header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-light);
    padding: 3px;
}

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.portfolio-info p {
    color: var(--gray);
    margin-bottom: 0.75rem;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--gray-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--dark-color);
}

.progress-tracker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding: 0 1rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.progress-step.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.progress-line {
    height: 2px;
    background: var(--gray-light);
    flex: 1;
    margin: 0 1rem;
    position: relative;
    top: -20px;
    z-index: 0;
}

.progress-line.active {
    background: var(--primary-color);
}

.progress-step p {
    font-size: 0.875rem;
    color: var(--gray);
}

.progress-step.active p {
    color: var(--dark-color);
    font-weight: 500;
}

/* Calendar Section */
.calendar-widget {
    padding: 1rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.btn-calendar {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--dark-color);
    transition: var(--transition);
}

.btn-calendar:hover {
    color: var(--primary-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.calendar-day {
    text-align: center;
    padding: 0.5rem;
    font-weight: 600;
    color: var(--gray);
}

.deadline-list h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.deadline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--gray);
}

.deadline-item.urgent {
    border-left-color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

.deadline-item.warning {
    border-left-color: var(--warning);
    background: rgba(245, 158, 11, 0.05);
}

.deadline-item.normal {
    border-left-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.deadline-badge {
    background: var(--danger);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Create Post */
.create-post {
    padding: 1rem;
}

.post-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
}

.post-header textarea {
    flex: 1;
    border: none;
    resize: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    padding: 0.75rem;
    min-height: 80px;
    background: transparent;
    color: var(--dark-color);
}

.post-header textarea:focus {
    outline: none;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-action {
    background: transparent;
    border: none;
    color: var(--gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
}

.post-action:hover {
    background: var(--gray-light);
    color: var(--dark-color);
}

.btn-post {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-post:hover {
    background: var(--primary-dark);
}

/* Feed Section */
.feed-filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--gray-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filter-btn:hover:not(.active) {
    background: var(--gray-light);
}

.feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-card {
    padding: 1.5rem;
}

.post-user-info h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.post-user-info p {
    font-size: 0.875rem;
    color: var(--gray);
}

.post-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.post-attachment {
    display: flex;
    gap: 1rem;
    background: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1rem;
}

.post-attachment img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.attachment-info {
    padding: 1rem;
    flex: 1;
}

.attachment-info h5 {
    margin-bottom: 0.5rem;
}

.attachment-info p {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.btn-apply {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-apply:hover {
    background: var(--primary-dark);
}

.post-actions {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
}

.post-actions button {
    background: transparent;
    border: none;
    color: var(--gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.post-actions button:hover {
    color: var(--primary-color);
}

/* Quick Actions */
.quick-actions {
    padding: 1.5rem;
}

.quick-actions h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.action-btn {
    background: var(--light-color);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--primary-light);
    color: white;
    transform: translateY(-3px);
}

.action-btn i {
    font-size: 1.5rem;
}

/* Application Progress */
.application-progress {
    padding: 2rem;
}

.progress-percentage {
    text-align: center;
}

.percentage {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.application-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    position: relative;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 12px;
    text-align: center;
}

.step.completed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
}

.step.current {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    border: 2px solid var(--primary-color);
}

.step.pending {
    background: var(--light-color);
    opacity: 0.7;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    border: 2px solid var(--primary-light);
}

.step.completed .step-icon {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.step.current .step-icon {
    background: var(--primary-color);
    color: white;
}

.btn-step {
    margin-top: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-step:hover {
    background: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .hero-section .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .application-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .floating-cards {
        height: 300px;
        margin-top: 2rem;
    }

    .floating-cards .card1,
    .floating-cards .card2,
    .floating-cards .card3 {
        position: relative;
        margin-bottom: 1rem;
        animation: none;
        width: 100%;
    }
}

/* User dropdown menu (KALACAK dedin diye bırakıyorum) */
.user-menu {
    position: relative;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    padding: 10px 12px;
    border-radius: 14px;
    cursor: pointer;
    width: 100%;
}

.user-profile-btn:focus {
    outline: none;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0,0,0,.12);
    padding: 6px;
    display: none;
    z-index: 9999;
}

.user-menu.is-open .user-dropdown {
    display: block;
}

.user-dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
}

.user-dd-item:hover {
    background: rgba(0,0,0,.04);
}

.user-dd-item i {
    width: 18px;
    text-align: center;
    opacity: .9;
}

.user-dd-item.danger {
    color: #c0392b;
}

.user-dd-sep {
    height: 1px;
    margin: 6px 6px;
    background: rgba(0,0,0,.08);
}

.user-dd-form {
    margin: 0;
}

.user-dd-form button.user-dd-item {
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

/* Auth (Login/Register) */
.auth-wrap {
    max-width: 520px;
    padding: 30px 0;
}

.auth-card {
    padding: 28px;
}

.auth-title {
    margin: 0 0 8px;
    text-align: center;
}

.auth-subtitle {
    margin: 0 0 18px;
    opacity: .8;
    text-align: center;
}

.auth-alert {
    border: 1px solid rgba(231, 76, 60, .35);
    background: rgba(231, 76, 60, .06);
    border-radius: 14px;
    padding: 12px 14px;
    margin: 12px 0 16px;
}

.auth-alert ul {
    margin: 0;
    padding-left: 18px;
}

.auth-field {
    margin-bottom: 14px;
}

.auth-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.auth-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.12);
    outline: none;
    background: #fff;
    transition: box-shadow .15s ease, border-color .15s ease;
}

.auth-input:focus {
    border-color: rgba(52, 152, 219, .55);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, .12);
}

.auth-input-wrap {
    position: relative;
}

.auth-input--with-icon {
    padding-right: 44px;
}

.auth-icon-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,.10);
    background: rgba(0,0,0,.02);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, transform .15s ease;
}

.auth-icon-btn:hover {
    background: rgba(0,0,0,.05);
}

.auth-icon-btn:active {
    transform: translateY(-50%) scale(.98);
}

.auth-submit {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    margin-top: 6px;
}

.auth-links {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: .9;
}

/* ✅ Mobilde profil yazısı taşmasın (navbar'a dokunmadan) */
@media (max-width: 768px) {
    .user-profile {
        max-width: 52vw;
        min-width: 0;
    }

    .user-profile-btn {
        max-width: 52vw;
        min-width: 0;
        padding: 6px 8px;
    }

    .user-info { min-width: 0; }

    .username {
        max-width: 26vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .user-profile img {
        width: 34px;
        height: 34px;
    }

    .user-profile-btn .fa-chevron-down {
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .user-profile,
    .user-profile-btn {
        max-width: 58vw;
    }
    .username { max-width: 30vw; }
}